sebb-2-2 wrote:
> 
> On 17/06/2010, roccatgaming <[email protected]> wrote:
>>
>>  Hi,
>>
>>  I am trying to run different jmx files by calling jmeter.sh from a
>> custom sh
>>  script that I've wrote.
>>  The script file was supposed to run a test in Non-GUI mode and then move
>> on
>>  to the next one.
>>
>>  The script file is like this:
>>
>>  #-----------------------------------------------------------
>>  ${JMETER_HOME}/bin/jmeter.sh -n -p ${TESTS_HOME}/test1.properties -t
>>  ${TESTS_HOME}/test1.jmx
>>  ${JMETER_HOME}/bin/jmeter.sh -n -p ${TESTS_HOME}/test2.properties -t
>>  ${TESTS_HOME}/test2.jmx
>>  ${JMETER_HOME}/bin/jmeter.sh -n -p ${TESTS_HOME}/test3.properties -t
>>  ${TESTS_HOME}/test3.jmx
>>  #-----------------------------------------------------------
> 
> That looks OK, though you might want to use separate jmeter log files
> (-j).
> Ditto for jtl files (-l).
> 
>>
>>  Note: If I run the tests without the -n parameter (so, in GUI mode)
>> after I
>>  close the first test the next one opens and so on. So it works as
>> expected.
>>  But, in Non-GUI mode, after running the first test, the JMeter prompts
>> me
>>  about "Tidying up ..." "... end of run" and nothing happens next. The
>> next
>>  test doesn't start. I think the script waits for something, or JMeter
>>  doesn't shut down itself... I'm not sure.
> 
> Check the log file to see.
> 
>>  Do I have to put a specific element in JMeter at test end? So that it
>> close
>>  itself?
> 
> No, JMeter should shutdown by itself when all the threads have completed.
> 
> Does the GUI mode test show all the threads as having completed, or
> are some still running when you close it?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

In the log file the last lines are as follows:

...
2010/06/17 12:12:39 INFO  - jmeter.engine.StandardJMeterEngine: Stopping
test 
2010/06/17 12:12:39 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
test listeners of end of test 
2010/06/17 12:12:39 INFO  - jmeter.engine.StandardJMeterEngine: Test has
ended 

In the shell window where I run the script the last lines are:
...
Starting the test @ Thu Jun 17 12:10:38 EDT 2010 (1276791038055)
Waiting for possible shutdown message on port 4445
Tidying up ...    @ Thu Jun 17 12:12:39 EDT 2010 (1276791159399)
... end of run

So I suppose it should start the next test... because the other one looks
finished to me :).

Thanks.


-- 
View this message in context: 
http://old.nabble.com/Running-different-JMeter-tests-from-a-shell-script-tp28916054p28916626.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to