Hi I have few sheets of Data for a Test….and one of the sheet is
Driver_Script sheet….
My Script is controlled from a Driver_Script action….
And the Page Flow is controlled form the Driver_Script Sheet….
Based on the Values on certain columns in the Driver_Script sheet the
page flows are decided…
The problem I am facing is when the script goes to look for the
Driver_Script sheet to decide which page to Run…it always picks up
value from the first row….and not the current row……
Where should I be placing…..
Datatable.GetSheet("Driver_Script").SetCurrentRow (i)
OR
Datatable.SetCurrentRow (i)
…….
My Driver Script goes something like this…..
RunAction "1 ", oneIteration ' Values to be Picked
from Global Sheet
'Page 2
RunAction "2 ", oneIteration ' Values to be Picked
from Local Sheet
'Page 3
RunAction "3 ", oneIteration ' Values to be Picked
from Local Sheet
'Page 4
If DataTable("aaaa", "Driver_Script") = "1" Then
RunAction "4", oneIteration ' Values to be Picked
from Local Sheet
ElseIf DataTable("bbbb", "Driver_Script") = "2" Then
RunAction "4 ", oneIteration ' Values to be
Picked from Local Sheet
End If
'Page 5
If DataTable("ccc", "Driver_Script") = "1" Then
RunAction "5", oneIteration
ElseIf DataTable("dddd", "Driver_Script") = "2" Then
RunAction "5 ", oneIteration
End If
'Page 6
RunAction "6", oneIteration
And so on….
Any help is very much appreciated…
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---