Example of Once Only Controller (sample usage)
The Once Only Controller will make its child samplers run only once per thread i.e. only in the first loop.
In the example shown below, the Thread Group has a loop count of 5 and Once Only controller contains Changes Request Sampler.
In Image 3 which does not use any logic controller, the number of http requests made is 15.
In Image 4, which uses Once Only Controller, the number of http requests made is 11 as the Changes Sampler is run only once. Image 3: Adding Once Only Controller
Image 3: Result without Once Only Controller
Image 3: Result with Once Only Controller. Notice that Changes Sampler occurs only once.
In the example shown below, the Thread Group has a loop count of 5 and Once Only controller contains Changes Request Sampler.
In Image 3 which does not use any logic controller, the number of http requests made is 15.
In Image 4, which uses Once Only Controller, the number of http requests made is 11 as the Changes Sampler is run only once. Image 3: Adding Once Only Controller
Image 3: Result without Once Only Controller
Image 3: Result with Once Only Controller. Notice that Changes Sampler occurs only once.