| || |
Record a test for page which needs authentication.
I need to record a test in JMeter for my one of the web page which needs authentication, but that page requires that the user must be logged in.
So how can I simulate the scenario so I should not need to Login the user in the application but can access the page.(one time login is ok to me)
I've recorded a test using "One time controller" which has the action of login the user.
Then the second controller I've used to access the desired page.
Referring: 4.2.2 Logic Controllershttp://jakarta.apache.org/jmeter/use...test_plan.html)
But when running the test with 10 thread "One time controller" is also running for 10 thread.
Please let me know what I am missing here.
Re: Record a test for page which needs authentication.
One time controller doesn't work the way you think it does.
It runs ONCE PER THREAD. Thus, 10 threads equals 10 runs.
You'll want to create a thread group just for logging in, and then a thread group for all subsequent actions.
However, if you're modifying data on your website (updating profiles, etc.) you probably want multiple logins to keep a clean session.