Robot Framework 小坑记录

一、安装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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值