Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need variables to keep value from iteration to iteration
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
I need a few variables to keep their values from iteration to iteration. Is there a way to have QTP do this?
Let me explain a bit more about what I'm doing and what I need out of it. Maybe someone will come up with a creative solution.
I have the first few lines of code that navigates to a website and pulls some information needed to run the script. I capture it and store it for use later in the script.
Here's the thing, it only changes once a week or so. So, rather than capturing it on every iteration, I want to capture, store and use it on ALL iterations on the script.
I want to run the first few lines on only the first iteration and keep the values it captured for use in the subsequent iterations.
Hope this helps clarify.
Reply


Messages In This Thread
Need variables to keep value from iteration to iteration - by Brian.Osborne - 05-04-2012, 11:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 866 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 3,379 02-12-2017, 01:25 PM
Last Post: cthossain
  Function return value is not passed during the 3rd iteration premanand1979 0 2,078 10-16-2014, 09:40 PM
Last Post: premanand1979
  Iteration in Local sheets for UFT11.5 haithamQTP 1 3,017 02-27-2014, 09:12 AM
Last Post: supputuri
  where to declare variables?? ACCBAJPA 0 2,256 10-01-2013, 07:20 PM
Last Post: ACCBAJPA

Forum Jump:


Users browsing this thread: 1 Guest(s)