Running tests on PyCharm using Robot Framework

前端 未结 4 2036
天命终不由人
天命终不由人 2020-12-05 12:11

I started using PyCharm with the robot framework, but I\'m facing an issue. How can I run my tests? All the time I right click on my tests folder, I get an Empt

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 12:56

    I have used the Intellibot PyCharm plugin for Robot Framework.

    For running the tests, we can do the below configuration:

    1. Go to File > Settings > External Tools
    2. Click '+' button under 'External Tools' panel
    3. In the 'Create Tool' dialog, enter the below values:
      • Name: Robot
      • Program: [Path of Pybot.bat e.g.C:\Python27\Scripts\Pybot.bat]
      • Parameters: $FileName$
      • Working Directory: $FileDir$
    4. Click OK

    Once the above configuration is done, we get the option 'Robot' in the context menu on the test in the IDE. Choose that option to run your test suite in PyCharm.

提交回复
热议问题