JMeter Recording and Testing without code.

  1. Open JMeter GUI

User can right click on the “Test Plan” menu then Select Non-test elements from the Add section. User can find “HTTP(S) Test script recorder which will help the user to record the request.

Before you do this you need to change the proxy server of goolge chrome.

Why setup a proxy server. Because when you send a request to “Microsoft.com” it will go an hit the server and display the website. Now we change the server and configure the server port in JMeter So that before send any request JMeter records first and website is loaded.

Setting up a proxy server.

Open Chrome setting and search for proxy. You can find the computer proxy setting configuration once you click on “Open your computer proxy settings”

You need to setup a proxy and save the setting. To check whether the proxy is setup or no. you need to load the any website in the browser and check. If the website is not getting loaded then the proxy server is successful.

You need to setup a proxy and save the setting. To check whether the proxy is setup or no. you need to load the any website in the browser and check. If the website is not getting loaded then the proxy server is successful.

Open the JMeter and Create a “HTTP(S) Test script recorder” and change the PORT in the request (underlined).

To record the scripts, do the following steps.

  1. Create a “Thread Group”
  2. Under the thread group add a ‘Simple Controller”
  3. Need to change the “Target Controller” and select the “Test Plan>Thread Group>Simple Controller”
  4. Click on the start button in “HTTP(s) Test script recorder”. (System will ask for permission just click on OK)
  5. Go to chrome and open “Microsoft.com”.
  6. Once the Page is loaded click on “Stop” button.
  7. Under “Simple Controller” you can find all the request from “Miscrosoft.com”
  8. Add “Listener” in the “Thread Group” to view the results.
  9. Select the “Thread Group” and change the number of user you want to test with.
  10. Click on the “Run Button (Green Icon)” to run the test.
  11. You can see the results in the “View Result Tree” and check whether the request is pass or fail (Green shows request is Successful and Red shows the request is not executed)
  12. On the Top right you can find how much is the time taken to run the test.

(You can do cleanup of the request’s under controller)

Purecane
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like