Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

QTP-Re-executing script after completion of all iterations

$
0
0
Dear Friends,

Below is my script looks like

Statement 1
Statement 2
For I = 1 to RowCount
Statement 4
Statement 5
Statement 6
....
....
....
Next
Browser("Name").CloseAllTabs

Datatable (Global)
Testdata 1
Testdata 2
Testdata 3
Testdata n

(Global) (Action)

Problem:
After executing ALL test iterationS from Datatable (Global) using For Loop, QTP executes last statement "Browser("Name").CloseAllTabs". Then again it starts executing from top that is Statement 1 and re-entering in For loop to re-executing test data given in Datatable (Global)

What I was expecting - I was expecting to stop the execution because all iterations have been completed and script also has executed last statement. However, script cursor moved to very first statement of script and start executing from Top to Botton again.

Please help and let me know if you need further more information

Viewing all articles
Browse latest Browse all 1653

Latest Images

Trending Articles



Latest Images