Bug 53168 - OS Process - allow specification of stdout/stderr/stdin ?
OS Process - allow specification of stdout/stderr/stdin ?
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.6
All All
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-05-01 09:32 UTC by Sebb
Modified: 2012-09-03 11:52 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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