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.
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.
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.
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.

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
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.
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.
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.
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.

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
Here you can check and remove the extra recording which is not part of your test.
Comments
Post a Comment