构建服务器上运行的UI自动化测试 [英] Running UI automation tests on build server

查看:327
本文介绍了构建服务器上运行的UI自动化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用UI自动化和NUnit创建WPF应用程序测试的UI测试。
我们创建了当您从本地机器上运行他们,做工精细的测试。这些测试从不(使用TeamCity的)我们构建服务器上成功运行。构建始终在打开应用程序窗口后挂机。但是,如果我在(远程桌面)登录我,我们构建服务器上的所有UI自动化测试也成功运行。
所以,我猜测它可能有事情做与运行活动的Windows会话。任何想法如何说服我们构建服务器创建活动窗口会话或使构建服务器上运行这些测试任何其他解决办法?

We use UI Automation and Nunit to create tests UI tests for WPF application. We've created tests that work fine when you run them from a local machine. Those tests never run successfully on our build server (using TeamCity). Build always hang after opening application window. But if I am logged in (remote desktop), on our build server all UI Automation tests also run successfully. So I am guessing that it probably has something to do with running active windows session. Any ideas how to convince our build server to create active windows session or any other solutions for making those tests run on build server?

推荐答案

您没有很多选择。我将列出两个我知道,最preferred选项首次:

You don't have many options. I will list the two I know, the most preferred option first:


  • 设置了虚拟机您的构建服务器上。您建立在虚拟机中运行。您可以锁定主机(又名你buildserver)保持事物的安全。

  • 保留有人登录所有的时间。这offcourse创建一个安全问题。可以通过除去鼠标,键盘和屏幕缓解这个问题的一个小并且仅通过RDP或类似的东西访问buildserver

  • Set up a virtual machine on your build server. Your builds execute in the virtual machine. You can lock the host (aka your buildserver) keeping things secure.
  • Keep someone logged on all the time. This offcourse creates a security problem. You can alleviate this problem a little by removing the mouse, keyboard and the screen and only access the buildserver through RDP or something similar.

修改

在这个 TestComplete帮助项目请看下图: TestComplete可以执行脚本时计算机被锁定?

Take a look at this TestComplete FAQ item: Can TestComplete execute scripts when the computer is locked?

这篇关于构建服务器上运行的UI自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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