Next iteration when running script

in the script, when an error occurs, I just use the "EXITGLOBALITERATION" command, but not going to next iteration ... Is there any other alternative for this?

+1


source to share


3 answers


The QTP documentation makes sense to say about ExitGlobalIteration

:



This statement is deprecated. Use ExitTest Statement instead. The ExitTest statement provides all the functionality of the ExitRun statement and applies equally to both QuickTest tests and Quality Center business processes.

+2


source


Looks like it's about QTP!



I believe you should be using ExitActionIteration, but having no idea about setting up your test script makes it hard for you to know what you want.

+1


source


You will need to check after each command for the error, something like this


On Error Resume Next
For i = 0 To 10
  'Command1
  If Err.Number = 0 Then
    'Command2
     If Err.Number = 0 Then
       'Command3
     End If
  End If
Next

      

0


source







All Articles