repeat use the value of a variable variable
Please help. I had this problem all the time. I do website UI testing use silk, There is a variable I need to repeatly use for different test case one by one. is there anyway I can do it? How can I make it as a globle variable, so once it has the value, I can use all the time.
thanks a lot!
Re: repeat use the value of a variable variable
Yes, simply add it to the var sections in the script (just above the dclrand section)
Any variable declared here will hold the same value throught all transactions unless it is specifically changed by you somewhere in the script.
Alternatively if the value will never change then use a constant instead of a variable.
TInit : begin;
TMain : 10;
var //**here is the global var section