I wanted to login my page using JMeter, i have used login config element with appropriate username and password, but it doesn't work. So please help me and guide me to solve this problem.
Try recording your test script using the blazemeter's chrome extension. Once you have recorded the script download the jmx file and load it in jmeter and run your test.
UPDATE (from comments): The script is not chrome-specific. It records the script in jmx which is the file format in which the jmeter test plans are saved, so once recorded you can edit it and use it with jmeter.
Blazemeter is not free but you can sign up for a free user account. The chrome extension used to record script is free and by logging in with your free account you can download the recorded script.
Check his tutorial for an easy tutorial - http://testacy.co.in/performance-testing-jmeter
We do not have enough information to help you with your situation directly, but I have an idea how you can fix this yourself.
You can create a recording with JMeter by using the test script recorder.
Now you can record the login steps by using a real browser, JMeter should include everything you need to login and continue. Including cookies, etc...
See this PDF for a step by step usage: http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
First of all, add HTTP Cookie Manager to your plan. It'll automatically handle sessions and cookie-based authentication.
After that you can see if there any mandatory dynamic parameters are passed with the request. Just record your log in test case several times and see what parameters are static and what are changing from time to time. If there are any you'll need to fetch them from opening login page response and pass as arguments for the request which does actual log in.
See ASP.NET Login Testing with JMeter guide for more details, the approach will play even for not .NET based web applications.
I forgot to enter my parameter in JMeter, so it couldn't recognise them.
protected by Community♦ Nov 17 '14 at 17:16
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?