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

            Bug ID: 64736
           Summary: Default value 1 is not returned in __P function when
                    the default value is not set
           Product: JMeter
           Version: 5.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.3.1

It is noted that get property function __P does not return value 1 when the
default value is not set in the function as per the documentation.

https://jmeter.apache.org/usermanual/functions.html#__P

Steps to reproduce 
1. Start JMeter in command line 
jmeter -Jgroup1.threads=7 -Jhostname1=www.realhost.edu

2. Check the value of undefined property with function helper dialog window 
${__P(group1.loops)} 

Expected Outcome :
Value 1 should be returned when default value is not set according to the
documentation 

"**Default Value** : The default value for the property. If omitted, the
default is set to "1"."


Actual Outcome :
Nothing is returned when the function is executed 

It was confirmed that this is a bug in the documentation
https://stackoverflow.com/questions/63845674/default-value-1-is-not-returned-when-the-default-value-is-omitted

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

Reply via email to