一、创建python文件var.py
a=123
b='abcdef'
c=['abc','bcd','def']
d={'username':'tom','password':'123456','age':11}
二、在robot文件中引用var.py中的参数
*** Settings ***
Variables var.py
*** Test Case ***
Case1
Log To Console ${a}
Log To Console ${b}
Log To Console ${c}
Log To Console ${d}
查看运行结果: