Bug 53168

Summary: OS Process - allow specification of stdout/stderr/stdin ?
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 2.6   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Sebb 2012-05-01 09:32:07 UTC
It might be useful to allow the user to specify that stdout is written to a file.

This could of course be achieved by creating a script to redirect the output, but it would be simpler for the user if the sampler did this.

Likewise for stderr and stdin.

If not specified, stderr and stdin are captured by the sampler as the sampler output.

Might also be worth considering supporting environment updates via ProcessBuilder#environment(). This would require an additional table on the GUI.
Comment 1 Philippe Mouawad 2012-05-01 13:25:38 UTC
Env variables implemented in Bug 53172
Comment 2 Sebb 2012-09-02 22:36:43 UTC
URL: http://svn.apache.org/viewvc?rev=1380074&view=rev
Log:
OS Process - allow specification of stdout/stderr/stdin
Bugzilla Id: 53168

Added:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/StreamCopier.java   (with props)
Modified:
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/gui/SystemSamplerGui.java
    jmeter/trunk/xdocs/changes.xml
Comment 3 Sebb 2012-09-02 22:47:43 UTC
URL: http://svn.apache.org/viewvc?rev=1380080&view=rev
Log:
OS Process - allow specification of stdout/stderr/stdin

Modified:
    jmeter/trunk/docs/images/screenshots/os_process_sampler.png
    jmeter/trunk/xdocs/images/screenshots/os_process_sampler.png
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 4 Philippe Mouawad 2012-09-03 11:52:40 UTC
Date: Mon Sep  3 11:50:53 2012
New Revision: 1380212

URL: http://svn.apache.org/viewvc?rev=1380212&view=rev
Log:
Added i18n for stderr, stdin, stdout
Bugzilla Id: 53168

Modified:
    jmeter/trunk/docs/images/screenshots/os_process_sampler.png
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/gui/SystemSamplerGui.java
    jmeter/trunk/xdocs/images/screenshots/os_process_sampler.png