如何在新系统上使用 Java 安装 Selenium 并使用 Jenkins 作为 CI 生成正确的测试报告
我将在当前的项目中启动自动化。我想使用 Java 设置 Selenium 进行测试自动化。我希望 Jenkins(以前称为 Hudson)提供正确的测试报告。如何使用 Selenium 安装和配置 Jenkins/Hudson?我想通过SVN提交和更新我的脚本,那么如何用Jenkins链接SVN中的Selenium测试用例呢?
您能以正确的格式给我简单且非常清晰的图片和步骤吗?
I'm going to start Automation in my current project. I want to set up Selenium for Test Automation using Java. I want Jenkins (formerly known as Hudson) to provide proper Test Report. How to install and configure Jenkins/Hudson with Selenium? I want to commit and update my script through SVN, So how to link up with Selenium test cases in SVN with Jenkins?
Can you give me easy and very clear picture and steps in proper format?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先用 Java 创建一个支持 Selenium 的项目。我建议使用 Maven,因为它简化了一些事情。只需使用这些工具编写一些测试即可。
这可能会有所帮助:
http:// www.theserverlabs.com/blog/2008/09/17/automated-integration-testing-with-selenium-maven-and-jetty/
不介意 Jetty -它只是一个应用程序服务器实用程序。
完成这个初始阶段后,您可以简单地配置 jenkins (Hudson) 的新作业来浏览 Selenium 测试项目的存储库。从 Jenkins 运行它将执行测试。
Jenkins 将自动生成基本报告,您还可以使用其他工具(例如 Thucydides 和 Easyb)来支持测试创建和报告生成。
First create a Selenium enabled project in Java. I recommend using maven as it simplifies few things. Simply write a few tests using these tools.
This may be helpful:
http://www.theserverlabs.com/blog/2008/09/17/automated-integration-testing-with-selenium-maven-and-jetty/
Don't mind Jetty - it's just an application server utility.
Having done this initial phase you can simply configure jenkins' (Hudson) new job to browse repo for your Selenium test project. Running it from Jenkins will perform tests.
Jenkins will automatically generate basic reports, you can also use other tools like Thucydides and Easyb that will support test creation and report generation.