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

What is API?

In general way, API (Application Programming Interface) is the intermediate software which is useful for two applications to communicate. API is the tool which is used for interaction of two applications. If developer developing any software which have multiple blocks (Modules) than developer use APIs to put them together.

Smoke Testing

In Smoke Testing, Testing team check the key feature or key bugs of the software. Smoke testing ensure that critical functionality of the software is working fine.If key features are not working then it is no needed to test the overall functionality because it is just waste of time. In Smoke Testing, test team check the basic feature of the software and if basic feature is not working it means software is broken very badly and further testing is unnecessary. If Smoke Testing failed then it is declared that build is unstable and revert back to developer team until smoke test is pass.

Difference between Error, Bug, Defect and Failure

Error: Any mistake in the coding called error. The mistake may be Syntax error, Logical errors or other GUI errors lead errors in any software. These are from developer side. Defect: The error which made by developer and during testing, Tester is able to find that errors,  means if actual result deviated from expected result then that error called defects. This is caught by testers. Bug: The defect which is developed by tester team, if expected by the developer team then that defect called an bug. Failure: If the Software does not meet the client requirement then this is called failure of the software.