A Brief Introdustion About Logic Controllers In Jmeter
Posted By : Aarushi Sharma | 30-May-2018
The logic controller gives the command on how the request is sent to the server.
Some of the commonly used logic controllers are:
1. Recording Controller
2. Simple Controller
3. Loop Controller
4. Random Controller
5. Module Controller
6. Only Once Controller
Recording Controller:
Like Blazemeter, Jmeter also records the actions performed by the user with the help of Recording controller. With the help of HTTP Test Script Recorder, all the actions are recorded under Recording Controller.
Simple Controller:
A simple controller is used to group and order the request in the test plan.
Loop Controller:
Loop controller is used to making the request run for the given number of times or it can also run forever.
eg->Suppose we want any action to perform 5 times in the application then enter 5 in the Loop count and run the script. The same action will perform 5 times.
Random Controller:
The random controller is used to send the request in the random order.
eg->Suppose you have three request
1. Update user profile
2. Send Email
3. Check History
Now random controller will execute these request in random order .eg->Check History->Update user profile->Send Email or Send Email->Update user profile->Check History
Module Controller:
Module controller is used to adding modularity in the test plan.Like an application consist of different functionalities(Register,Login,create,logout etc).These functionalities can be created in the Simple controller as modules and module controller will decide which module will execute.
Only Once Controller:
This controller is used to execute the request only once regardless of the loop count. Whatever may be the loop count, if any request is added to only once controller then this request will only execute once.
eg->In any application we can login only once, so we can put Login request in the Only Once Controller, now whatever may be the loop count, login will only perform once.
Thanks
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Aarushi Sharma
Aarushi is a bright QA engineer with experience in manual testing. Apart from that she loves to dance.