Most people use Badboy with its recording function, the other badboy is also an automated tool, it can achieve checkpoints, parameterization, iteration, concurrency, reporting, breakpoints and other functions. This article provides a brief description of these functions.
Environment Preparation:
: http://www.badboy.com.au/, install after download.
Tool: Badboyinstaller-2.2.exe
First, the checkpoint
1, open Badboy, the default is the recording status, in the address bar input: http://http://www.sogou.com/, click, such as:
2. Enter Yangxia-test in the text box and click Search, such as:
3, select the text "Yangxia-test", click tools-add Assertion for Selection, such as:
4, Replay, click Playall, such as:
Second, the parameterization of
1. Set up a parametric list
2. replace the ${parameter name in the request}
The checkpoint is also set as a parameter form, such as:
To set the number of iterations , click on "Step1" right and select the for each value of Vari querytxt, as:
3, the Chinese may have garbled, change the code in the request, if there is no need to ignore this step. change IE to GBK
Iii. parameterization of the database
Set in Tools-data source. Set it yourself according to your needs.
Note: The data source is placed at the forefront of the script! Cause: The script executes sequentially.
Iv. concurrency
Click Tools-background Threads, set in the pop-up box
V. Reporting
in View-report-detailsreport, such as:
Six, breakpoints
Select where you want to set the breakpoint, and click "Togglebreak Point"
JMeter Learning (29) Automated Badboy Script development Technology