Forum Discussion
I alreday added aDelay in the script before the YES and after the YES button is clicked
How do I check if the stored value is being stored in the first step?
So how do I call the stored value in my next step?
- tristaanogre6 years agoEsteemed Contributor
Put a break point in your test script JUST after the Set Variable command. (https://support.smartbear.com/testcomplete/docs/testing-with/debugging/breakpoints/using.html)
Then, run the test.
When the test stops, evaluate the contents of the project variable. (https://support.smartbear.com/testcomplete/docs/testing-with/debugging/general-info/evaluating-expressions.html)
That's the first step... making sure the value is getting set. And, to be honest, I'm confused... because I asked you a while back how you knew that the value wasn't being set and you said because it wasn't getting populated in the next step... so... not ENTIRELY sure what is going on. If you don't even know if the value is getting set, how do you know there's a problem?
As for using it... when you want to use the contents of the variable, when you select an operation, when indicating the parameters, you can set the mode to "Variable" and then select the variable. That will then input the value of the variable into whatever operation you've selected. (https://support.smartbear.com/testcomplete/docs/testing-with/debugging/general-info/evaluating-expressions.html)