December 2017
Beginner to intermediate
362 pages
8h 35m
English
The pipeline code to execute the performance testing is a simple shell script that evokes the jmeter.sh script and passes the .jmx file to it. The test result is stored inside a .jtl file that is then archived. The code is as follows:
sh '''cd /opt/jmeter/bin/./jmeter.sh -n -t $WORKSPACE/src/pt/Hello_World_Test_Plan.jmx -l $WORKSPACE/test_report.jtl''';step([$class: 'ArtifactArchiver', artifacts: '**/*.jtl'])
The following table gives the description the preceding code snippet:
|
Code |
Description |
|
./jmeter.sh -n -t <path to the .jmx file> -l <path to save the .jtl file> |
This is the jmeter command to execute the performance test plan (the .jmx files) and generate a test result (the .jtl files). ... |
Read now
Unlock full access