Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP-Re-executing script after completion of all iterations
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  error when executing an UFT automation script alexalloza 0 1,537 10-30-2018, 06:17 PM
Last Post: alexalloza
  Repeat iterations Until New Value Is Seen in Column1 shayk1985 1 1,726 07-05-2018, 05:52 PM
Last Post: Ankur
  Executing via create "RES"xx folder? nishitd 0 1,242 03-07-2018, 01:09 AM
Last Post: nishitd
  UFT Datatable iterations Studymode 2 3,768 12-12-2017, 11:10 PM
Last Post: Studymode
Question QTP not performing iterations based on local data sheet Breaker 18 56,659 01-25-2016, 04:32 PM
Last Post: arunshuklainbox

Forum Jump:


Users browsing this thread: 2 Guest(s)