aaron.marquet

E2E restart script

Discussion created by aaron.marquet on Mar 28, 2012
Latest reply on Apr 5, 2012 by 1_jstockton

Hi,

 

I have a script that fails at a point due to a known issue with the app it's running. After a few more runs it continues on. What i'd like to do at this point is if it fails to run the Clean_up etc and restart the script. Is this possible?

 

Below is a snippet:

 

Pause  until   

WinStatus(Active)   

InWindow("DM.EXE|#32770|Item Search",1)  

PauseFalse   

nimAlarmSimple(4, "DM - failed")   

nimQOSStop()   

nimQOSSendNull(target$)   

nimend()    

Clean_up()   

End  

EndPause  

nimAlarmSimple(0, "DM - success")

Outcomes