Controllers-
Loop, Simple, Module, Include,RandomLoop Controller-
Logic Controllers let you define the order of processing request in a Thread. It lets you control "when" to send a user request to a web server. For example, you have 3 requests and you want to set up loop for each request differently so with the help of loop controller we can do this easily.
Here I have added two requests and before one request, I have added loop count with 5 and I want to run first request 5 times and second request only one time.
Simple Controller-
Simple Controller is just a container for user request. We can use Test Fragment as the alternative of Simple Controller.
Module controller-
This functionality can be stored in Simple Controller as "modules". Module Controller will choose which module needs to run.
for Example-we have used Login request which is in Simple modular inside Module Controller.
Include Controller -
Export this test fragment and can include anywhere . For example- I have saved this file Login.jmx in test fragment and disable module controller and created include controller and browse the file login.jmx and move include controller before register request. we can remove Module Controller.
Random Controller-
A Random Controller will make one of samplers contained in it run in each loop of the thread and this sampler will be randomly selected.
Examples are explained very well :)
ReplyDeleteThanks for your Comment Anjali!
ReplyDelete