How WinRunner reads the color of the window/Object?

Showing Answers 1 - 3 of 3 Answers

Pavinder Kaur

  • Nov 4th, 2005
 

winrunner cannot read the colour of the objects but it can differentiate between them by bitmap checkpoint and if there is a pixel difference between the images it shows the image where the difference in images

  Was this answer useful?  Yes

You can create a GUI checkpoint to check the color and font of a text link in your Web page. To check the color or font of a text link:

 

1.      Choose Create > GUI Checkpoint > For object/Window.

The WinRunner window is minimized to an icon, the mouse pointer turns into a pointing hand, and a help window opens.

2.      Double-click a text link on your Web page.

The Check GUI dialog box opens, and the object is highlighted.

3.      In the Objects column, make sure that the text link is selected. The Properties column indicates the properties available for you to check.

4.      In the Properties column, select a property check.

? BackgroundColor indicates the background color of a text link.

? Color indicates the foreground color of a text link.

? Font indicates the font of a text link.

 

5.      To edit the expected value of a property, highlight a property.

Click the Edit Expected Value button, or double-click the value in the Expected Value column to edit it. A box opens.Edit the expected value.

6 Click OK to close the Check GUI dialog box.

 

WinRunner captures the object information and stores it in the test?s expected results folder. The WinRunner window is restored and a checkpoint appears in your test script as an obj_check_gui statement. For more information on the

obj_check_gui function.

  Was this answer useful?  Yes

Senthil Kumar P

  • Sep 27th, 2006
 

You can't check the Background and foreground properties of objects.It's not avialable.Bitmap checkpoint is the only way to verify the color of object

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions