英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论