从TeamCity发送命令以在Jenkins上运行自动化测试 [英] Send command from TeamCity to run automation tests on Jenkins

查看:309
本文介绍了从TeamCity发送命令以在Jenkins上运行自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在TeamCity中添加构建步骤,该步骤将请求发送到Jenkins服务器,在Jenkins中运行一些自动化测试脚本,然后将响应发送回Teamcity.

Is there a way to add a build step in TeamCity which sends a request to Jenkins server, run some automation test scripts in Jenkins and sends back a response to Teamcity.

这个想法基本上是使整个部署过程自动化,其中还包括运行一些使用python脚本创建的自动化测试(将在Jenkins上完成).

The idea basically is to automate the whole deployment process which also includes running of some automation tests created using python scripts (which will be done on Jenkins).

我不确定这是否是最好的方法,但是还有更好的方法吗?还有关于如何从Teamcity向Jenkins发送命令的任何提示吗?

I am not sure if this is the best way of doing it but are there any better ways to achieve this? Also any hints on how to send command from Teamcity to Jenkins?

推荐答案

您可以发出一个http请求,如注释中所述,以开始对Jenkins进行测试.

You can make an http request, as mentioned in the comment to start tests on Jenkins.

关于将结果bach发布到TeamCity,可能的解决方案可能是:

As for publishing the results bach to TeamCity, the possible solution might be:

  • 在Jenkins上完成测试后,发布可在外部(由TeamCity访问)并由TeamCity解释/报告的结果(在任何 URL构建触发器插件,为创建的构建配置.将触发器指向发布结果的地址.一旦发布的内容发生更改,构建就会开始,您将能够将测试结果下载到TeamCity并进行处理
  • after tests are done on Jenkins, publish the results that can be accessed externally (by TeamCity) and interpreted / reported by TeamCity (either in any of the supported formats), or manually, by the script, that will be run by TeamCity, using service messages
  • create a build configuration that will process the tests after the Jenkins build
  • set up a URL build trigger plugin, configure the trigger for the created build configuration. Point the trigger to the address where results are published. As soon as the content published is changed, the build will start and you will be able to download the tests results to TeamCity and process them

这篇关于从TeamCity发送命令以在Jenkins上运行自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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