Skip to content

Instantly share code, notes, and snippets.

@up1
Created May 31, 2025 05:00
Show Gist options
  • Save up1/eb193313687c2a17a334540b39100632 to your computer and use it in GitHub Desktop.
Save up1/eb193313687c2a17a334540b39100632 to your computer and use it in GitHub Desktop.
Robot framework 7.3
*** Variables ***
${AGE: int} 1
*** Test Cases ***
Use variables
# FAIL: 1 (integer) != 1 (string)
Should Be Equal ${AGE} 1
# PASS
Should Be Equal ${AGE} ${1}
Use VAR syntax
VAR ${age: int} 30
# FAIL: 30 (integer) != 30 (string)
Should Be Equal ${age} 30
# PASS
Should Be Equal ${age} ${30}
*** Keywords ***
Check ${age: int} in Keyword
# FAIL: 30 (integer) != 30 (string)
Should Be Equal ${age} 30
# PASS
Should Be Equal ${age} ${30}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment