[英]How to load test a JavaScript heavy web application (JIRA)?
I would like to load test a web application which uses a lot of JavaScript items on each of its web pages. 我想对Web应用程序进行负载测试,该Web应用程序在每个Web页面上都使用许多JavaScript项目。 For example, there is a dashboard page which contains an overview section, a section displaying the results of user-specific queries and other user configurable sections.
例如,有一个仪表板页面,其中包含概述部分,显示用户特定查询结果的部分以及其他用户可配置的部分。 Each page access therefore generates a large number of additional requests to the web application, which change depending on the particular user and permissions, and this is really difficult to model in JMeter or similar programs.
因此,每个页面访问都会向Web应用程序生成大量其他请求,这些请求会根据特定的用户和权限而变化,这实际上很难在JMeter或类似程序中进行建模。
I was considering using Selenium to run my tests (which uses a real web browser so all JavaScript objects are properly executed and rendered) however Selenium is not a load testing tool, I probably need one VM per Selenium client and each of those VMs has to run Windows or a Linux desktop. 我当时正在考虑使用Selenium来运行我的测试(它使用一个真正的Web浏览器,以便正确执行和呈现所有JavaScript对象),但是Selenium不是负载测试工具,每个Selenium客户端可能需要一个VM,并且每个VM都必须运行Windows或Linux桌面。
What I am looking for is a web test software which interprets JavaScript just like a real web browser, but runs from the command line and allows me to run more than one client per session. 我正在寻找的是一种网络测试软件,该软件可以像真正的网络浏览器一样解释JavaScript,但是可以从命令行运行,并且允许我在每个会话中运行多个客户端。
I'm not aware of any load testing software capable of executing JavaScript and rendering HTML. 我不知道任何能够执行JavaScript和呈现HTML的负载测试软件。 You could try simulating these JavaScript-driven requests in JMeter test.
您可以尝试在JMeter测试中模拟这些JavaScript驱动的请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.