I have a script where the number of Global Iterations is not known when the test begins. Therefore I have tried the following code within the run:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Dim App
Set App = CreateObject("QuickTest.Application"
App.Test.Settings.Run.EndIteration = intNumberOfTests
</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">However QTP does not pick up this change and continues with the original settings. I have tried using "Run on all rows" but still no luck.
Can I do this or am I going to have to write a manual loop?
If I can set the End Iteration at run time then I can use QTP's iteration functionality to process each test on the Global sheet rather than having a manual loop. This way allows much easier error handling (i.e. Use recovery manager to close IE and move to next global iteration)
If I do use a manual "For ... Next", how do I move on to the next iteration if the current iteration encounters a problem?