Search code examples
testingjmeterautomated-testsperformance-testingmulti-tenant

How to send multiple request/users in each tenant under multi-tenant system using Jmeter


I have a multi-tenant system where multiple users are hitting requests in each tenant . Can anyone tell me how to do this using jmeter.

Scenario : 10 tenants available and in each tenant 10 users are sent which are hitting some requests , I dont know how to send multiple different users in each separate tenant using application URl.


Solution

  • It is not very clean what you're asking. If each virtual user needs to execute the same set of actions in different tenants you could do the following:

    1. Create a Test Fragment holding virtual user steps
    2. Use Module Controller(s) where required to avoid code duplication for each tenant
    3. The tenant URLs can be parameterised using i.e. CSV Data Set Config