Bug 64268 - Duplicate HTTP query parameters when using Parameter in HTTP Request Defaults
Summary: Duplicate HTTP query parameters when using Parameter in HTTP Request Defaults
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.0
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_5.3.0
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-26 12:23 UTC by ncasaux
Modified: 2020-07-26 11:53 UTC (History)
1 user (show)



Attachments
simplest test plan to reproduce the issue (9.46 KB, application/xml)
2020-03-26 12:23 UTC, ncasaux
Details
Request without duplicate (82.47 KB, image/png)
2020-03-26 12:27 UTC, ncasaux
Details
Request with duplicate query param (83.25 KB, image/png)
2020-03-26 12:27 UTC, ncasaux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ncasaux 2020-03-26 12:23:31 UTC
Created attachment 37124 [details]
simplest test plan to reproduce the issue

Hello!

I'm facing a weird bug involving:
 * User defined variables
 * ForEach Controller
 * HTTP Request Defaults (Config)
 * HTTP Request (Sampler)

I tried to create the simplest testplan to reproduce the issue:

 * I have defined a list of 6 user defined values.
 * I have a loop which creates 6 HTTP Requests
 * I have 2 HTTP Request Default, one outside the loop and one inside the loop. They set different fields (1 path and 1 query parameter)

Now the weird part: for some reason, some of my HTTP requests have their query parameter duplicated:
 * Requests 1, 2, 4 and 6 are ALWAYS perfecty fine
 * Requests 3 and 5 have ALWAYS their query parameter duplicate

I can't find any logic in this!

Please find attached the testplan. I know that in this test plan, I could move both HTTP Request Default outside the loop to solve this issue. But I can not do that in my real test plan.

Thanks in advance!
Comment 1 ncasaux 2020-03-26 12:27:05 UTC
Created attachment 37125 [details]
Request without duplicate
Comment 2 ncasaux 2020-03-26 12:27:45 UTC
Created attachment 37126 [details]
Request with duplicate query param
Comment 3 ncasaux 2020-03-26 12:31:37 UTC
A few note, this issue is not new at all and has always been there, at least in 5.X (but maybe before that)
Comment 4 ncasaux 2020-03-26 12:32:36 UTC
A few note, this issue is not new at all and has always been there, at least in 5.X (but maybe before that)