I have two variables:
${calculatedTotalPrice} = 42,42
${productPrice1} = 43,15
I executed
${calculatedTotalPrice} Evaluate ${calculatedTotalPrice}+${productPrice1}
I got
42,85,15
How can I resolve it?
Clicking on New Scalar will open the following screen to create the variable and the value we need to replace with when the variable in used inside test cases. We get ${} for the Name field. The name of the variable is ${url}. The value is − http://localhost/robotframework/login.html.
To run tags in robot framework in the terminal you need to include -i and the Tag name. You can include the path name if your want to only check for tags in that path. If you include the folder name rather than the path it run all tests with that Tag name. Save this answer.
This keyword returns Boolean True if the keyword that is executed succeeds and False if it fails. ${passed} = Run Keyword And Return Status Should be Equal 1 2 Run Keyword Unless ${passed} Log The previous step FAILED!
the simplest way to add two variables in robotframework without the need to call keywords: you declare it in the VARIABLES sections
*** Variables ***
${A1} ${1}
${A2} ${2}
${A3} ${${A1}+${A2}}
then the output of ${A3} is: 3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With