简体   繁体   English

如何从Jenkins运行Selenium Script(Junit)

[英]How to run Selenium Script (Junit) from Jenkins

I'm encountering some issues by executing Selenium Scripts from Jenkins, I'm totally beginner so I need many explanations if somenone can provide some... 我是通过执行Jenkins的Selenium Script遇到一些问题的,我完全是新手,所以如果有人可以提供一些帮助,我需要很多解释...

  • So i'm running Jenkins on my VM Linux. 所以我在我的VM Linux上运行Jenkins。
  • I've got those selenium script in a folder of this VM. 我已经在该VM的文件夹中找到了这些硒脚本。

What should I do to manage to make in run through Jenkins ? 通过Jenkins,我应该如何做才能使比赛顺利进行?

I don't understand a lot so if you could give me as much as details as possible... 我不太了解,所以如果您能给我尽可能多的细节...

  • If I have to use maven, what are the configurations in Jenkins ? 如果必须使用Maven,Jenkins的配置是什么? Do i have to create a POM.xml ? 我必须创建一个POM.xml吗? If yes what to insert inside ? 如果是,要在其中插入什么? Where do I put it ? 我放在哪里?

  • If that's not the solution ? 如果那不是解决方案? what should I do ? 我该怎么办 ?

Thanks in advance ! 提前致谢 ! :-) :-)

If the Junit tests run properly on your workstation, then you must do the following: 如果Junit测试在您的工作站上正常运行,则必须执行以下操作:

http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on-ubuntu/ provides setup details. http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on-ubuntu/提供了设置详细信息。

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

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