How to download Jmeter ?

It is very easy to download and run Apache Jmeter tool on windows. First of all i would like to introduce to you about Apache Jmeter is open source performance testing tool. Using this tool you can test the performance of Web Application and API.

Step to Install and run Jmeter tool:

  1. For running Jmeter tool on windows operating System you must have install java (JDK8 for current Jmeter version) in your operating system Click here to download JDK for windows and all operating system. If you have 32bit OS the install Windows x86 if you have 64bit OS  then install Windows x64.
  2. After Java installation Open command prompt and type java -version and user should get version as below in figure.how-to-install-java
  3. After java installation you should set java path in system variables for setting java path in system variables go to control Panel > System and Security > System and Click on Advanced System Setting after that click on Environment Variables now double click on path under System variables after that paste the java path (C:\Program Files\Java\jdk1.7.0_21\bin) after placing semicolon at last and click on OK.
  4. Now Click here to download Jmeter. there are two kind of Keys But you have to download Binaries and in binaries you have to download apache-jmeter-version.zip.

how-to-download-jmeter

4. Now extract apache-jmeter folder from .zip file and open bin folder in bin folder ‘Double click’ on jmeter.bat file and you can get the GUI of jmeter.

How to get ‘token’ for API ?

You can get token for API from two ways:

  1. First is when you will sigh up in to a website the  website will provide the ‘token’ via email or on same website in any section.
  2. API owner will proved you a some keys and their values that you have to fill in for x-www-form-urlencoded as followstoken

After that you have to go to Headers TAB and need to set headers as follows

how-to-set-headers-in-postman-tool

This request will be POST request and you will get a JSON response  that will look like.

json-response-token

Now you can fetch acces_token from JSON response and use it for further endpoints.

What is endpoint in API ?

postman

First of all we need an end point and Postman tool. That end point will look like http://www.abc.com/name . So name will call as an ‘end point’. By using ‘name’ end point at last in URL it will give the full detail of any person whose name will pass at the place of ‘name’ .

Suppose i will pass the name ‘xyz’ then i can get the full detail of xyz (if API was developed to provide full detail by using ‘name’ end point).