如何在eclipse中将机器人框架与python一起使用,以及如何使用python解释器在eclipse中运行Robot框架测试? [英] How to use robot framework with python in eclipse and How to run the Robot framework tests in eclipse using python interpreters?

查看:78
本文介绍了如何在eclipse中将机器人框架与python一起使用,以及如何使用python解释器在eclipse中运行Robot框架测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的Eclipse中安装了机器人框架插件. 我在路径中添加了python插件和解释器,python文件正在成功执行. 我在项目中添加了内置库索引文件,创建了机器人文本文件,并且我想执行测试,但是我右键单击测试并尝试以其身份运行,它没有给出运行配置.我尝试执行F9,但无法正常工作. 我认为在Eclipse中运行机器人测试需要单独设置. 在我的项目中,我们无权访问Maven,并且客户不希望使用Maven. 请让我知道如何在Eclipse中执行机器人测试.

I have installed robot framework plugin into my eclipse. I have added python plugins and interpreter in the path, python files are executing successfully. I have added built-in library index file in the project, created robot text file and i want to execute the test but i right click on the test and try to run as, it is not giving the run configurations. I tried F9 for execution but it is not working. I think there is the separate set up required for running the robot tests in eclipse. my project we don't have access to Maven and client doesn't want Maven. Please let me know how to execute the robot tests in eclipse.

谢谢

推荐答案

您可以使用RED(机器人框架编辑器),它是Eclipse Marketplace中提供的Eclipse扩展.安装后,只需转到运行->运行配置...",然后在机器人"下配置运行配置文件. Eclipse将在您的测试中执行以下命令:

You can use RED (Robotframework Editor), an extension for Eclipse available in the Eclipse Marketplace. Once you installed, simply go to "Run -> Run configurations..." and configure a run profile under "Robot". Eclipse will execute the following command on your test:

/usr/bin/python -m robot.run

您可以在消息日志"视图中检查日志,并在执行视图"中检查测试结果.

You can check the logs in the "Message Log" view, and test results in the "Execution View".

这篇关于如何在eclipse中将机器人框架与python一起使用,以及如何使用python解释器在eclipse中运行Robot框架测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