1. Add Recording controller
Right click "Test plan"; Choose Add - Threads (Users) - Thread Group
Right click Thread Group; Choose Add - Logic Controller - Recording Controller
2. Add Cookie manager in Recording controller
Right click Recording controller; Choose Add - Config element - HTTP cookie manager
Right click Recording controller; Choose Add - Config element - HTTP header manager.
3. Add HTTP Proxy server
Right click on WorkBench; Choose Add - Non-test elements - Http Proxy Server
On HTTP Proxy Server, provide :
- Port : Port for capturing recording (example : 8081)
- Add following entries in "URL Patterns to Exclude" using Add button :
*.gif
*.jpg
*.png
*.ico
*.jsp
4. Configure your browser (skip this step, if already configured)
Start browser (usually, Firefox). Go to Advanced - Network - Settings - Manual proxy configuration
Set host=localhost, Port=8081 and Check "Use this proxy server for all protocols"
For IE, Go to Tools - Internet options - Connections - LAN Setting - proxy server
Set Address=localhost, Port=8081 and Check "Use a proxy server"
Here, the port should be same as given in HTTP Proxy Server of workbench.
5. Start recording
Select HTTP Proxy Server.
In global setting, ensure that the port given should be same as provided in proxy configuration in browser.
Choose target controller (where to record) "Thread Group - Recording controller" and click the "Start" button.
Open application in browser and perform steps.
To finish the recording, click Stop button in HTTP Proxy Server.
Expand the Recording controller. There would be several samplers / HTTP request.
6. Add listeners to Thread group to view result
Right click Thread group; Choose Add - Listener - (choose any listener)
Click Thread group and provide Number of threads (users) and Ramp-up period.
Run the test plan and check result.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.