Micro Focus QTP (UFT) Forums
With Running Multiple Iteration and Actions - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: With Running Multiple Iteration and Actions (/Thread-With-Running-Multiple-Iteration-and-Actions)



With Running Multiple Iteration and Actions - Jazzy - 06-12-2009

Ankur buddy,
Here is the scenario:
I have 10 Iterations from GlobalSheet with 3 Actions, but I want to run Action1 for 10 Iterations and then proceed to next 2Action for 10 Iterations from the GlobalSheet. Rolleyes Need Help Thanks in Advance..


RE: With Running Multiple Iteration and Actions - niranjan - 06-13-2009

one way would be to make use of Local Sheet (if possible)


RE: With Running Multiple Iteration and Actions - Jazzy - 06-15-2009

Niranjan,Thanks I could not use the Local Sheet as the data set was also used by other Actions. So I did the following which act as reference for anyone else facing the same kind of problem..:

Code:
[b]Dim row_count[/b]
[b]row_count[/b] = DataTable.GetSheet("Global").GetRowCount
[b]For[/b] I = 1 to row_count
[b]SystemUtil.Run[/b] "C:\Program Files\Internet Explorer\iexplore.exe", "http://"
[b]DataTable.SetCurrentRow (I)[/b]
[b]Browser[/b]("Term Life").Page("Term Life_18").WebEdit("PayCCNumber").Set "1234567890124568"
[b]Next[/b]
[b]Browser[/b]("TD Insurance - Term Life").Page("TD Insurance - Term Life_12").Sync

The above set of code runs through the data set from Global and then moves to the next Action.