LoadRunner里何时该用 .NET  Vuser协议?

URL:

http://www.performancecompetence.com/wordpress/2009/11/21/when-should-we-use-net-vuser-protocol-in-loadrunner/

译者:kaixin322        原作者:Chaitanya M Bhatt

通常,当程序员使用.NET/VB/Java Applet来进行开发的时候,大多数情况下,应用程序并不会使用开放的标准协议,比如HTTP协议。因而loadrunner协议捕捉任何通过该应用层的消息都将失败。

开发者使用.NET/VB/Java Applet开发一个应用程序的时候,他们通常会使用自定义的消息格式。

这也就意味着,当客户端和服务器对话时,没有任何一个Loadrunner协议可以识别这些消息,因为它没有被预定义过。

解决方案:既然录制-回放选项是并存的,你可以应用反编译,使你应用程序的这些DLL更加具有可读性。而且,你还可以考虑从开发人员那得到帮助,利用应用程序本身的源程序,在.NET Vu 或 VB Vu里创建工作流脚本。如果开发者基于安全考虑,故意笼罩/混淆了代码,这项工作将是非常具有挑战性的。因而,我强烈建议,在脚本准备阶段从开发人员那边获得帮助。

应用必备工具:http://www.remotesoft.com/salamander/

糟糕的是,如果都不行,为了节省时间你可以选择以下途径:当且仅当你的负载场景是轻量级的,有10-50个虚拟用户,你可以应用RDP(类似录制)协议,录制键盘输入和鼠标点击。如果你的目标是更高的虚拟用户,就可能需要更高甚至负载生成器硬件。

你也可以尝试用Winsock协议。如果你很幸运,那在通过Sockets套接字的时候,你的应用程序缓冲区就会比较小。这时,winsock脚本会更具有可读性,而且相对的比上面提到的方法更加具有可行性。

(同样,谨代表个人观点)

##############   原文  ##############

When should we use .NET Vuser protocol in LoadRunner?

Basically when programmers goes for .NET/VB/Java applet driven
development – most oftenly the application would not use open
standards like HTTP and hence loadrunner protocols would fail to
capture any of the messages sent through the application layer.

Developers would generally use custom messaging formats when they
develop an application using .NET/VB/Java applets, so this means when
the client and server are speaking with each other none of the
loadrunner protocols can identify the message because it hasn’t been
predefined.

Solution: Since contemporary record-replay option is ruled you can use
decompilers to make those DLL’s of your application more readable and
you should also consider getting help from the developers to build
workflow scripts using the source code of the application itself
in .NET Vu or VB Vu. This task could be challenging if the developers
have shrouded/obfuscated the code intentionally for security purpose,
hence i strongly suggest you get developer’s support during script
preperation
This tool can come in handly if your application :http://www.remotesoft.com/salamander/

Worst case if nothing works, for the benifit of time you may choose
the following approach only if your workload scenario is light weight
with 10-50 virtual users, you may use RDP(analog recording) protocol
which records inputs of Keyboards and Mouse Clicks. You may need
higher end loadgenerator hardware if your targetting a higher range of
virtual user.

You can also try Winsock protocol. You may be lucky if your
application buffer passing through the sockets is small in size and
probably in which case your winsock script might be more readable and
may relatively be more feasible than any of the above mentioned methods
(again…it is subjective).

转载于:https://www.cnblogs.com/preftest/archive/2011/06/12/2079195.html

