|
||||||||||||||||||
| ||||||||||||||||||
|
Screenshots Recording of Load Tests
Post-Processing of the Recording
Creation and Starting of Load Test Programs
Real-Time Monitoring and Real-Time Error Analyses
Measurement Results per Test Run
Comparison of Test Runs Load Curves Miscellaneous Features
|
Miscellaneous Features Command Line Support The following example of a Shell Script, written on Mac OS X, executes the same load test several times with a different number of users (1, 20, 50, 100, 200 and 500 users) on a load generating cluster. #!/bin/bash # set the Java CLASSPATH to prxsniff.jar, to the default directory, and to the Proxy Sniffer installation directory export CLASSPATH=/Applications/ProxySniffer/prxsniff.jar:/Applications/ProxySniffer/iaik_jce_full.jar:.:/Applications/ProxySniffer # change to directory of load test program cd /Applications/ProxySniffer/MyTests # clear all data in the analyse load test menu of the GUI java PdfReport clear # loop repeatedly over simulated users # ------------------------------------------- for users in 1 20 50 100 200 500 do # define the load test program and its arguments. Note: if the program is zipped you have to add ".zip" to the program name loadTestProgram="Test01" loadTestProgramArgs="-u $users -d 180 -t 60 -sdelay 100 -maxloops 0 -sampling 10 -percpage 100 -percurl 100 -maxerrmem 20 -nolog" # define the load generating cluster name clusterName="clusterA" # define the load test result file currentDate=`date "+%d%h%y_%H%M%S"` loadTestResultFile="`echo $loadTestProgram`_`echo $currentDate`_`echo $users`u.prxres" # create the cluster job java PrxJob -s transmitClusterJob "$clusterName" $loadTestProgram $loadTestProgramArgs prxstat=`cat PRXSTAT` if [ $prxstat -lt "0" ]; then echo "unable to define job, status = $prxstat" exit 1; fi jobId=$prxstat # start the load test job on the cluster. Note: if an input file must be splitted you have to use the -split argument # see application reference manual java PrxJob -s startClusterJob "$clusterName" $jobId prxstat=`cat PRXSTAT` if [ $prxstat -ne "0" ]; then echo "unable to start job, status = $prxstat" exit 1; fi echo "$loadTestProgram started with $users users on $clusterName, job ID = $jobId" # wait until job is completed java PrxJob -s waitForClusterJobCompletion "$clusterName" $jobId prxstat=`cat PRXSTAT` if [ $prxstat -ne "0" ]; then echo "unable to wait for job $jobId, status = $prxstat" exit 1; fi echo "job ID = $jobId completed on $clusterName" # acquire load test result file java PrxJob -s acquireClusterJobResultFile "$clusterName" $jobId "$loadTestResultFile" prxstat=`cat PRXSTAT` if [ $prxstat -ne "0" ]; then echo "acquire of load test result file failed, status = $prxstat" exit 1; fi echo "load test result $loadTestResultFile acquired" # load result into analyse load test menu of the GUI java PdfReport load $loadTestResultFile # end loop over simulated users # ----------------------------------- done |
|||||||||||||||||
Copyright 2010 Engineering Office David Fischer GmbH, Switzerland All rights reserved. | ||||||||||||||||||