You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Paul Spencer <pa...@apache.org> on 2005/07/23 23:09:46 UTC
How to running a test plan in non-gui mode?
Please note that I am using the July 17 nightly build.
I would line to run a test plan in non-gui modes. Specifically I have a
test plant the monitor tomcat server for 5 minutes and output the
results to a file. I would like to run the test plan once an hour, via
cron.
I tried the command "jmeter-n Monitor.jxm", but what is in the file
generated by the "Monitor Results" is different.
** Expected, i.e. when run in GUI mode
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.1">
<monitorStats>
<stringProp name="stats.memload">57</stringProp>
<stringProp name="stats.cpuload">0</stringProp>
<stringProp name="stats.load">29</stringProp>
<stringProp name="stats.health">3</stringProp>
<stringProp name="stats.port">8080</stringProp>
<stringProp name="stats.threadload">1</stringProp>
<stringProp name="stats.host">localhost</stringProp>
<stringProp name="stats.timestamp">1122141685675</stringProp>
<stringProp name="stats.protocol">http</stringProp>
</monitorStats>
</testResults>
** Received, i.e. when run in non-gui mode
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.1">
<sampleResult timeStamp="1122141625972" dataType="text"
threadName="Thread Group 1-1" label="HTTP Request" time="63"
responseMessage="OK" responseCode="200" success="true"/>
</testResults>
How do I run a test plan in non-gui mode?
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to running a test plan in non-gui mode?
Posted by Peter Lin <wo...@gmail.com>.
I'll take a look. I don't know much about non-gui mode, so I'll
probably need to ask mike and sebb for some help.
peter
On 7/24/05, Paul Spencer <pa...@apache.org> wrote:
> Peter,
> Each listener is writing to a named file in gui mode. It does NOT work
> in non-gui mode. It appears that the writing of files is disabled in
> non-gui mode.
>
> I have attached the JMX file.
>
> Paul Spencer
>
> Peter Lin wrote:
> > have you tried giving each listener a name for the jtl file? that should work.
> >
> > peter
> >
> >
> > On 7/24/05, Paul Spencer <pa...@apache.org> wrote:
> >
> >>Peter,
> >>Using 2.1rc1, the files written by the SimpleDataWriter and
> >>MonitorResults are NOT written in non-gui mode. The only file written
> >>in non-gui mode is <test_file>.jtl. Thus "jmeter-n Monitor.jmx" produces
> >>Monitor.jtl.
> >>
> >>Paul Spencer
> >>
> >>
> >>Peter Lin wrote:
> >>
> >>>the monitor stats saves the statistics generated from the requests. if
> >>>you want to save the requests to tomcat5, add a simple data writer.
> >>>
> >>>I'll update the docs to mention this.
> >>>
> >>>peter
> >>>
> >>>
> >>>On 7/23/05, Paul Spencer <pa...@apache.org> wrote:
> >>>
> >>>
> >>>>Please note that I am using the July 17 nightly build.
> >>>>
> >>>>I would line to run a test plan in non-gui modes. Specifically I have a
> >>>>test plant the monitor tomcat server for 5 minutes and output the
> >>>>results to a file. I would like to run the test plan once an hour, via
> >>>>cron.
> >>>>I tried the command "jmeter-n Monitor.jxm", but what is in the file
> >>>>generated by the "Monitor Results" is different.
> >>>>
> >>>>** Expected, i.e. when run in GUI mode
> >>>><?xml version="1.0" encoding="UTF-8"?>
> >>>>
> >>>><testResults version="1.1">
> >>>>
> >>>><monitorStats>
> >>>> <stringProp name="stats.memload">57</stringProp>
> >>>> <stringProp name="stats.cpuload">0</stringProp>
> >>>> <stringProp name="stats.load">29</stringProp>
> >>>> <stringProp name="stats.health">3</stringProp>
> >>>> <stringProp name="stats.port">8080</stringProp>
> >>>> <stringProp name="stats.threadload">1</stringProp>
> >>>> <stringProp name="stats.host">localhost</stringProp>
> >>>> <stringProp name="stats.timestamp">1122141685675</stringProp>
> >>>> <stringProp name="stats.protocol">http</stringProp>
> >>>></monitorStats>
> >>>>
> >>>></testResults>
> >>>>
> >>>>** Received, i.e. when run in non-gui mode
> >>>><?xml version="1.0" encoding="UTF-8"?>
> >>>><testResults version="1.1">
> >>>><sampleResult timeStamp="1122141625972" dataType="text"
> >>>>threadName="Thread Group 1-1" label="HTTP Request" time="63"
> >>>>responseMessage="OK" responseCode="200" success="true"/>
> >>>></testResults>
> >>>>
> >>>>How do I run a test plan in non-gui mode?
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
> <jmeterTestPlan version="1.1" properties="1.7">
> <hashTree>
> <TestPlan>
> <elementProp name="TestPlan.user_defined_variables" elementType="org.apache.jmeter.config.Arguments">
> <stringProp name="TestElement.gui_class">org.apache.jmeter.config.gui.ArgumentsPanel</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.config.Arguments</stringProp>
> <collectionProp name="Arguments.arguments"/>
> <stringProp name="TestElement.name">User Defined Variables</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> </elementProp>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.control.gui.TestPlanGui</stringProp>
> <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.testelement.TestPlan</stringProp>
> <stringProp name="TestElement.name">Test Plan</stringProp>
> <boolProp name="TestPlan.functional_mode">false</boolProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <stringProp name="TestPlan.comments"></stringProp>
> </TestPlan>
> <hashTree>
> <ThreadGroup>
> <longProp name="ThreadGroup.start_time">1122213256000</longProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.threads.ThreadGroup</stringProp>
> <stringProp name="ThreadGroup.delay"></stringProp>
> <stringProp name="ThreadGroup.duration"></stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <stringProp name="ThreadGroup.num_threads">1</stringProp>
> <boolProp name="ThreadGroup.scheduler">false</boolProp>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.threads.gui.ThreadGroupGui</stringProp>
> <elementProp name="ThreadGroup.main_controller" elementType="org.apache.jmeter.control.LoopController">
> <stringProp name="TestElement.gui_class">org.apache.jmeter.control.gui.LoopControlPanel</stringProp>
> <stringProp name="LoopController.loops">10</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.control.LoopController</stringProp>
> <stringProp name="TestElement.name">Loop Controller</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <boolProp name="LoopController.continue_forever">false</boolProp>
> </elementProp>
> <stringProp name="TestElement.name">Thread Group</stringProp>
> <longProp name="ThreadGroup.end_time">1122213256000</longProp>
> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
> <stringProp name="ThreadGroup.ramp_time">1</stringProp>
> </ThreadGroup>
> <hashTree>
> <AuthManager>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.AuthPanel</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.protocol.http.control.AuthManager</stringProp>
> <stringProp name="TestElement.name">HTTP Authorization Manager</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <collectionProp name="AuthManager.auth_list">
> <elementProp name="" elementType="org.apache.jmeter.protocol.http.control.Authorization">
> <stringProp name="Authorization.url"></stringProp>
> <stringProp name="Authorization.password">manager</stringProp>
> <stringProp name="Authorization.username">system</stringProp>
> </elementProp>
> </collectionProp>
> </AuthManager>
> <hashTree/>
> <HTTPSampler>
> <stringProp name="HTTPSampler.path">/manager/status</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.HTTPSampler</stringProp>
> <stringProp name="HTTPSampler.method">GET</stringProp>
> <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
> <stringProp name="HTTPSampler.protocol">http</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
> <stringProp name="HTTPSampler.port">8080</stringProp>
> <elementProp name="HTTPsampler.Arguments" elementType="org.apache.jmeter.config.Arguments">
> <stringProp name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.config.Arguments</stringProp>
> <collectionProp name="Arguments.arguments">
> <elementProp name="" elementType="org.apache.jmeter.protocol.http.util.HTTPArgument">
> <stringProp name="Argument.metadata">=</stringProp>
> <stringProp name="Argument.value">true</stringProp>
> <boolProp name="HTTPArgument.use_equals">true</boolProp>
> <stringProp name="Argument.name">XML</stringProp>
> <boolProp name="HTTPArgument.always_encode">false</boolProp>
> </elementProp>
> </collectionProp>
> <stringProp name="TestElement.name">User Defined Variables</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> </elementProp>
> <stringProp name="HTTPSampler.mimetype"></stringProp>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui</stringProp>
> <stringProp name="HTTPSampler.FILE_FIELD"></stringProp>
> <stringProp name="TestElement.name">HTTP Request</stringProp>
> <stringProp name="HTTPSampler.monitor">true</stringProp>
> <stringProp name="HTTPSampler.domain">localhost</stringProp>
> <stringProp name="HTTPSampler.FILE_NAME"></stringProp>
> <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
> </HTTPSampler>
> <hashTree/>
> <ConstantTimer>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.timers.gui.ConstantTimerGui</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.timers.ConstantTimer</stringProp>
> <stringProp name="TestElement.name">Constant Timer</stringProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <stringProp name="ConstantTimer.delay">300</stringProp>
> </ConstantTimer>
> <hashTree/>
> </hashTree>
> <ResultCollector>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.visualizers.MonitorHealthVisualizer</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.reporters.ResultCollector</stringProp>
> <stringProp name="TestElement.name">Monitor Results</stringProp>
> <objProp>
> <value class="org.apache.jmeter.samplers.SampleSaveConfiguration">
> <time>true</time>
> <latency>true</latency>
> <timestamp>true</timestamp>
> <success>true</success>
> <label>true</label>
> <code>true</code>
> <message>true</message>
> <threadName>true</threadName>
> <dataType>true</dataType>
> <encoding>false</encoding>
> <assertions>true</assertions>
> <subresults>true</subresults>
> <responseData>false</responseData>
> <samplerData>false</samplerData>
> <xml>true</xml>
> <fieldNames>false</fieldNames>
> <responseHeaders>false</responseHeaders>
> <requestHeaders>false</requestHeaders>
> <responseDataOnError>false</responseDataOnError>
> <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
> <assertionsResultsToSave>0</assertionsResultsToSave>
> <delimiter>,</delimiter>
> <printMilliseconds>true</printMilliseconds>
> </value>
> <name>saveConfig</name>
> </objProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <stringProp name="filename">C:\Apache\jakarta-jmeter-2.1rc1\bin\monitorstats.jtl</stringProp>
> <boolProp name="ResultCollector.error_logging">false</boolProp>
> </ResultCollector>
> <hashTree/>
> <ResultCollector>
> <stringProp name="TestElement.gui_class">org.apache.jmeter.visualizers.SimpleDataWriter</stringProp>
> <stringProp name="TestElement.test_class">org.apache.jmeter.reporters.ResultCollector</stringProp>
> <stringProp name="TestElement.name">Simple Data Writer</stringProp>
> <objProp>
> <value class="org.apache.jmeter.samplers.SampleSaveConfiguration">
> <time>true</time>
> <latency>true</latency>
> <timestamp>true</timestamp>
> <success>true</success>
> <label>true</label>
> <code>true</code>
> <message>true</message>
> <threadName>true</threadName>
> <dataType>true</dataType>
> <encoding>true</encoding>
> <assertions>true</assertions>
> <subresults>true</subresults>
> <responseData>false</responseData>
> <samplerData>false</samplerData>
> <xml>true</xml>
> <fieldNames>true</fieldNames>
> <responseHeaders>true</responseHeaders>
> <requestHeaders>true</requestHeaders>
> <responseDataOnError>false</responseDataOnError>
> <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
> <assertionsResultsToSave>0</assertionsResultsToSave>
> <delimiter>,</delimiter>
> <printMilliseconds>true</printMilliseconds>
> </value>
> <name>saveConfig</name>
> </objProp>
> <boolProp name="TestElement.enabled">true</boolProp>
> <stringProp name="filename">simpledatawriter</stringProp>
> <boolProp name="ResultCollector.error_logging">false</boolProp>
> </ResultCollector>
> <hashTree/>
> </hashTree>
> </hashTree>
> </jmeterTestPlan>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to running a test plan in non-gui mode?
Posted by Paul Spencer <pa...@apache.org>.
Peter,
Each listener is writing to a named file in gui mode. It does NOT work
in non-gui mode. It appears that the writing of files is disabled in
non-gui mode.
I have attached the JMX file.
Paul Spencer
Peter Lin wrote:
> have you tried giving each listener a name for the jtl file? that should work.
>
> peter
>
>
> On 7/24/05, Paul Spencer <pa...@apache.org> wrote:
>
>>Peter,
>>Using 2.1rc1, the files written by the SimpleDataWriter and
>>MonitorResults are NOT written in non-gui mode. The only file written
>>in non-gui mode is <test_file>.jtl. Thus "jmeter-n Monitor.jmx" produces
>>Monitor.jtl.
>>
>>Paul Spencer
>>
>>
>>Peter Lin wrote:
>>
>>>the monitor stats saves the statistics generated from the requests. if
>>>you want to save the requests to tomcat5, add a simple data writer.
>>>
>>>I'll update the docs to mention this.
>>>
>>>peter
>>>
>>>
>>>On 7/23/05, Paul Spencer <pa...@apache.org> wrote:
>>>
>>>
>>>>Please note that I am using the July 17 nightly build.
>>>>
>>>>I would line to run a test plan in non-gui modes. Specifically I have a
>>>>test plant the monitor tomcat server for 5 minutes and output the
>>>>results to a file. I would like to run the test plan once an hour, via
>>>>cron.
>>>>I tried the command "jmeter-n Monitor.jxm", but what is in the file
>>>>generated by the "Monitor Results" is different.
>>>>
>>>>** Expected, i.e. when run in GUI mode
>>>><?xml version="1.0" encoding="UTF-8"?>
>>>>
>>>><testResults version="1.1">
>>>>
>>>><monitorStats>
>>>> <stringProp name="stats.memload">57</stringProp>
>>>> <stringProp name="stats.cpuload">0</stringProp>
>>>> <stringProp name="stats.load">29</stringProp>
>>>> <stringProp name="stats.health">3</stringProp>
>>>> <stringProp name="stats.port">8080</stringProp>
>>>> <stringProp name="stats.threadload">1</stringProp>
>>>> <stringProp name="stats.host">localhost</stringProp>
>>>> <stringProp name="stats.timestamp">1122141685675</stringProp>
>>>> <stringProp name="stats.protocol">http</stringProp>
>>>></monitorStats>
>>>>
>>>></testResults>
>>>>
>>>>** Received, i.e. when run in non-gui mode
>>>><?xml version="1.0" encoding="UTF-8"?>
>>>><testResults version="1.1">
>>>><sampleResult timeStamp="1122141625972" dataType="text"
>>>>threadName="Thread Group 1-1" label="HTTP Request" time="63"
>>>>responseMessage="OK" responseCode="200" success="true"/>
>>>></testResults>
>>>>
>>>>How do I run a test plan in non-gui mode?
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
Re: How to running a test plan in non-gui mode?
Posted by Peter Lin <wo...@gmail.com>.
have you tried giving each listener a name for the jtl file? that should work.
peter
On 7/24/05, Paul Spencer <pa...@apache.org> wrote:
> Peter,
> Using 2.1rc1, the files written by the SimpleDataWriter and
> MonitorResults are NOT written in non-gui mode. The only file written
> in non-gui mode is <test_file>.jtl. Thus "jmeter-n Monitor.jmx" produces
> Monitor.jtl.
>
> Paul Spencer
>
>
> Peter Lin wrote:
> > the monitor stats saves the statistics generated from the requests. if
> > you want to save the requests to tomcat5, add a simple data writer.
> >
> > I'll update the docs to mention this.
> >
> > peter
> >
> >
> > On 7/23/05, Paul Spencer <pa...@apache.org> wrote:
> >
> >>Please note that I am using the July 17 nightly build.
> >>
> >>I would line to run a test plan in non-gui modes. Specifically I have a
> >>test plant the monitor tomcat server for 5 minutes and output the
> >>results to a file. I would like to run the test plan once an hour, via
> >>cron.
> >>I tried the command "jmeter-n Monitor.jxm", but what is in the file
> >>generated by the "Monitor Results" is different.
> >>
> >>** Expected, i.e. when run in GUI mode
> >><?xml version="1.0" encoding="UTF-8"?>
> >>
> >><testResults version="1.1">
> >>
> >><monitorStats>
> >> <stringProp name="stats.memload">57</stringProp>
> >> <stringProp name="stats.cpuload">0</stringProp>
> >> <stringProp name="stats.load">29</stringProp>
> >> <stringProp name="stats.health">3</stringProp>
> >> <stringProp name="stats.port">8080</stringProp>
> >> <stringProp name="stats.threadload">1</stringProp>
> >> <stringProp name="stats.host">localhost</stringProp>
> >> <stringProp name="stats.timestamp">1122141685675</stringProp>
> >> <stringProp name="stats.protocol">http</stringProp>
> >></monitorStats>
> >>
> >></testResults>
> >>
> >>** Received, i.e. when run in non-gui mode
> >><?xml version="1.0" encoding="UTF-8"?>
> >><testResults version="1.1">
> >><sampleResult timeStamp="1122141625972" dataType="text"
> >>threadName="Thread Group 1-1" label="HTTP Request" time="63"
> >>responseMessage="OK" responseCode="200" success="true"/>
> >></testResults>
> >>
> >>How do I run a test plan in non-gui mode?
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to running a test plan in non-gui mode?
Posted by Paul Spencer <pa...@apache.org>.
Peter,
Using 2.1rc1, the files written by the SimpleDataWriter and
MonitorResults are NOT written in non-gui mode. The only file written
in non-gui mode is <test_file>.jtl. Thus "jmeter-n Monitor.jmx" produces
Monitor.jtl.
Paul Spencer
Peter Lin wrote:
> the monitor stats saves the statistics generated from the requests. if
> you want to save the requests to tomcat5, add a simple data writer.
>
> I'll update the docs to mention this.
>
> peter
>
>
> On 7/23/05, Paul Spencer <pa...@apache.org> wrote:
>
>>Please note that I am using the July 17 nightly build.
>>
>>I would line to run a test plan in non-gui modes. Specifically I have a
>>test plant the monitor tomcat server for 5 minutes and output the
>>results to a file. I would like to run the test plan once an hour, via
>>cron.
>>I tried the command "jmeter-n Monitor.jxm", but what is in the file
>>generated by the "Monitor Results" is different.
>>
>>** Expected, i.e. when run in GUI mode
>><?xml version="1.0" encoding="UTF-8"?>
>>
>><testResults version="1.1">
>>
>><monitorStats>
>> <stringProp name="stats.memload">57</stringProp>
>> <stringProp name="stats.cpuload">0</stringProp>
>> <stringProp name="stats.load">29</stringProp>
>> <stringProp name="stats.health">3</stringProp>
>> <stringProp name="stats.port">8080</stringProp>
>> <stringProp name="stats.threadload">1</stringProp>
>> <stringProp name="stats.host">localhost</stringProp>
>> <stringProp name="stats.timestamp">1122141685675</stringProp>
>> <stringProp name="stats.protocol">http</stringProp>
>></monitorStats>
>>
>></testResults>
>>
>>** Received, i.e. when run in non-gui mode
>><?xml version="1.0" encoding="UTF-8"?>
>><testResults version="1.1">
>><sampleResult timeStamp="1122141625972" dataType="text"
>>threadName="Thread Group 1-1" label="HTTP Request" time="63"
>>responseMessage="OK" responseCode="200" success="true"/>
>></testResults>
>>
>>How do I run a test plan in non-gui mode?
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to running a test plan in non-gui mode?
Posted by Peter Lin <wo...@gmail.com>.
the monitor stats saves the statistics generated from the requests. if
you want to save the requests to tomcat5, add a simple data writer.
I'll update the docs to mention this.
peter
On 7/23/05, Paul Spencer <pa...@apache.org> wrote:
> Please note that I am using the July 17 nightly build.
>
> I would line to run a test plan in non-gui modes. Specifically I have a
> test plant the monitor tomcat server for 5 minutes and output the
> results to a file. I would like to run the test plan once an hour, via
> cron.
> I tried the command "jmeter-n Monitor.jxm", but what is in the file
> generated by the "Monitor Results" is different.
>
> ** Expected, i.e. when run in GUI mode
> <?xml version="1.0" encoding="UTF-8"?>
>
> <testResults version="1.1">
>
> <monitorStats>
> <stringProp name="stats.memload">57</stringProp>
> <stringProp name="stats.cpuload">0</stringProp>
> <stringProp name="stats.load">29</stringProp>
> <stringProp name="stats.health">3</stringProp>
> <stringProp name="stats.port">8080</stringProp>
> <stringProp name="stats.threadload">1</stringProp>
> <stringProp name="stats.host">localhost</stringProp>
> <stringProp name="stats.timestamp">1122141685675</stringProp>
> <stringProp name="stats.protocol">http</stringProp>
> </monitorStats>
>
> </testResults>
>
> ** Received, i.e. when run in non-gui mode
> <?xml version="1.0" encoding="UTF-8"?>
> <testResults version="1.1">
> <sampleResult timeStamp="1122141625972" dataType="text"
> threadName="Thread Group 1-1" label="HTTP Request" time="63"
> responseMessage="OK" responseCode="200" success="true"/>
> </testResults>
>
> How do I run a test plan in non-gui mode?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org