📓
Loadium Wiki
  • Welcome to Loadium
  • Getting Started with Loadium
  • Quick Start
  • Common Reasons For Execution Fails
  • Create Test
    • JMeter Test
    • Locust Test
    • Script Builder
    • Gatling Test
    • WebDriver Test
    • HLS Test
    • Understanding Test Reports
  • ABOUT LOADIUM
    • Features
    • Pricing
    • VUH - Virtual User Hour
  • ACCOUNT
    • Profile & Account
    • Subscription
  • Audit Log
  • Features
    • Test Report
    • Compare Test
    • Report PDF Export
    • Private Location
  • Test Settings
    • Split CSV
    • Sandbox
    • Multi-Step
    • Geolocation
    • Customize Setup
    • Dedicated IP
    • Send Email
    • DNS Override
    • TPS
    • Network Type
    • Test Scheduling
    • Test Failure Settings
    • JMeter Settings
    • Failure Criteria
    • Flexible Thread Scheduling
    • File Output
  • CONTINUOUS INTEGRATION SUPPORT
    • Azure DevOps Pipeline
    • Jenkins Load Testing with Loadium
  • Integrations
    • Microsoft Teams Integration
    • New Relic Integration
    • AppDynamics Integration
    • TeamCity Integration
  • Jmeter Corner
    • Built-in JMeter Functions
    • How to Install JMeter Plugins
    • Record and Play Load Testing With Jmeter in 5 Steps
    • Websocket with Apache JMeter
    • JMeter Timers
    • Handling Error Messages of JMeter Tests in Loadium
    • Details of Throughput Controller in JMeter (Splitting Threads to Different Requests)
    • How to Add a Varying Number of Parameters in Apache JMeter
    • Local Network Simulation On JMeter
    • Running Load Test with FTP Server
  • Gatling Corner
    • Introduction to Gatling
    • Gatling Recorder
    • Gatling Pros&Cons
Powered by GitBook
On this page

Was this helpful?

  1. Jmeter Corner

How to Add a Varying Number of Parameters in Apache JMeter

PreviousDetails of Throughput Controller in JMeter (Splitting Threads to Different Requests)NextLocal Network Simulation On JMeter

Last updated 3 years ago

Was this helpful?

Some requests have more than one parameter, and the number of parameters may change. You can also add dynamic parameters according to your scenario.

To resolve this issue, JSR223 PreProcessor provided by can be used.

First, we add an as shown below, then we delete all the parameters and add JSR223 .

In this example, we choose the groovy language.

Then we add a for loop to determine how many parameters we will add, and add the parameter insert code to use it inside the for a loop.

for(int i=1; i<=10; i++){sampler.AddArgument("ParameterName"+i, "Value"+i);}

Happy testing!

When we run the , we add any number of parameters as shown in the figure.

If you don't see the answer to your question here, please to let us know! We're always improving our documentation.

test
Features
Getting Started with Loadium
JMeter Test
Pricing
reach out to us
JMeter
HTTP request
PreProcessor