简体   繁体   English

如何对JavaScript繁重的Web应用程序(JIRA)进行负载测试?

[英]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驱动的请求。

  1. First of all, you should be able to record them using HTTP(S) Test Script Recorder 首先,您应该能够使用HTTP(S)测试脚本记录器记录它们
  2. Second - you can use Transaction Controller to measure the aggregate time of the main request and sub-requests. 其次-您可以使用事务控制器来测量主请求和子请求的总时间。
  3. You need to find out a way to simulate these AJAX requests in parallel, check out How to Load Test AJAX/XHR Enabled Sites With JMeter article for more details on setting up JMeter for this 您需要找到一种并行模拟这些AJAX请求的方法,请参阅《如何使用JMeter加载测试启用AJAX / XHR的站点》一文,以获取有关为此设置JMeter的更多详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何调试严重崩溃的javascript应用程序? - How to debug heavy crashing javascript application? 如何在AJAX密集的Web应用程序中减少HTTP请求的数量? - How to reduce the number of HTTP requests in an AJAX-heavy web application? 我应该如何使用JavaScript / HTML5处理繁重的音频负载? - How should I handle heavy audio load with JavaScript/HTML5? 如何对沉重的JavaScript Web应用程序进行性能分析? - How to do performance analysis of a heavy JavaScript web app? 如何在真实的Android设备上测试JavaScript Web应用程序? - How to test a JavaScript web application in a real Android device? JavaScript setTimeout() 在重负载下变慢 - JavaScript setTimeout() slows down under heavy load TypeScript接口重载如何解决? - How to reslove TypeScript Interface heavy load? 如何将繁重的地理编码转移到网络工作者? - how to move heavy geocoding to a web-worker? 如何在我的 javascript Z2567A5EC93305EB18AC2DZ9 应用程序的数据库层中为 class function 开玩笑地编写单元测试? - How do I write a unit test in jest for a class function in the database layer of my javascript web application? 如何调整AJAX重型应用程序的性能 - How to performance tune AJAX heavy application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM