ASP.NET Web application Login page testing with JMeter:
Here we will see that how to login in the ASP.Net by using JMeter tool for the purpose of Load Testing. In which we follow the simple step for more clarification-
Step 1: Need below software
- Apache JMeter – Download and run the .bat/.sh file from the bin folder.(.bat for window & .sh for Linux)
- Java 6 or later – Download and proper installation of Java.
- Mozilla Firefox – Download and proper installation of Mozilla.
Step 2: Add the Thread Group to Test Plan
- Right-click on Test Plan> Add > Threads (Users)
Step 3: Add the HTTP Request Default
- Right-click on Thread Group> Add > Config Element> HTTP Request Defaults
- Enter the server name or IP in which application you want to login. for example http://www.Zahid.com
Step 4: Add the HTTP Cookie Manager
- Right-click on Thread Group> Add > Config Element> HTTP Cookie Manager
- Cookie policy should be set to Compatibility.
Step 5: Add the Simple Controller
- It’s better if you add the login page under the simple Controller.
- Right-click on Thread Group> Add >Logic Controller> Simple Controller
Step 6: Add the HTTP Request
- Right-click on Simple Controller> Add >Sampler> HTTP Request
- Here you can change the name according you.
- Enter the /login.aspx in the path.
Step 7: Add the HTTP Request
- Right-click on Simple Controller> Add >Sampler> HTTP Request
- Here you can change the name according you.
- Enter the /login.aspx in the path.
- Enter the User Name & Password.
Step 8: Add the listener as you want-
Step 9: Now save the test plan and run it.
Step 10: View the Result
- Graph result
- Aggregate Report
- Aggregate Graph
- View result Tree
- View Result in Table
********************************END******************************************
I hope that it’s fruitful for you……..