You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/09/22 16:01:02 UTC

DO NOT REPLY [Bug 49975] New: New function returning the name of the current sampler

https://issues.apache.org/bugzilla/show_bug.cgi?id=49975

           Summary: New function returning the name of the current sampler
           Product: JMeter
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: jens_0@hotmail.com


Created an attachment (id=26064)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26064)
function sampler name

For tagging of load test requests in a monitoring tool I needed the possiility
to add the name of the current sampler to the HTTP header. I implemented the
following new function that can be used in the test's HTTP Header Manager.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49975] New function returning the name of the current sampler

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

--- Comment #3 from Ralf Hauser <ha...@acm.org> 2011-04-20 07:56:44 EDT ---
see also bug 51091

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49975] New function returning the name of the current sampler

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

--- Comment #4 from Sebb <se...@apache.org> 2011-04-20 08:35:37 EDT ---
(In reply to comment #2)
> when will this be deployed?

With the next JMeter release.

> http://jakarta.apache.org/jmeter/usermanual/functions.html
> 
> still doesn't show 
> 
>  <tr><td>Information</td><td> <a
> href="#__samplerName">samplerName</a></td><td>get the sampler name
> (label)</td></tr>
> 
> ...

Because that documentation is for the current release.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49975] New function returning the name of the current sampler

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

--- Comment #2 from Ralf Hauser <ha...@acm.org> 2011-04-20 07:40:27 EDT ---
when will this be deployed?

http://jakarta.apache.org/jmeter/usermanual/functions.html

still doesn't show 

 <tr><td>Information</td><td> <a
href="#__samplerName">samplerName</a></td><td>get the sampler name
(label)</td></tr>

...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49975] New function returning the name of the current sampler

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

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Sebb <se...@apache.org> 2010-09-23 17:31:47 EDT ---
Thanks.

I added an optional variable name.

Also, the code needs to check for null Sammpler object (which can happen e.g.
if the function is used on the Test Plan - not that it makes sense there).

URL: http://svn.apache.org/viewvc?rev=1000632&view=rev
Log:
Bug 49975 - New function returning the name of the current sampler

Added:
  
jakarta/jmeter/trunk/src/functions/org/apache/jmeter/functions/SamplerName.java
  (with props)
Modified:
   jakarta/jmeter/trunk/xdocs/changes.xml
   jakarta/jmeter/trunk/xdocs/usermanual/functions.xml

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org