Forum Discussion

vibhashenoy's avatar
vibhashenoy
Occasional Contributor
9 years ago

Can we pass variables from a KeywordTest to a script and vice versa?

Hey,  I was trying to use variables across keyword tests and scripts, tried writing the following in the script but it did not execute varname = KeywordTest.KeywordTestName.Variable.VariableByName("...
  • baxatob's avatar
    9 years ago

    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.