UFT doesn’t exit execution with ExitTest and other methods for same purpose.
Tags:
Question ID: 108198
1
0

We have a function library based framework. Each function starts with ‘On Error Resume Next’. There is scenario where the script has to exit a test and proceed to next when certain criteria are not met. for this we have tried to use, below methods. but none worked. scipt execution continued as usual.
ExitTest
Execute "ExitTest"
ExitTestIteration
ExitAction

These functions are called from inside functions.

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on March 15, 2018 6:28 pm
255 views
Answers (1)
0
Private answer

Using 'On Error Resume Next' statement can cause many problems and this issue appears to be related to the ''On Error Resume Next''. Please see Micro Focus document [KM00750199](https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM00750199) which describes the problem of ExitAction, ExitActionIteration, ExitTest and ExitTestIteration
not working if ''On Error Resume Next'' is used. The document recommends only using ''On Error Resume Next'' for just couple lines and then resetting the flag back with ''On Error Goto''. For more details, please see the Micro Focus document [KM00750199](https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM00750199).

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 15, 2018 6:29 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top