jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61659] New: JMeterVariables#get() should apply toString() on non string objects
Date Tue, 24 Oct 2017 10:58:08 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61659

            Bug ID: 61659
           Summary: JMeterVariables#get() should apply toString() on non
                    string objects
           Product: JMeter
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com
  Target Milestone: ---

Created attachment 35451
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35451&action=edit
Test plan failing

Currently, whenever you store in a variable non string object using
vars.putObject("nbLoops", 1)

and getting it as ${"nbLoops"} in a LoopController for example will fail due to
ClassCastException and a log will appear:
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

I feel this could be improved by calling toString() on variable value if it's
not a String.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message