05-04-2012, 11:29 PM
(This post was last modified: 05-04-2012, 11:55 PM by Brian.Osborne.)
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.
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.