Variables and scope without surprises
Robot supports scalars, lists, and dictionaries. The common mistake is reassigning suite-level variables mid-execution, creating hidden state.
Best practice:
• Keep constants in the *** Variables *** section.
• Pass dynamic data as keyword arguments.
• Assign outputs to new variable names.
Example:
*** Variables ***
*** Test Cases ***
Login
${token} Get Token ${USER} ${PASS}
Control scope like you would in real code. Avoid side effects, keep state explicit.
0
0 comments
Kristijan Plaushku
1
Variables and scope without surprises
powered by
AI Test Automation Architects
skool.com/software-automation-anywhere-9887
AI Test Automation Architect (ATAA)
Build your own community
Bring people together around your passion and get paid.
Powered by