如何在Jmeter中执行懒加载的负载测试

huangapple go评论64阅读模式
英文:

How to perform Load test for Lazy loading in Jmeter

问题

我们需要使用Jmeter进行Lazy Loading的负载测试。对于第一个请求,它会加载大约16-18个数据列表,当向下滚动时,会加载更多。

任何帮助都将不胜感激。

英文:

We need to perform Load test with Jmeter for Lazy Loading.
for the first request it loads around 16-18 list of data > When scroll down it loads more.

any help would be appreciated.

答案1

得分: 1

检查浏览器开发者工具中的网络选项卡,获取与滚动加载额外数据相关联的请求,并创建相应的HTTP请求采样器以模拟此请求。根据您的测试场景重复此操作。

或者,您可以使用JMeter的HTTP(S)测试脚本记录器JMeter Chrome扩展来记录调用。

您还可以考虑添加恒定定时器来模拟用户阅读数据或滚动的时间。

英文:

Check the network tab of the browser developer tools and get the request associated with loading of extra data when you're doing the scrolling and create the relevant HTTP Request sampler to mimic this request. Repeat as per your test scenario.

Alternatively you can record the call using JMeter's HTTP(S) Test Script Recorder or JMeter Chrome Extension.

You can also consider adding a Constant Timer to simulate user reading the data and/or taking the time to scroll down.

huangapple
  • 本文由 发表于 2023年7月31日 22:36:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76804653.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定