Forum Discussion
RajeshVV
Contributor
eykxas This is related to Project level variables. I need to create variables which can be created locally for each keyword test.
eykxas
7 years agoFrequent Contributor
I think you ca do the same thing with KeywordTest.
For example with this instruction (still for javascript) :
KeywordTests.NameOfKeywordTest.Variables.AddVariable()
and these :
var s; // Get the variable value s = KeywordTests.KeywordTest1.Variables.MsgVar; // -- or -- s = KeywordTests.KeywordTest1.Variables.VariableByName("MsgVar"); // Set the variable value KeywordTests.KeywordTest1.Variables.MsgVar = "New Value"; // -- or -- KeywordTests.KeywordTest1.Variables.VariableByName("MsgVar") = "New Value";
Related Content
Recent Discussions
- 9 hours agoashly