Bug 64268

Summary: Duplicate HTTP query parameters when using Parameter in HTTP Request Defaults
Product: JMeter Reporter: ncasaux <nicolas.apo>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 5.0   
Target Milestone: JMETER_5.3.0   
Hardware: All   
OS: All   
Attachments: simplest test plan to reproduce the issue
Request without duplicate
Request with duplicate query param

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)