简体   繁体   English

机器人框架从 Jenkins 使用 git 存储库运行

[英]robot framework run from Jenkins using git repository

I need to run my robot framework test cases from Jenkins. I have few questions我需要从 Jenkins 运行我的机器人框架测试用例。我有几个问题

  1. How to identify whether do I need to use windows or Shell (based on which machine Jenkins are running?)如何判断我需要使用windows还是Shell(Jenkins在哪台机器上运行?)
  2. I tried in both ways (windows and shell) but its failing.我尝试了两种方式(windows 和 shell),但都失败了。 Below is the commands I used to run robot -i [tag] file1.robot下面是我用来运行 robot -i [tag] file1.robot 的命令

Is there any other commands I need to add?我需要添加任何其他命令吗?

Please suggest how to run?请建议如何运行?

  1. to your first point it depends on the node/agent you define in your project, rather than on the machine Jenkins is running on, but i对于您的第一点,它取决于您在项目中定义的节点/代理,而不是在运行 Jenkins 的机器上,但我
    suspect that it is the same thing in this case.怀疑在这种情况下是同一回事。
  2. You also have to have other dependencies on this node/agent, such as robot etc.您还必须在此节点/代理上有其他依赖项,例如机器人等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM