How to open JMeter to record a web application?





So far, you all are familiar with how to download jmeter and install. Now, I will take you through the concept "How to open Jmeter to record a web application?".

Well, Suppose, I want to record a web application using jmeter tool then the first thing I should check is its access. First I will check the access to web application by launching its URL in the browser. If it can be accessed in the browser, hope we can record the network traffic by jmeter.

What is required to access a web application?

Of course, a browser , URL and internet connection. Browser - you can have on your PC, URL - You can get this from your project team and Internet - Yes, this is main. How are you getting internet to your machine by which you are accessing the application.

What I meant to say is some applications can be accessed through open internet where as some applications only works with client proxy. Now, you need to check how you are accessing your application -- With proxy ? or without proxy?

To check this you can go to chrome settings --> Type "XY" in search --> Open proxy settings --> Then click on LAN settings --> See if the there is any proxy added and proxy server check box is checked.


If there is no proxy added, you are actually accessing your site without any proxy.

Now you have checked the connectivity to your application and its time to set up jmeter to record the same.

Depending upon the proxy, the way you open jmeter will impact the recording of application. 

Below are the ways to open JMeter if the application is accessed without Proxy:
  • Go to bin folder of Jmeter --> Double click on Jmeter.bat
  • Go to bin folder of Jmeter --> Hold Shift and right click the mouse --> Open command window here --> just type jmeter and hit enter

Below is the way to open JMeter if the application is accessed with Proxy:

Go to bin folder of Jmeter --> Hold Shift and right click the mouse --> Open command window here --> just type jmeter -H your proxy -P PORT -u username -a password -N localhost

where

H - Proxy address 
P - Port Number
u - Username
a - Password
N - Localhost


This is how we open Jmeter to start recording an application.

In our next post, we will discuss about how set up web test plan :)







No comments:

Post a Comment