How to break infinite loop?



How to break infinite loop?..

Answer / Sushant Kumar

In WinRunner, an infinite loop can be broken by manually stopping the test run through the Test Executive or by using a 'Stop Test' keyword. Alternatively, you can add a condition within the loop that checks for a specific state and exits the loop when the condition is met.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WinRunner Interview Questions

How do you call windows APIs, explain with an example?

1 Answers  


i get error "winrruner cannot identify object" and gives details like the physical description of object "windowsFor....378734a_11" has changed descritpion in GUI map new discription Description { { class:object class:object Msw_id:264896 Msw_id:918548 } } Below is a script of functionality where amount is transfered from users account ,first contact summary of user is opened then transfer button is available on which we click .on clicking transfer form opens and various details are entered like amount to be transfer,transfer type .line where i m getting error is obj_mouse_click ("WindowsForms10.Window.8.app have marked it with red in script .0.378734a", 164, 10, i would be very thankful if anyone can give help related to this problem. *SCRIPT IS BELOW:-* > # Shell_TrayWnd > set_window ("Shell_TrayWnd", 1); > toolbar_button_press ("ToolbarWindow32_1", "Contact summary - > Scheme: > SCHEME CARD PROGRAM (admin - Local - V.1.8.2.0000)"); # Button Number > 3; > > # Contact summary - Scheme: SCHEME CARD PROGRAM (admin - Local - > V.1.8.2.0000) > set_window ("Contact summary - Scheme: SCHEME CARD PROGRAM (admin - > Local - V.1.8.2.0000)", 1); > obj_mouse_click ("CommandBar1", 437, 15, LEFT); > > # Transfer (admin - Local - V.1.8.2.0000) > set_window ("Transfer (admin - Local - V.1.8.2.0000)", 1); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a", 164, 10, > LEFT); > > # #32769 > set_window ("#32769", 0); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a_0", 138, 9, > LEFT); > > # Transfer (admin - Local - V.1.8.2.0000) > set_window ("Transfer (admin - Local - V.1.8.2.0000)", 0); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a_1", 166, > 13, LEFT); >

1 Answers  


What are the reasons Winrunner fails to identify an object in the GUI?

3 Answers   Bristle Cone, Logica CMG,


How to integrate automated scripts from testdirector to winrunner scripts?

1 Answers  


winrunner & QTP both are developed by mercury interactive,what is main difference between these two? Thanks in ADVANCE

3 Answers  


Difference between winrunner and test director?

1 Answers  


How winrunner recognise window/object apart from GUI map file?

4 Answers   CA,


How to close the winrunner window from the script itself?what is the code?

2 Answers   EDC,


How do you scope, organize, and execute a test project?

2 Answers   IBM, Wipro,


What is the purpose of regexp_label property?

1 Answers  


What is the difference between QTP and WinRunner?

5 Answers   AppLabs,


What is the purpose of gui map configuration?

1 Answers  


Categories