Question for my general understanding

Nov 1, 2012 at 1:55 PM

Hi,

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");
feld2.SetText("hi");
But after starting the test it throws an NullReferenceException....

 

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

http://blogs.msdn.com/b/syedab/archive/2011/11/01/how-to-use-cuite.aspx

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?

Coordinator
Nov 2, 2012 at 3: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: http://cuite.codeplex.com/wikipage?title=Quick Start

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

Nov 2, 2012 at 6: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.

 

Thanks,

Markus

Nov 2, 2012 at 7:45 AM

Ok, I understand now how it works ;)

 

And it works....

 

 

Thx a lot!