1. Apache - JMeter¶
1.1 Overview¶
Apache JMeter is an open source software project for application and server performance testing using various protocols as well as functional testing.
1.2 Install¶
- Clone the following GIT repository on your disk (access could need asking a permission) :
The repository includes an installation of Apache JMeter and everything you need, so you do not have to install it by yourself.
Warning
I am not sure that JMeter will work in another directory than C:\dev\jmeter-work TODO Check&Fix
- Switch repository to develop branch.
1.3 Use¶
Apache JMeter is an open source software project for application and server performance testing using various protocols as well as functional testing.
1.3.1 Open BLM¶
- Run JMeter by launching :
-
Open the BLMs project using File/Open at the top left menu of the window (it can takes some times).
- File :
jmeter-work\scripts\All-Optimal-BLM.jmx(This can takes some times).
- File :
-
The BLMs list appears in the left panel of the screen. You can expand one and see what are its steps (example : TC2_BLM-173).
- At each stage (example : TC2_BLM-173_03_Open_Maintenance_Planning), you can expand again to see the list of the endpoints called (left clic on anyone), you will see the name of the endpoint in path.
Example : TC2_BLM-173_03_Open_Maintenance_Planning-0.
1.3.2 Run test¶
To run the test, at the top left of the screen :
- (only once) right click on User Defined Variables-PERF, and choose Toogle (or Ctrl+T) to disable it (it becomes grey).
- (only once) right click on User Defined Variables-PERF(FOR TESTS), and toogle it too, to enable it (it becomes black).
- left click on view Result Tree to open the results screen.
- launch with Start no pauses (the second green triangle at the top left, the one with a a small clock with a red stripe).
1.3.3 Informations¶
-
All BLMs are launched sequentialy, starting with Simple units test (you can stop them at anytime with the red STOP button).
If you want to test only one BLM in particular, toggle all the others (select them with Shift key from single test unit to TC16_BLM-569 then Ctrl+T) and keep enabled only the one you want active. If a BLM does not work, its line is displayed in red in the result tree screen (should not happen with this procedure, except on some BLM that are a bit random..).
-
After each testing phase, you can clear the results with the button Clear All (the sweep).
-
After a testing phase, you can watch each step of any BLM.
Expand it in the result Tree Window, and left click on a sub item to see the detail : request, response data, body, header...
-
If you need, you can test with a local base instead of the distant one (it is faster).
The base used is perfo.pgdump (Optimal). If you dont have it yet, you can found it in Microsoft Teams:
- Team : Aero-Webb Refactoring & Performance.
- Files : Documents/General/Bases/perfo.pgdump (903 MB).
- Mount it.
- Launch Tomcat with the last aerowebb.war.
- Toggle ON User Defined Variables-PERF(FOR LOCAL USE).
- Toggle OFF User Defined Variables-PERF(FOR TESTS).
Created: 2024-01-30