📓
📓
📓
📓
Loadium Wiki
Search…
📓
📓
📓
📓
Loadium Wiki
Loadium Wiki
ABOUT LOADIUM
Features
Pricing
VUH - Virtual User Hour
ACCOUNT
Profile & Account
Subscription
Discount Coupon
GETTING STARTED
Getting Started with Loadium
Things To Pay Attention Before Running Test
Advanced Features
Compare Test
Loadium Record&Play
Loadium On Premise
CREATING TEST ON LOADIUM
Creating Your First Test
Jmeter Test
Gatling Test
HTTP Test
Web Driver Test
Send Email
Tests Menu
What Project Tab Is Used For?
TEST SETTINGS
Sandbox
Split CSV
Dedicated IP
TPS
Geolocation
Network Type
Test Failure Settings
Flexible Thread Scheduling
Load Test Metrics
CONTINUOUS INTEGRATION SUPPORT
Azure DevOps Pipeline
Jenkins Load Testing with Loadium
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
PERFORMANCE TEST REPORTING
Understanding Test Reports (Performance Test Reporting)
PUBLIC APIs
Get Test Status Service
Authentication Service
Get Performance Test List Service
Start Performance Test Service
APM INTEGRATION
APM Integrations
New Relic
AppDynamics
TeamCity Integration
Powered By
GitBook
How to Add a Varying Number of Parameters in Apache JMeter
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
JMeter
can be used.
First, we add an
HTTP request
as shown below, then
we delete all the parameters
and add JSR223
PreProcessor
.
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);}
When we run the
test
, we add any number of parameters as shown in the figure.
Happy testing!
Features
Getting Started with Loadium
Jmeter Test
Pricing
If you don't see the answer to your question here, please
reach out to us
to let us know! We're always improving our documentation.
Jmeter Corner - Previous
Details of Throughput Controller in JMeter (Splitting Threads to Different Requests)
Next - Jmeter Corner
Local Network Simulation On JMeter
Last modified
1yr ago
Copy link