Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi threading in WR

Status
Not open for further replies.

manyvan2000

Programmer
Oct 15, 2003
6
US
hi,
i am testing a java based application. in this, i have some edit boxes with the same description. the only unique properties are the handles and class_index. but these are unreliable because the handles change with every session.

when i enter the screen from the menu, i get the properties as
A class: edit, attached_text:A, class_index:220;
B class: edit, attached_text:A, class_index:222;
then i am taken to some other screens based on the options i choose. then i am returned to this screen. now the widgets are
A class: edit, attached_text:A, class_index:222;
B class: edit, attached_text:A, class_index:224;
so class_index is also unreliable.
is there any way to solve this from winrunner?

i also tried to create a dll, which would get the handle of the widgets dynamically and set the values. but i could get only the handle to the window and not the widgets. is there any way to get the handles from win32?

i also tried to create a seperate thread that handles popup windows, inside the dll. but WR crashes on this. the problem with the exception handler in WR is that it runs in the same thread as the main script and if you pop up a message box without returning a value to WR, WR hangs. Is there any way to create a seperate thread for doing this?
-Mani

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top