'Jmeter cookies clearing for only one transaction
I have a scenario that user will only login once and perform all the transcations for one hour and at last user will logout i have tried with thread group with loopcontroller ,once only and runtime controller but not able to achieve it
And also on part of load test whenever user has logged in and performing other transcations if he gets any eroor and he need to login again with clearing cookies but not for entire transcations because after login remaining transcations require those cookies please help how to do it
Solution 1:[1]
You can consider the following setup:
- Put login logic under setUp Thread Group
- Pass authentication context (cookies or whatever) to main Thread Group using JMeter Properties or Inter-Thread Communication Plugin
- Put logout logic under tearDown Thread Group
Your requirement in case of "if he gets any eroor" doesn't make a lot of sense to me in its current form as I cannot get the desired behaviour.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dmitri T |
