JMeter - 远程访问 Windows 机器

问题描述 投票:0回答:1

我需要通过 JMeter 执行以下操作:

   1. MSTSC ---> Provide the IP address ---> Click on Connect.
   2. Provide the domain\username and password.
   3. Capture the time into a file (Start Time).
   4. Double click on a file.
   5. Wait until that (Desktop)application is loaded.
   6. Note the time in the same file (End Time).
   7. Subtract Start Time from End Time.
   8. Disconnect the remote session.

输出文件应如下所示:

 Start_Time    End_Time   Load_Time
    
  10:00:02     10:00:07    5 secs 
  11:03:06     11:03:20    7 secs 

我该怎么办?请帮助我同样的事情。

感谢您的支持。

问候,

jmeter performance-testing
1个回答
0
投票

开箱即用的JMeter不支持RDP协议,也没有合适的插件,所以实现起来相当困难。

您需要使用Appium等桌面自动化工具或LDTP等自动化库(两者都可以通过JSR223测试元素与JMeter集成),但它们只会为您提供自动化RDP客户端应用程序的可能性.

如果您想获取一些 RDP 协议指标,或者同时或者需要完全控制,您应该查看 Java RDP 客户端库,如 jrdesktopjrdpVinagre 并使用相关函数或代码它们在前面提到的 JSR223 测试元素中。

© www.soinside.com 2019 - 2024. All rights reserved.