05-21-2011, 03:55 AM
Here is what I have.
I have a script in QTP that runs on a datatable of anywhere from 5 to 100 iterations. At the begining of the script a question is posed to the user. I want the answer to this question to be carried and used on all instances of the script.
Here is the code.
I'd like to have the TestEm value keep for every iteration. How do you do this?
Brian
I have a script in QTP that runs on a datatable of anywhere from 5 to 100 iterations. At the begining of the script a question is posed to the user. I want the answer to this question to be carried and used on all instances of the script.
Here is the code.
Code:
If Environment("ActionIteration") =1 and Environment("TestIteration") =1 Then
intAnswer = _
Msgbox("Would you like to test ****** while running this script?", _
vbYesNo, "Test while running?")
If intAnswer = vbYes Then
TestEm = "Y"
Else
TestEm = "N"
End If
End If
Brian