如何安排测试并存储测试报告?
我有一些集成测试(java 类),用于测试服务器应用程序。 (测试只是发送请求、接收响应并验证它们)。现在我想定期运行测试(例如每晚),以某种方式将测试报告存储在数据库中,并运行诸如“哪些测试针对构建 #xxx 失败”之类的查询。
我应该使用詹金斯吗?有没有其他开源java软件可以完成这个任务?是否有任何 Web 服务可以针对我的服务器运行集成测试并将报告存储在数据库中?
I have a few integration tests (java classes), which test a server application. (the tests just send requests, receive responses and verify them). Now I would like to run the tests periodically (e.g. nightly), store the test reports somehow in a database, and run queries like "which tests failed against build #xxx".
Should I use Jenkins? Is there any other open source java software for this task? Is there any web service, which can run my integration tests against my server and store the reports in a database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Jenkins 和 CruiseControl 都不会将您的测试结果存储在数据库中。但 Jenkins 确实会存储构建的测试结果,并显示一些图表,您可以在其中看到测试结果如何随时间变化。 Jenkins 还可以知道有多少个构建测试已被破坏以及类似的信息。
您可以查看 Jenkins 项目的 Jenkins,这里 是一个项目,您可以在其中看到一些测试失败。
Neither Jenkins nor CruiseControl store your test results in a database. But Jenkins does store the test results of your builds, and displays some graphs where you can see how the test results evolve over time. Also Jenkins can tell since how many builds a test has been broken and similar information.
You can take a look on the Jenkins of the Jenkins project, here is a project where you can see some tests failing.
您可以使用 Cruisecontrol,类似于 jenkins。
但是,如果您只运行一个脚本,则可以使用 Windows 计划或 cron 作业定期执行它。
You can use Cruisecontrol, similiar to jenkins.
But if you are running just a script, you can have it executed with periodically with windows schedular or cron jobs.
使用 Jenkins 进行测试计划和报告创建,使用 Maven (surefire) 和 TestNG 进行定义和运行测试 - 效果很好。
Use Jenkins for test scheduling and report creation , Maven (surefire) and TestNG for definition and running the tests - works well.