jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Running different JMeter tests from a shell script
Date Thu, 17 Jun 2010 22:35:19 GMT
On 17/06/2010, roccatgaming <radu.leterna@softvisioninc.eu> wrote:
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 17/06/2010, roccatgaming <radu.leterna@softvisioninc.eu> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >
>
>
> 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 :).

Again, that looks OK.

Try creating some dummy test plans that only download a single page
and see how those work.

>  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: 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


Mime
View raw message