Skip to main content

Record and Play Back in JMeter

In this section we will discuss about how to record a Test script than how we can play back that script in the browser. First we develop a  a Test Script than put a load of suppose 100 users and than run the test script again with this load while Test executing than we are getting result in performance matrices that how the Test performing in different number of users.
Now let see how we can record a script in JMeter Tool first then i will let you know that how you can play that recorded script in the browser so start with record the script.

Right Click on Test Plan -> Mouse hover on Add - > Mouse hover on Non Test Elements -> Select HTTP(S) Test script Recorder

In my last post, we provide you an idea that what is Non Test Elements. Recording component is not the part of Test.

Test Script Recorder, Test Plan, Test Plan Component, Performance Testing, Load Testing, JMEter

Here Port number is important which means whatever you record in this port number, JMeter will listen every action.

In Request Filtering Tab, You can select some Patterns which you want not to be part of your Test Script so that your script will be tight.

Above setting for the record a script from JMeter Tool now we need to do some setting in browser also . Please follow below steps.

Open the Firefox Browser -> Click on Options -> Search Network Settings -> Click on Settings -> Select Manual Proxy Configuration to set Port Number which we set for the JMeter Recording Tool.


Network Setting, Load Testing, Firefox Setting, JMeter, Record and Play Back

For running the Https website you need to install the certificate which will appear in JMeter window once you click on Start button to record the script and play over Firefox browser.

Certificate for https website, Load Testing, JMeter, Record and play Back, Firefox Setting

You need to install that certificate in your Firefox browser

Open the Firefox Browser -> Click on Options -> Search Certificates -> Click on View Certificate -> Click on Authorities -> Click on Import Button -> Go To JMeter Folder -> Select Bin Folder -> Select ApacheJMeterTemporaryRootCA -> click on all checkbox and click on Ok button.

Import Certificate, Certificate for https website, Load Testing, JMeter, Record and play Back, Firefox Setting
Setting part is completed , now for recording a script click on Start button -> Open your Firefox Browser -> Open any URL -> start performing Action -> Stop the Recording

You can see in below screenshot, how a script is saving in the JMeter tool

Recording a Script, Load Testing, JMeter, Record and play Back, Firefox Setting

Here you can check and remove the extra recording which is not part of your test. 

Comments

Popular posts from this blog

How to Put Load on a Script in JMeter

In last post we discussed about how to record a test script and Firefox settings to run the script. In this post we will discuss about how the Thread Group will work, how can we put n number of users to perform load testing, In JMeter by using Thread Group, we can create virtual users. Thread Group is a set of thread which work in same scenario. There are multiple thread group are available which is use to configure how the virtual users interest with the application, How much load maintain and till how much time load maintain.

How to take the Screenshot in Selenium WebDriver?

If we want to take the screenshot then we have to convert our WebDriver object into the screenshot object. we need to change the behavior of the drive to take the screenshot . We can do it by casting

JMeter Overview Description

In this article we will go through the multiple section of JMeter and describe the tool information. we will discuss about every component of JMeter tool in this Article so that you can hands on while working on script on JMeter about these components.