一、安装robotframework-redislibrary:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
pip install redis
pip install robotframework-redislibrary
ERROR: Cannot uninstall 'pyparsing'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
pip install --ignore-installed pyparsing
二、在setup中执行多个关键字
run keywords|关键字一|参数一|参数二|AND|关键字二|参数一|参数二
三、在setup中设置变量
set suite variable | ${url} | http://0.0.0.0:8002 | children=true
四、在用户关键字中设置参数(字典类型需要放在最后且不用设置默认值)
${uri} | ${params}=’’ | &{cookies}
五、需要模拟ajax请求时,在heards上添加
X-Requested-With=XMLHttpRequest
六、None 变量
${null}==None
七、使用数字作为字典的value
r e s u l t c r e a t e d i c t i o n a r y i d = {result} create dictionary id= resultcreatedictionaryid={5}
八、多个tag控制执行
nocookies & level1