How can i detect error marker and error message in editor

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

How can i detect error marker and error message in editor

Postby karthik.intels12 » Wed May 12, 2010 6:01 am

hello,

In our product we are doing some validation for table cells and if validation fails we are displaying error marker as well as error message message in editor.. How can i check in windows tester whether error marker is there in editor or not...


Thanks and regards
Karthik.M.S
Thanks and Regards,
Karthik.M.S
karthik.intels12
 
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: How can i detect error marker and error message in editor

Postby Phil Quitslund » Wed May 12, 2010 11:48 am

Could you post a screenshot that displays the kind of error annotation you would like to verify?

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: How can i detect error marker and error message in editor

Postby karthik.intels12 » Mon May 17, 2010 4:13 am

Hello,
I have attached screen-shot of page. Please do the needful
Last edited by karthik.intels12 on Fri May 21, 2010 5:47 am, edited 1 time in total.
Thanks and Regards,
Karthik.M.S
karthik.intels12
 
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: How can i detect error marker and error message in editor

Postby Phil Quitslund » Mon May 17, 2010 9:01 am

Have you tried adding an assertion using the inspector tool? Was it able to detect the label of interest? Theses docs give you pointers for generating assertions at record-time:

http://downloads.instantiations.com/WindowTesterDoc/integration/latest/docs/html/ui/assertionsUI.html

Let us know if this helps.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: How can i detect error marker and error message in editor

Postby karthik.intels12 » Mon May 17, 2010 10:00 pm

No i can use those assertions with toolbar or tree item. but that assertion box itself is not coming when i click on that error marker on that page. Please Give me some workaround to make it done.
Thanks and Regards,
Karthik.M.S
karthik.intels12
 
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: How can i detect error marker and error message in editor

Postby Phil Quitslund » Fri May 21, 2010 9:56 am

To help us understand what widget is behind the error message, could you inject this line of code into a test case before the point where you want to make assertions and send us the output sent to the console?

Code: Select all
new com.windowtester.runtime.swt.util.DebugHelper.printWidgets();

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest