Set up and installation:
1.Right click on test plan add new thread group by choosing option: Add>>Threads (user)>>Thread Group.
2. Right click on Thread Group and add “HTTP Cookie Manager” by choosing option: Add>>Config Element>>HTTP Cookie Manager.
3. Right click on Thread Group and add “HTTP Cache Manager” by choosing option: Add>>Config Element>>HTTP Cache Manager.
4. Right Click on “WorkBench” and add “HTTP Proxy Server” by choosing option Add>>Non Test Element >>HTTP Proxy Server.
5. Add URL Pattern by clicking “add” button in “Patterns to exclude” panel. This will create a blank entry
6. Enter “.*\.gif”,”.*\.jpg”,”.*\.png” as below screen.
7. Setup proxy setting of Internet explorer browser as above “8080” port in Jmeter. Open internet explorer and go to “tools” menu option and click on “Internet options”
8. Click on “Connections” from above screen. And then click on “LAN Settings” button of opened window.
9. Set up proxy as in below screen and click OK button.
1. Download java(JDK) from link "“http://www.oracle.com/technetwork/java/archive-139210.html” and setup path in your system environment variable.
2. Download apache Jmeter from link “http://jmeter.apache.org/download_jmeter.cgi”.
3. Unzip downloaded Jmeter package in your machine, go to extracted folder and open bin folder.
4. Click on “jmeter.bat” file you should see that a cmd screen and Jmeter console should opened as below.
After completing above steps you are ready to create First Jmeter script.
Steps to create first Jmeter test:
Steps to create first Jmeter test:
1.Right click on test plan add new thread group by choosing option: Add>>Threads (user)>>Thread Group.
2. Right click on Thread Group and add “HTTP Cookie Manager” by choosing option: Add>>Config Element>>HTTP Cookie Manager.
3. Right click on Thread Group and add “HTTP Cache Manager” by choosing option: Add>>Config Element>>HTTP Cache Manager.
4. Right Click on “WorkBench” and add “HTTP Proxy Server” by choosing option Add>>Non Test Element >>HTTP Proxy Server.
5. Add URL Pattern by clicking “add” button in “Patterns to exclude” panel. This will create a blank entry
6. Enter “.*\.gif”,”.*\.jpg”,”.*\.png” as below screen.
7. Setup proxy setting of Internet explorer browser as above “8080” port in Jmeter. Open internet explorer and go to “tools” menu option and click on “Internet options”
8. Click on “Connections” from above screen. And then click on “LAN Settings” button of opened window.
9. Set up proxy as in below screen and click OK button.
10. Right click on “Thread Group” and add “Transaction Controller” by choosing option Add>>Logic Controller>>Transaction Controller. You can rename transaction controller as in below screen.
Note: You can add multiple “Transaction Controller” as per your requirement, while recording each request and responses captured in to selected transaction controller.
11. Right click on HTTP Proxy Server and add View Result Tree by choosing option: Add>>Listener>>View Result Tree .
12. After completing all above steps your Jmeter console look like below.
11. Right click on HTTP Proxy Server and add View Result Tree by choosing option: Add>>Listener>>View Result Tree .
12. After completing all above steps your Jmeter console look like below.
13. Now you are ready to capture transaction of your web application.
14. Select your appropriate Transaction Controller and click on start button.
In below screen I have created two Transaction controller “Home” and “English”. After capturing request and responses your screen look like as my below screen.
Execution:
1. For user setting or ramp up period , click on “Thread Group” and update values according your need.
2. Right click on “Thread Group” and add View Result Tree by choosing option: Add>>Logic Control > Listener>> View Result Tree.
3. Right click on “Thread Group” and add “Summary Report” by choosing option: Add>>Logic Controle>> Listener>> Summary Report.
4. Click start button on top menu.
1. For user setting or ramp up period , click on “Thread Group” and update values according your need.
3. Right click on “Thread Group” and add “Summary Report” by choosing option: Add>>Logic Controle>> Listener>> Summary Report.
4. Click start button on top menu.
No comments:
Post a Comment
Leave your comments, queries, suggestion I will try to provide solution