Monday, June 22, 2015

Recording in Jmeter using 'Test Script Recorder'

In this post will discuss how to setup and use the Apache JMeter HTTP(S) Test Script Recorder to record HTTP requests. Recording HTTP requests is a great way to building test plans, and can be useful in creating tests that closely mimic a normal user's behavior.

The elements that we need to set this up are:

1. Non- test Elements: HTTP(S) Test Script Recorder.
2. Browser installed in user's system.

First will add "HTTP(S) Test Script Recorder", by right click on 'workbench' then select add and then Non- test Elements: HTTP(S) Test Script Recorder.

Like this:




Now configure it:
a) Enter the site domain or its IP in 'HTTPS Domain' field.
b) Change target controller as "WorkBench>> HTTP(S) Test Script Recorder".

Like this:

Now click on the 'Start' button located at the bottom of 'HTTP(S) Test Script Recorder'.

Open your browser and enter the proxy settings as:
Proxy: localhost
Port: 8080

Click here to check, how to change browser's proxy settings.

Now run the site URL (configured under script recorder) in the browser and perform your steps.

After that view the Jmeter, all the requests are listed under "WorkBench>> HTTP(S) Test Script Recorder".

Like this:



No comments: