Forum Discussion
- jorgesimoes1983Regular ContributorLook at the attachment ;)
- hyper111ContributorLol :D you're right. I have too much Temporary Variables and I missed out on tab with Persistent Variables -.- Thanks!
- jorgesimoes1983Regular ContributorYou're welcome! ;)
- jorgesimoes1983Regular ContributorYou can use an if statement
if(condition)
{...}
:) - hyper111ContributorOK. But how can I get result from Script Routine ?
- jorgesimoes1983Regular ContributorYou can return the result to a variable, and then use it in your scripts, for instance,
Project.Variables.Name_of_the_variables
Variables --> http://support.smartbear.com/viewarticle/56794/
Check "Last operation" feature also --> http://support.smartbear.com/viewarticle/57013/ - hyper111Contributor
I was trying set value to the variable by
Project.Variables.Var1 = "New test"
and it is not working variable is empty.
Do I need to do something else to set a value?
I tried many examples of (http://support.smartbear.com/viewarticle/56794/), and the effect is the same.
- hyper111Contributor
I added a variable by (Project.Variables.AddVariable "MyVar", "String") but I do not see it in the Project.Variables. Some TC operations that operate on variables detected it.
Why I cant see it?