简体   繁体   English

如何在JMeter中为具有多个应用程序服务器的不同租户执行分布式测试?

[英]How to perform distributed testing in JMeter for different tenants with multiple app servers?

I have to do performance testing on 3 web/app servers which are accessed by 5 different tenants(URLs). 我必须在3个网络/应用服务器上进行性能测试,这5个不同的租户(URL)可以访问这些服务器。 The operations are same in all the tenants with JDBC authentication. 所有具有JDBC身份验证的租户的操作都相同。

I have multiple JMX files, take one for example ie. 我有多个JMX文件,例如一个。 JMX for Signin and Signout functions. 用于登录和注销功能的JMX。

Note :** Here all the JMX are recorded from one single tenant. 注意 :**这里所有JMX都是从一个租户记录的。

Note :** 1 DB for 1 tenant, so all the tenants have different logins. 注意 :** 1个租户使用1个DB,因此所有租户都有不同的登录名。

What I need to do is: Execute the JMX for all the tenants in Parallel. 我需要做的是:对所有租户并行执行JMX。 Signin & Signout should be performed in all the tenants at the same time. 登录和注销应在所有租户中同时进行。

So far, I have tried distributed testing and failed to get on that. 到目前为止,我已经尝试了分布式测试,但未能成功。 Currently working with ANT and still I dont have clear idea on how to achieve parallel JMX execution in different tenants. 目前正在与ANT合作,但对于如何在不同的租户中实现并行JMX执行,我仍然不清楚。

Please suggest me any solution.Your help is greatly appreciated. 请给我建议任何解决方案。非常感谢您的帮助。

Thanks, Bala. 谢谢,巴拉。

The only guaranteed option to have certain requests running at exactly the same moment is merging your multiple JMX files into single test plan using ie Include Controllers or Module Controllers and using Synchronizing Timer 保证某些请求在同一时间运行的唯一保证方法是使用包括控制器或模块控制器并使用同步计时器将多个JMX文件合并到单个测试计划中


If you're just looking for a way to execute multiple JMX files in parallel the easiest option would be going for Taurus tool. 如果您只是在寻找一种并行执行多个JMX文件的方法,那么最简单的选择就是Taurus工具。 Taurus acts like a wrapper for JMeter 金牛座就像JMeter的包装

The relevant YAML configuration file would be something like: 相关的YAML配置文件如下所示:

---
execution:
- scenario:
    script: Signin.jmx
- scenario: 
    script: Signout.jmx

More information: Taurus - Working with Multiple JMeter Tests 更多信息: Taurus-使用多个JMeter测试

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

相关问题 如何 Dockerize Jmeter(使用 Docker 和 Jmeter 进行分布式测试) - How to Dockerize Jmeter (Distributed testing with Docker and Jmeter) 使用Java代码进行Jmeter分布式测试 - Jmeter Distributed Testing using Java Code 运行 jmeter 分布式负载测试时出错 - Error when runnint jmeter distributed load testing 从云端开始 jmeter 分布式测试 - Start jmeter distributed testing from clouds 如何在eclipselink中访问多个租户? - How to access multiple tenants in eclipselink? 无法为 jmeter 分布式测试创建“rmi_keystore.jks” - Not able to create 'rmi_keystore.jks' for jmeter distributed testing JMeter 从 Java 代码进行分布式测试 - 从站中的 csv 相关数据 - JMeter distributed testing from Java code - csv dependent data in slaves 知道如何使用 Jmeter 进行独立 Java 应用程序的性能测试吗? - Any idea how to use Jmeter for performance testing of Standalone Java app? 如何通过打开多个窗口一次使用Selenium TestNG进行负载测试 - How to Perform load Testing with Selenium TestNG at a time by opening multiple windows 如何处理来自不同服务器的多个数据库结果以获取请求 - How to deal with multiple database results from different servers for a request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM