You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/08/04 14:22:21 UTC

[Bug 63631] New: HTTP(s) Test Script Recorder uses User Defined Variables in alphabetical descending sort instead UI sort order

https://bz.apache.org/bugzilla/show_bug.cgi?id=63631

            Bug ID: 63631
           Summary: HTTP(s) Test Script Recorder uses User Defined
                    Variables in alphabetical descending sort instead UI
                    sort order
           Product: JMeter
           Version: 5.1.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: sonevia@gmail.com
  Target Milestone: JMETER_5.2

steps:

1. have a web app used referer header with an address like 
`http://name.site.com/name/index.php`
2. add thread Group in Jmeter
3. add a 'User Defined Variables' into thread Group
3.1 Add variables: 
3.1.1 PROTOCOL: http
3.1.2 HOST: name.site.com
3.1.3 PATH: /name
4. add HTTP(S) Test Script Recorder with:
4.1 Capture into threadGroup1 
4.2 Capture HTTPS headers
5 capture some actions with web app
6 Look at HTTP header Manager recorded in each request

expected result:
referer:
${PROtOCOL}://${HOST}${PATH}/

actual result: 
${PROtOCOL}:/${PATH}.site.com${PATH}/

PS: if you change the name of the variable 'PATH' to 'APATH' it will work
correctly.
So order in UI doesn't matter and variables ordering by alphabetical descending
sort.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63631] HTTP(s) Test Script Recorder uses User Defined Variables in alphabetical descending sort instead UI sort order

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63631

Anastasia <so...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63631] HTTP(s) Test Script Recorder uses User Defined Variables in alphabetical descending sort instead UI sort order

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63631

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
The variables in "User Defined Variables" are stored internally in a HashMap
and have therefore no order. If you want to rely on the order of the
replacement, use parameters on the TestPlan instead of variables. That should
work and is covered by tests (TestValueReplacer).

(Sorry for the late reply) Any specific reason to place them in User Defined
Variables?

-- 
You are receiving this mail because:
You are the assignee for the bug.