通过 Spring Remote 使用 LoadRunner 进行负载测试服务层
我有N层应用程序;表示层通过 Spring Remote over HTTP 远程连接到服务层。该企业使用Mercury LoadRunner进行负载测试。我的问题是如何使用 LoadRunner 和 Spring Remote 自行测试服务层?我环顾四周,找不到有关如何执行此操作的文档。请分享您的经验。谢谢!
I have N-tier application; the presentation layer remote to the service layer through Spring Remote over HTTP. The enterprise uses Mercury LoadRunner for load testing. My question is how can I test the Service Layer by itself using LoadRunner and Spring Remote?? I looked around and could not find documentation on how to do so. Kindly share your experience. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个方法已经很久没有用了,不知道是否还有效。
录制一个 Web 脚本并查看代理设置,您将看到 Web 浏览器指向端口 7777 上的 localhost。将 Spring Remote 计算机的代理服务器设置为端口 7777 上的 VUGen 计算机,它应该可以正常录制,但是您必须调整运行时设置才能正确模拟服务器。
如果这不起作用,那么您必须使用数据包捕获库(winpcap、pcap 或 Wireshark)记录网络流量并手动编写脚本。如果您了解 HTTP,这并不难。
It's been a long time since I used this method, so I don't know if it will still work.
Record a web script and look in your proxy settings, you'll see that the web browser is pointing at localhost on port 7777. Set the Spring Remote machine's proxy server to be your VUGen machine on port 7777, it should record without problems, but you'll have to tweak your runtime settings to properly emulate a server.
If this doesn't work then you'll have to record the network traffic with a packet capture library (winpcap, pcap or Wireshark) and write your scripts by hand. This won't be hard if you understand HTTP.