【版本号】

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按钮,就可以执行成功了

python3+robotframwork+ride搭建

相关文章:

  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2021-09-24
  • 2021-09-26
  • 2021-11-16
  • 2021-05-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-09-14
相关资源
相似解决方案