The need for creating an Advanced Test Plan comes in when the test requires any of the following
Note:
Before using JDBC Request Sampler we need to set up the ‘JDBC Connection Configuration’ configuration element
Please note
Using Transaction Controllers in the Test Plan
Assume a user logins to an online shopping website and performs a search on 5 different products. While the script is under execution, the progress of the script parsing through 5 different products is reflected in the statement – “Search Transaction Controller 1-4”. This means of the 5 searches, 4th has been completed.
Merging Scripts
Two or more scripts can be merged into a single Test Plan. Assume we have three scripts merged in the order say
Steps to be followed while merging the scripts
A new thread group is displayed along with the existing thread group In order to avoid confusion, it would be better to rename the thread group(s) merged.
When the merged script is executed, there will be 25 (10+10+5 users) Transaction controllers now present in the Test Plan. During execution, each of the 3 merged scripts will be tracked independently, i.e if the Transaction Controller shows ‘Basic search Transaction Controller 2-6’; this implies the 6th search of the 2nd merged script has just completed execution.
Input File (Comma delimited (CSV) file)
The recorded scripts can be executed with multiple users, by parameterizing our scripts. This can be done in two ways:
CSV file is very useful while executing the JMeter script(s) with ‘n’ multiple users. The attached screenshot (CSV.jpg) has 3 columns. The first column is for Username, the second column is for password and the third column is for the server name.
On executing the script after parameterizing, the script fetches the value from the CSV file, substitutes it with the corresponding request, and sends it to the server.
Points to be noted while using a CSV file
In the Test plan, configure CSV Data Set Config as follows, click on CSV Data Set ConfigCSV Data Set Config as follows, click on CSV Data Set Config
Filename: filename.csv
File encoding: leave it blank
Variable Names (comma-delimited): Specify the names for parameters (values) specified in each column in the CSV file. Later use this variable name in the script as ‘${variablename}’ Delimiter (use \t for tab): ,
Allow quoted data?: False
Recycle on EOF?: True
Stop thread on EOF?: False
Sharing mode: All threads
Note:
Have questions? Contact the software testing experts at InApp to learn more.