带有测试自动化的推送部署
我们正在开发一些测试基础设施,但我遇到了编码员障碍(缺乏睡眠?)...这似乎是一个已解决的问题,但我还没有通过谷歌找到我正在寻找的东西。
我想自动将构建从我们的 CI 服务器 (TeamCity) 推送到许多机器(不断增加,但目前为 30 台)。这些是几个 WinForms 应用程序和一些 dll。部署后,我想启动测试(NUnit,用于单元测试和集成测试)并报告所有结果(返回到 CI?或其他地方?不确定)。
目标机器有多种平台(Win7、Vista、XP、Server 2k8、Server 2k3、Ubuntu、Fedora、Suse、x64、x86,也许还有 Mac)
这 让我到达那里(实际 推)。但我找不到用于“推动启动”测试和报告的现有解决方案。到目前为止,我正在考虑将链接(或类似的链接)与在每台客户端计算机上运行的自定义代码相结合,以监视部署目录、运行测试并报告结果。
- 有人知道现有的解决方案吗?
- 链接?
- 做过类似的事情并愿意分享吗?
编辑
如果可能的话,我们更喜欢基于 .net 的解决方案,但这并不是绝对必要的。我本来会这样标记这个问题,但标签用完了:)
We are developing some testing infrastructure and I have hit a coders block (lack of sleep?)...this seems like it would be a solved problem but I haven't found what I'm looking for via google.
I would like to automatically push builds from our CI server (TeamCity) to a number of machines (growing, but currently 30). These are several WinForms apps and a number of dlls. Once deployed, I would like to kick off tests (NUnit, for both unit and integration tests) and report all results (back to CI? or somewhere else? Not sure).
The target machines are a number of platforms (Win7,Vista, XP, Server 2k8, Server 2k3, Ubuntu, Fedora, Suse, x64, x86, maybe macs down the line)
This gets me part way there (the actual push). But I can't find existing solutions for 'push starting' the tests and reporting back. So far I am thinking of combining the link (or similar) with custom code running on each client machine that watches the deploy directory, runs the tests and reports the results.
- Does anyone know of existing solutions?
- Links?
- Done something similar and care to share?
Edit
If possible, we prefer .net based solutions, but it isn't strictly necessary. I would have tagged the question as such, but ran out of tags :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 KwateeSDCM 在您提到的所有平台(包括 Mac)上进行推送和启动。但是,您必须进行一些编码才能生成报告。我不熟悉 TeamCity,但也许您可以将脚本与应用程序一起推送,然后该脚本可以通过 ftp 将测试结果传输到 TeamCity 可访问的服务器。
You could use KwateeSDCM to both push and start on all the platforms you mention, including mac. However, you'll have to do some coding to get reports out. I'm not familiar with TeamCity but maybe you could push a script along with your application which could then transfer the test results via ftp to a server accessible by TeamCity.
看一下:STAF(软件测试自动化框架)
其中包括 STAX:
这里有一篇文章:
http://agiletesting.blogspot.com/2004/12/stafstax-tutorial.html
Have a look at: STAF (Software test Automation Framework)
Which includes STAX:
And there's an article here:
http://agiletesting.blogspot.com/2004/12/stafstax-tutorial.html
假设您已经完成推送部分,并且您不介意使用 TeamCity 许可证,则可以创建 TeamCity Command Line Runner 构建配置或 NUnit 测试配置,以在正确配置的代理上启动测试。此测试配置的构建触发器将成功完成应用程序构建。
Assuming you have the push part done already, and you don't mind using a TeamCity license, you can create a TeamCity Command Line Runner build configuration or NUnit test configuration that kicks off the tests on a properly configured agent. The build trigger for this test config would be successful completion of the application build.
到目前为止,我最终在 TeamCity 中使用了一个单独的构建步骤,该步骤执行一个 bat 脚本,该脚本又使用 PsExec。到目前为止,我的试验运行正常,尽管我现在需要并行化构建输出的复制...
感谢提供它的人的输入。
So far I have ended up using a seperate build step in TeamCity that executes a bat script that in turn fires of tasks to the list of machines using PsExec. So far my trial runs it is working ok, though I now need to parallelize the copying of build output...
Thanks for the input to those who have provided it.