You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/08/01 07:09:22 UTC

DO NOT REPLY [Bug 40149] New: - Feature to write a Jmeter variable to a file

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40149

           Summary: Feature to write a Jmeter variable to a file
           Product: JMeter
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: ankur.gupta@induslogic.com


I extracted a value using the regular expression extractor and assigned it a
reference name. Now i want to write or append that value to a file, so that i
can use that value in another script (using CSV read).

One example of what i am trying to do is-

1. User 1 creates a request- Request id is generated ---this is script 1.
2. User 2 logs in opens the request created in step 1 using the request id, and
then approves it--this is script 2.

The second script needs to get the request id that has been generated by the
first script.

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

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


DO NOT REPLY [Bug 40149] - Feature to write a Jmeter variable to a file

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40149





------- Additional Comments From sebb@apache.org  2006-08-01 12:05 -------
You can do this with the  Java Request Sampler and a Listener.

Use the Java Request Sampler to generate a sample containing the variable; add 
a Listener to the sampler and ensure you only write the appropriate field to 
the output file.

Or you can use one of the BeanShell elements to create the file using Java.

However, it would possibly be useful to have a generic way of writing 
information to a file.

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

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