This project is read-only.

Question for my general understanding

Nov 1, 2012 at 2:55 PM


i wanna write a simple test script, which should only write something in an input field.

I searched on google and found out how to use the SetText  "method" (?), so I did it how it was described:

CUITe_HtmlEdit feld2 = new CUITe_HtmlEdit("Id=inputfield2");
But after starting the test it throws an NullReferenceException....


Now I saw this manual "how to use CUITe":

This is against my understanding.... so my question is:

Is what I did and understood totaly wrong? Is it required to record all steps with the test builder?

Nov 2, 2012 at 4:14 AM

Hi Markus,

Using the Visual Studio Coded UI Test Recorder or the CUITe Object Recorder are not required; the Coded UI test can be manually written from scratch.

What is the full error\exception and stack trace?

The syntax, "new CUITe_HtmlEdit(...)", is only used within an object\ui repository class.

Otherwise you will have to use the syntax, "bWin.Get<CUITe_HtmlEdit>(...)", where bWin is your browser window (CUITe_BrowserWindow).

You can also try following the Quick Start guide here: Start

There are also some examples as CUITe integration tests: Source Code > Sample_CUITeTestProject > HtmlControlTests.cs.

Nov 2, 2012 at 7:50 AM

Hi icnocop,


thanks for your answer and your help. I saw this guide, but I had some problems to follow the steps, cause I have just started this week to work with visual stuido and coded ui.

I am only a stupid tester :) but I wanna use coded ui in future. The goal is a framework for automated automation-test creation.

I will write a comment here if I have problems.




Nov 2, 2012 at 8:45 AM

Ok, I understand now how it works ;)


And it works....



Thx a lot!