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

Why Jmeter is best option for Performance Testing?

There are multiple tools in market for performance testing of any software but Jmeter is the best solution among all of them due to some reason listed below 1) Jmeter is the open source application so users who use this application will not to pay anything. 2) You can use Jmeter for performance of any web application,  Databases and Web Services (REST and SOAP APIs). 3) Jmeter have the user friendly UI component so it is very easy to use. 4) Jmeter can be used to simulate to put maximum number of concurrent users on a server, network or object to test its strength or to analyze overall performance under different load types. 5) Jmeter also use for functional testing for static( JavaScript and HTML) and dynamic( JSP, Servlets and AJAX) resources. 6) Jmeter provides Verity of graphical representations for performance report so it is easy to understand.

How You Can Test Database?

Now we know the Database Testing which you can learn in my last article. In this article we will discuss about the steps that need to following to test any Database. Database Tester should have some basic knowledge regarding SQL Command like DDL (create/drop),  DML (Insert/Delete/Update) and DCL (Grant/Revoke).

Causes of Software Defects

It is practically impossible that developer develop a bug free software and that software we can deliver without Testing. If the complexity of the software increased then there must be bugs that can harm the users who will use that software.