The scenario is: We have a script in QTP which will iterate for all rows in the datatable.
If there are some error in the first iteration, I would like all the browsers opened for that iteration to be closed and start fresh for the next iteration or completely exit out of the script. We are using ExitAction in our scripts and it exits out of the iteration not the script and doesnot close all the browsers. We have used “Close all browsers” option in the tools-> options-> Web, but this will close all the browsers only after the test ends.
We don't want to use ExitRun in our scripts since it causes other complications.