Adding numbers together in RVL

Friday, December 8, 2023
Avatar

I have doing a piece of automation that requires picking a number off the screen storing as variable and adding 10 to it. Currently I'm using variable and action type Increment how this is concatenating the values instead on preforming the addition. 

 

Is there a way preform addition in rvl ? 

1 Replies
Friday, December 8, 2023
Avatar
re: Raymond.Harvey Friday, December 8, 2023

Hi Raymond,

This happens because the value from screen is a text string. You may use an 'expression' type.

Suppose that the variable name is "ScreenVal" and you need to increment it by 10 you may write something like that:

    Variable            ScreenVal    expression    parseInt(ScreenVal)+10        
 

I hope that helps.

Br/Alex G

 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Friday, December 8, 2023
  • Last Reply: Friday, December 8, 2023
  • Replies: 1
  • Views: 275