在LoadRunner里何时该用 .NET Vuser协议?相关推荐

  1. 小米登录协议分析_性能测试篇之Loadrunner与ida工具结合完成java vuser协议的脚本...

    你这么优秀,一定只想把"柠檬班"置顶 ▲ → 性能3期优秀作业 利用lr的java vuser协议完成 (登录,md5加密完成重置支付密码,获取订单列表)请求,并加if判断完善脚本 ...

  2. WWCD 2015: Swift 里的Value Type 和面向协议

    概念 apple把swift里面的类型分为两种: value type和reference type. 所有Swift里面的基础类型,collection类型,包含value type的类型都是val ...

  3. 杰里之使用 sdk 自带协议进行 OTA 升级【篇】

    在 log_update_config.h 中 support_dual_bank_update_en 为 1 是使用双备份升级, 为 0 是使用单备份升级, 在 Flash 空间足够的时候建议使用双 ...

  4. LoadRunner测试问题及解决方法总结

    一.Step download timeout (120 seconds) 这是一个经常会遇到的问题,解决得办法走以下步骤: 1.修改run time setting中的请求超时时间,增加到600s, ...

  5. LoadRunner常遇见的问题

    LoadRunner常遇见的问题 在压力测试过程中,有时会出现错误,这在实际测试中是不可避免的,毕竟自动录制生成的脚本难免会有问题,需要运行脚本进行验证,把问题都解决后才加入到场景中进行负载测试.下面 ...

  6. LoadRunner之并发用户数与迭代关系---并发数与迭代的区别

    Q1: 例如在LR里,我要测100个用户同时并发登陆所用时间,那我是不是在录制好脚本后,需要参数化"用户名","密码"以及在那个记事本里构造100个真实的用户名 ...

  7. 使用loadrunner javavuser协议开发脚本实战

    众所周知,Java语言是一门非常适合网络开发的语言,用Java语言进行性能测试脚本开发将会大大提高测试开发效率.LoadRunner中提供了对Java虚拟用户的支持.Java虚拟用户依托于JDK,这大 ...

  8. 转载 loadrunner的一些问题解决

    sckOutOfMemory 7 内存不足  sckInvalidPropertyValue 380 属性值不效  sckGetNotSupported 394 属性不可读  sckGetNotSup ...

  9. web test LoadRunner error list / error log

    http://bbs.51testing.com/thread-8644-1-1.html sckOutOfMemory 7 内存不足 sckInvalidPropertyValue 380 属性值不 ...

最新文章

  1. python写界面输入测试脚本_python+Selenium自动化测试——输入,点击操作
  2. 调试小技巧---利用调用堆栈
  3. Python中if __name__ == '__main__':作用
  4. CentOS7中NAT网卡设置静态IP
  5. 8年测试经验,用例设计竟然不知道状态图法?
  6. linux redis-trib.rb,linux 关于redis-trib.rb构建redis集群
  7. SpringMVC介绍
  8. 索尼PS5将配备超快速的存储设备:最快2020年2月亮相
  9. 负载均衡 > 用户指南 > 证书管理 > 证书要求
  10. struts2+json(3)
  11. MATLAB深度学习 2019
  12. GMT与UTC的区别
  13. 单片机通过串口与电脑通信
  14. 用html做祝福语朋友,祝福朋友工作顺利的祝福语
  15. 电脑开启移动热点手机一直显示正在获取ip
  16. java随笔 2008年
  17. CC2640R2F BLE5.0 CC2640R2F SPI驱动实现
  18. 如何注册和申请阿里云域名?
  19. 《少年维特之烦恼》经典语录:残冬行将消失,春天恍若来临。
  20. 从零写一个操作系统之booting

热门文章

  1. easymock_EasyMock注释– JUnit 4
  2. 安装Oracle Webcenter 11.1.1.8.0并使用JDeveloper开发Portlet
  3. python 堆栈_Python堆栈
  4. Java Thread等待,通知和notifyAll示例
  5. IJCAI最佳论文公布 华人斩获最佳学生论文奖!
  6. C++中的Overload、Override和Overwrite
  7. 分享AceAdminUI后台框架-你喜欢吗?
  8. 终端服务器超出了最大允许连接数
  9. 【重点 递归 动态规划 正则表达式匹配】LeetCode 10. Regular Expression Matching
  10. vulkan 利用GPU加速ENet