JMeter Best Practices during Script Creation, script run & after load run
During Script Creation:
1. Script Name: The script Name should have: a. Application Name b. Application Version c. Name of subtab or Module(not required if covers all scenarios) d. Script Version these parts should be followed by an underscore. eg. MNewsV2_1.8_Search_Ver1.jmx 2. Comments: In the JMeter Test Plan Window Comments Box enter the following comments: /* ################################################### # Created by - XXXXXX # Application - XXXXXX # Release - XXX # Version - XX # Data file location: XXXXX # Creation date : XXXXX # Last Modified Date - XXXXX # Script flow---> Launch-->Login--->search-->Save-->Logout # QA Comments - Inserted think time, comments and parameterized BaseURL ################################################## */ If required comments can also be added in other JMeter components. 3. Add Transaction Controllers: Each and every transaction should follow the correct naming conventions. Eg Launch Application, Login Application, Agent Tab etc. 4. Grouping: Proper Grouping should be done so that the script and reports are readable. 5. Data file Location: Keep script and supporting data files in the same folder. 6. Domain Name: Make domain name/base URL as a Parameter so that the same script can be used in different(staging as well as production) environments.