Forum Discussion
nmrao
Champion Level 3
Not all variables available in all the contexts.
Have a look at the right top corner of the script editor to see what variables available.
What are you trying to achieve, by the way?
Have a look at the right top corner of the script editor to see what variables available.
What are you trying to achieve, by the way?
nicolaspwc
4 years agoNew Contributor
Hi, can you share a screenshot please?
- nmrao4 years agoChampion Level 3Not at pc.
Open groovy script and look the editor's right corner of title bar.
You would notice context, log, test runner etc.,
Similarly you can notice wherever one can script such as the events, teardown, setup script for test case, suite, project etc.,
So one can only use those variables in that script. Other than those will lead to error. That's the reason if some script works in test step, but not in the event in your case. - nmrao4 years agoChampion Level 3
Please find the available variables in color coded in below screen shots
If a script is copied from groovy script to other places such as events, test suite tear down or any other place, they may not as is. May have to tweak a bit to make them work.
Related Content
Recent Discussions
- 20 days ago