如何在远程机器中提高我的编码UI测试的性能 [英] How to improve the performance of my coded UI test in remote machine

查看:103
本文介绍了如何在远程机器中提高我的编码UI测试的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

当我使用测试代理在远程计算机中执行编码的ui测试时,有人可以帮忙提高我的编码ui测试的性能吗.

Could anyone please help in how to improve the performance of my coded ui test when i execute them in the remote machine using test agents.

当我通过测试代理部署测试时,大多数测试都失败了,因为该应用程序无法找到所需的操作按钮或操作属性.所以我认为这是因为性能问题.

When i deploy my tests through Test Agent, most of my test are failing because the application is not able to find the required action button or action properties. So i think this is because of the performance issue.

任何人都对如何提高性能有任何建议或想法.

Anyone have any suggestions or ideas for how to improve the performance.

提前谢谢

PV

PV

推荐答案

这听起来更像是被测应用程序而非测试中的性能问题.

This sounds more like a performance problem in the application under test rather than the tests.

首先,您应确保控件有时不会更改其名称.如果它们始终具有相同的搜索属性,那么操作可能执行得太快,在这种情况下,您可以尝试在某些操作之前或之后等待(打开之后) 例如一个窗口)使用Playback.Wait方法.另外,您可以在这样的动作之间设置恒定的延迟时间:

First of all you should make sure that the controls don't change their name sometimes. If they always have the same search properties then maybe the actions are done too fast in which case you could try waiting before or after certain actions (after opening a window, for example) using the Playback.Wait method. Alternatively you could put a constant delay between actions like this:

Playback.PlaybackSettings.DelayBetweenActions = 1000; //1 sec



这篇关于如何在远程机器中提高我的编码UI测试的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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