Hi - I was wondering what strategies/practices people use for JMeter command
line testing. I tried the approach below - while it works, I'd like some
feedback and had a few questions.
In general, I want to run a JMeter test from the command line script that
reports any errors in the test run. So I first create the JMX in the GUI. At
the end of the JMX, below the thread groups, I insert a 'View Results in
Table' to write test errors to a file (say "test.log").
-----------------------------------------------
Test Plan
Thread Group 1
...
Thread Group n
View Results in Table [ Write errors to 'test.log' ]
-----------------------------------------------
I then call the whole thing in a shell script. Any errors in the run are
logged to the 'test.log' file. The script inspects 'test.log' to see if the
test run had any errors. It looks like this:
-------------------
#!/bin/bash
rm -rf test.log
jmeter -t test.jmx -n
ERRORS=`wc -l test.log`
echo "Errors: $ERRORS"
-------------------
Some questions:
1. Any feedback on this method would be welcome.
In particular are there better methods to use JMeter tests
from the command line?
(I read somewhere about Junit/Ant interfaces for JMeter,
but can't find the link.)
2. For substitution of a few test variables, is there any advantage to
using __CVSRead or _StringFromFile (plain files) over just
__property
(reading from property files)?
3. Is there documentation on the 'View Results in Table' file format?
E.g.: Here is a single error line in test.log:
What do "1071715008642" and "Thread Group 11-1" represent?
(the thread group name is really "Thread Group 1")
-----------------------------------------------
1071715008642,265,Login 1,Non HTTP response code,Non HTTP response
message,Thread Group 11-1,text,false
-----------------------------------------------
With regards,
Sonam Chauhan
--
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]