Jmeter Affairs controller logic controllers

Earlier I was doing performance testing, because of our system is the need to login, the login is successful, the system defaults to load their orders, so it seems this is a user operation. So in order to simulate this operation, I need to access two interfaces, and the response time of these two interfaces counted together, then use the transaction controller, give Liezi to share my understanding, I hope we learn from each other, a lot of guidance.

First, recognize the transaction controller

Below, a new transaction controller

 Controller Settings panel:

 

 Generate parent sample: generating a parent sample, the results of all samples set transaction controller, which in all samples are correct, the correct way transaction control, anyway, under an incorrect, the improper

Include duration of timer and pre-post processors in generated sample: and a pre-processor includes a timer delay and processing time, is generally used in the performance test.

二、Generate parent sample

Add two first transaction request at the controller, as follows:

 

 Then set Generate parent sample option is checked in the transaction controller

 

 

After execution, the result tree and the polymerization was observed report the results as follows:

 

 

 

三、Include duration of timer and pre-post processors in generated sample

1, includes a timer delay time

First, the new access request following a home Baidu timer delay is set to 2 seconds, as follows:

 

The controller then check the Include duration of timer and pre-post processors in generated sample.

 

 After the execution, observation:

 

 

 

 2, the processing time of the pre-processor comprises

Start by adding a pre-processor to access Baidu news page, the transaction controller settings above.

 

 

 After the execution, observation:

 

 

 

 Finally, you can try, and start a timer and pre-processor to see if the total time on the controller contains two affairs, is to be increased by 7 seconds. ,

Share here today, that many instructions

Guess you like

Origin www.cnblogs.com/sandymonk/p/11527663.html