python3+robotframwork+ride搭建

【版本号】

python3.7.2

robotframework 3.1.1

wxpython 4.0.4

robotframework-ride 1.7.3.1

robotframework-selenium2library 3.0.0

【步骤】

1.先安装python3.7.2

2.在cmd admin界面,用pin依次安装robotframework、wxpython、robotframework-ride、robotframework-selenium2library

3.运行ride,在cmd界面进入\\python37\scripts,执行:python ride.py

4.新建project -》新建testcase 。输入log abc,点击运行

发现报错

Traceback (most recent call last):
  File "C:\Python37\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line 300, in OnRun
    command = self._create_command()
  File "C:\Python37\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line 325, in _create_command
    self.get_current_profile(),
  File "C:\Python37\lib\site-packages\robotide\contrib\testrunner\testrunnerplugin.py", line 699, in get_current_profile
    return self._test_runner.get_profile(self.choice.GetStringSelection())
  File "C:\Python37\lib\site-packages\robotide\contrib\testrunner\testrunner.py", line 106, in get_profile
    return self.profiles[name]
KeyError: ''
 

解决方案--》发现ride界面的Execution Profile为空,选择“robot”后,在点击start按钮,就可以执行成功了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值