I have one button in my application.Name of button is "start".Once if u click on this button the name of the button changes to "stop".how the WinRunner recognizes this button.give the detail method.

Questions by chvenu   answers by chvenu

Showing Answers 1 - 7 of 7 Answers

Saritha M R

  • Apr 7th, 2006
 

Hi,

The Gui Map records that button with a logical name "Start",Even if the Caption changes, its not different for Gui Map.It recognizes that button as "Start" button.

  Was this answer useful?  Yes

WinRunner can recognize the button by assigning the third property in Physical description of that button.

Tools----GUI Mapconfiguration---Select the teatable object---Configure

In Configure class window,if we add the msw_id,Then winRunner will recognize the object while execution.MSW_id will be assigned by operating system.

Vidyakar Kotha

  Was this answer useful?  Yes

Sushma

  • Apr 17th, 2006
 

u need to write a regular expression for the label property.

  Was this answer useful?  Yes

we can use regular expression.

while clicking the start button, the button should be change to the name stop. here only change the text name , not entire physical description,OK

you can put regular expression , if any name will change ,system will recognize start only.

if have doubt mail me

Thanks

srinivasulu.chittoor

  Was this answer useful?  Yes

pavan

  • Apr 19th, 2006
 

Hi

U need to write regular expression in physical description

eg  suppose if winrunner recognize like start

 the physical desc is      start

              

    

  Was this answer useful?  Yes

pavan

  • Apr 19th, 2006
 

Hi

  mention regular expression

   start/stop(logical name)

{

label : ------

attached text:"!st.*"

}

  Was this answer useful?  Yes

shiva

  • Jun 3rd, 2006
 

In our application if the object labels are varying depends on events.To create automation test scripts for that particular objects and windows,we need to perform changes in GUI map editor entries.

We follow Regular expressions in place in this method.The navigation is as follows.

Tools -----> Gui map editor ---->Corresponding entry ----> Modify ----> Insert Regular expressions in required place of label ----> Click "ok".

original entry                              Modified Entry

Logical name:Start                       Logical name: start

{                                                  {

Class:push button                         Class  : push button

label : start                                 label: "![s][t][ao][rp][a-z]*"

}                                                  }

          - Shiva(kittu).

  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