testing - Jmeter load testing in SPA
问题描述
I am beginner in Load testing and I am doing load testing using JMeter on a single page web application. The issue which I am facing right now that as you know in SPA there is a single URL and page contains multiple tabs, how I can switch between the tabs using JMeter. You can see my test plan in below image.
I Know I have little knowledge, any link or guidelines are welcome as there is a limited information on google regarding SPA.
解决方案
Do not compare the load testing with automation testing. Jmeter can only trigger the request that your system is sending to server. The steps you need to do:
- Open your URL in chrome/firefox
- Inspect the page or tap f12 on keyboard.
- Go to network tab
- Now click on the tabs you have in your webpage
- check if there is any request being passed to server when navigating through tabs.
- If yes, replicate the same request by adding a HTTP Request in jmeter and provide the request headers and parameters same as that of the request being passed.
推荐阅读
- python - 有人可以在 python 中为我解压这一行吗?我对这条线有点困惑
- reactjs - 分支覆盖率没有达到 80%,我不知道为什么
- scheme - 方案允许大写定义
- winapi - Alink (Assembly) - Relocs x: 警告 16 位字段中的 32 位偏移
- python - configparser,将键转换为变量
- reactjs - 当用户键入内容时将文本存储到会话存储中
- keystore - 在 android studio 上更改密钥存储密码
- python-3.x - 我一直在尝试用 python 制作一个 python 蛇游戏,但我不断收到“pygame not initialized”错误
- python - 通过 Python 的 HTTP (REST) 请求
- socket.io - 如何在 4.x 中生成带有套接字 id 的套接字?