Forum Discussion
baxatob
9 years agoCommunity Hero
Your code is correct, however your should check where you have call your variable, because KeywordTest variables are not accessible from other keyword tests. If so, you should use Project or ProjectSuite variables.
- vibhashenoy9 years agoOccasional Contributor
Hey. Thanks for the reply.
So I declared a variable at the project suite level and tried accessing it in my script usingnewva = ProjectSuite.Variables.VariablebyName("Varname")
where Varname is my suite level variable. It returns null when i try to print it. Is there another way through which I can access the suite level variable?
- baxatob9 years agoCommunity Hero
Check carefully your assignment for this variable. If it returns null, it was not assigned by another value.
- vibhashenoy9 years agoOccasional Contributor
Hey, yea the variable wasn't referenced correctly. Thanks for your help
Related Content
- 9 years ago
- 7 years ago
Recent Discussions
- 2 days ago
- 7 days ago
- 11 days ago