How to add two variables


#1

Hi,

can you help me, what is wrong on this command:

[info] Executing: | store | 15 | ev1 |
[info] Store ‘15’ into ‘ev1’

[info] Executing: | store | 25 | ev2 |
[info] Store ‘25’ into ‘ev2’

[info] Executing: | storeEval | storedVars[‘ev1’]+storedVars[‘ev2’] | sum |
[info] Store ‘null’ into 'sum’

Thanks

O.


#2

can we see the whole error from katalon and the code you are trying please?


#3
storeEval | 10 | a
storeEval | 15 | b
storeEval | a+b | c
echo | ${c}

#4

Hi,

when I use command storeEval | a+b | c, Katalon Recorder return in log - [error] Threw an exception: a is not defined.

O.


#5

Please make sure a has been already defined with a storeEval. Also please run the whole test case not just the last command.


#6

When I run whole test, is result OK. Thanks.