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 2017/10/24 10:58:08 UTC
[Bug 61659] New: JMeterVariables#get() should apply toString() on
non string objects
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.
[Bug 61659] JMeterVariables#get() should apply toString() on non
string objects
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61659
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
CC| |p.mouawad@ubik-ingenierie.c
| |om
Status|NEW |RESOLVED
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Tue Oct 24 11:02:25 2017
New Revision: 1813168
URL: http://svn.apache.org/viewvc?rev=1813168&view=rev
Log:
Bug 61659 - JMeterVariables#get() should apply toString() on non string objects
Bugzilla Id: 61659
Modified:
jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.