mgroen
11 years agoFrequent Contributor
Increasing variable value
Hi,
I have defined a local variable named tellertje of type integer;
In keyword testing I use Code Snippet, and use following code:
Keywordtests.test1.Variables.tellertje = Keywordtests.test1.Variables.tellertje + 1
However when running the test the value remains 0 (it's initial value)
What am I doing wrong?
I have defined a local variable named tellertje of type integer;
In keyword testing I use Code Snippet, and use following code:
Keywordtests.test1.Variables.tellertje = Keywordtests.test1.Variables.tellertje + 1
However when running the test the value remains 0 (it's initial value)
What am I doing wrong?
- Mathijs,
I believe that Andrew's solution should work. I attached an image of what the keyword dialog should look like using his suggestion.
Let us know if this works for you.