使用编码的UI脚本进行负载测试:如何在多个用户的负载测试中运行编码的UI脚本 [英] Load Test using Coded UI scripts : How to run a coded UI script in Load test for multiple users

查看:79
本文介绍了使用编码的UI脚本进行负载测试:如何在多个用户的负载测试中运行编码的UI脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个项目,其中的问题是找到Windows应用程序(客户端呈现+服务器)的端到端响应时间。

We are working on a project , where the ask is to find the end to end response time of a windows application (client rendering + server).

我们可以通过在负载测试中运行编码的UI脚本来为单个用户线程实现此目的。

We are able to achieve this for a single user thread, by running a coded UI script in load test.

https://msdn.microsoft.com/en-us/library/ms318554(v = vs.100).ASPX

https://msdn.microsoft.com/en-us/library/ms318554(v=vs.100).ASPX

https://msdn.microsoft.com / en-us / library / ff468125(v = vs.110).aspx

https://msdn.microsoft.com/en-us/library/ff468125(v=vs.110).aspx

但是由于编码的UI测试驱动鼠标和键盘我们每个测试代理一次可以运行一个虚拟用户

But since coded UI test drive the mouse and keyboard we will be able to have a single virtual user running at a time per test agent.

任何人都可以告诉我们如何为多个虚拟用户运行相同的编码UI脚本?

Can anyone let me know how can we run the same coded UI scripts with multiple virtual users?

我听说在HP Load Runner中,可以使用多个虚拟用户通过终端服务在Performance Center / controller中执行UFT / QTP脚本。

I have heard that in HP Load Runner, multiple virtual user can be used to execute a UFT / QTP scripts in Performance center/ controller by using Terminal services.

谢谢,

John。

推荐答案

Joh Johnskennad,

Hi Johnskennad,

>>任何人都可以告诉我们如何为多个虚拟用户运行相同的编码UI脚本?

>>Can anyone let me know how can we run the same coded UI scripts with multiple virtual users?

您发布的上述链接已经清楚地描述了,我们可以为代理中的编码用户界面的负载测试设置1个v用户。

Above links you posted have describe clearly, that we could set 1 v-users in load test for coded UI in an agent.

因此,如果你想为多个v-users测试你的应用程序,我认为你需要创建多个场景,并为每个测试场景指定测试代理。

So if you want to test your application for multiple v-users, I think you need to create multiply scenarios, and specify a test agent for each test scenario.

所以我们可以在具有不同v用户的不同机器。

So we could test it in different machine with different v-users.

但是根据您的描述,您是否需要对编码UI进行数据驱动测试。请参阅以下MSDN文档。

But according to your description, whether you need to data-drive test for coded UI. Please refer to the following MSDN document.

https://msdn.microsoft.com/en-us/library/ee624082.aspx?f=255&MSPPError=-2147217396

这是我的观点:

1)。使用一个用户登录;

1). Log in with one user;

2)。发送请求;

3)。退出此帐户。

4)。循环到步骤1.

4). Loop to step 1.

上述步骤可以通过数据驱动测试实现。所以这可能有助于你理解。

Above steps could be implement with data-drive test. So which maybe help you make sense.

如果我误解了你的问题,请随时告诉我。

If I misunderstand your issue, please feel free to let me know.

此致,

奥斯卡


这篇关于使用编码的UI脚本进行负载测试:如何在多个用户的负载测试中运行编码的UI脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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