Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops in actions
#1
Not Solved
I searched but could not find a simple solution.
The question is this,

I want to loop after the logon an action until the datasheet is all done. So once logon en then do some steps over and over again.

Code:
Wait (8)
Logon action
Wait (2)

Dim record_count
record_count = DataTable.GetSheet("Action1").GetRowCount
For i = 1 to  record_count
DataTable.GetSheet("Action1").SetNextRow

here are my actions

NEXT

If i run it is will redo the whole action with logging in... It needs to loop only the action after logging in
Reply
#2
Not Solved
Please update the setting in the following.

File> Settings>Run> Select Run One Iteration only radio button

You should be all set.
Thanks,
SUpputuri
Reply
#3
Not Solved
Assuming you have 2 actions say Login and BookTicket. Now if you have to Login once and book two tickets i.e., Login(1 Iteration)-->BookTickets(2 iterations). All you have to do is Add the test data corresponding to bookticket in bookticket action sheet.Now go to action properties of booktickets select run on all iterations radio button. This way Login will be executed once and bookticket twice.Hope this is what you are looking for.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Do Loops in SAP Shure 0 1,879 05-24-2008, 01:55 AM
Last Post: Shure

Forum Jump:


Users browsing this thread: 2 Guest(s)