如何设置运行编码ui测试的时间? [英] how can i set the timings to run coded ui tests?

查看:126
本文介绍了如何设置运行编码ui测试的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一组在Live网站上运行的编码ui测试。但我希望在部署后运行这些测试。我想要做的是在测试中添加时间来自动运行它们,而不是手动点击"运行"按钮。可以这样做吗?




谢谢,


Kp

解决方案

Hello Kp1984,


感谢您的发布。


如果你想要在订单中自动进行编码UI测试,可以将它们添加到有序测试中。


< span style ="line-height:115%; font-family:'Calibri','sans-serif'">有序测试 是一个包含其他测试的容器,并保证测试在特定订单。


有关订购测试的详细信息,请参阅以下文章:


如何:创建有序测试


如果你想开始r自动在不同时间进行编码的UI测试,您可以在每个编码的UI测试运行之前调用一些代码,例如Thread.Sleep()。
  如果你这样做,你需要控制时间,以确保在特定时间内只运行一个编码的UI测试。


我希望我的建议可以帮到你。


祝你好运,


Hi,

I have a set of coded ui tests to run on Live site. But i want to run these tests after the deployment. What i am trying to do is add time in the tests to run them automatically rather than manually hitting Run button. Can this be done in a way?

Thanks,

Kp

解决方案

Hello Kp1984,

Thank you for your post.

If you want to make your Coded UI tests automatically in an order, you can add them into Ordered Test.

An ordered test is a container that holds other tests and guarantees that tests run in a specific order.

For more information about ordered test, you can reference this article:

How to: Create an Ordered Test

If you want to start running a coded UI test on different time automatically, you can call some code before each Coded UI test run for example Thread.Sleep().  If you do it, you need to control the time to make sure that only one coded UI test is running during a specific time.

I hope my suggestion can help you.

Best regards,


这篇关于如何设置运行编码ui测试的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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