Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keep data through multiple iterations
#1
Not Solved
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.
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
I'd like to have the TestEm value keep for every iteration. How do you do this?

Brian
Reply


Messages In This Thread
Keep data through multiple iterations - by Brian.Osborne - 05-21-2011, 03:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple rows of test data Bhuvana 0 1,337 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Repeat iterations Until New Value Is Seen in Column1 shayk1985 1 1,730 07-05-2018, 05:52 PM
Last Post: Ankur
  UFT Datatable iterations Studymode 2 3,771 12-12-2017, 11:10 PM
Last Post: Studymode
  Grab multiple line data from log file haziqwebs 0 1,792 10-19-2016, 01:28 PM
Last Post: haziqwebs
  QTP-Re-executing script after completion of all iterations JwalantBhatt0602 1 2,691 03-24-2016, 12:37 AM
Last Post: JwalantBhatt0602

Forum Jump:


Users browsing this thread: 1 Guest(s)