POSTMAN Collection to .jmx(JMeter) File Conversion

Mousume Haque
3 min readJan 23, 2020

--

As there is no suitable add-ons or third party software to convert POSTMAN API Collection to JMeter(.jmx) file so it’s a challenging task. In this situation LOADIUM development team come up with a solution which convert Postman collection to Jmeter jmx file named postman2jmx.

You can find the project from GitHub by following link:

https://github.com/Loadium/postman2jmx

Let’s get started step by step:

Prerequisite:

postman2jmx requires Java8+ and Maven 3+.

Step 1: Install Git in your system:

Installation Guide Link:

https://www.linode.com/docs/development/version-control/how-to-install-git-on-linux-mac-and-windows/

Step 2: Now clone or download the project.

Command: $ git clone https://github.com/Loadium/postman2jmx.git

Step 3: Install JDK and add/update the JAVA_HOME variable to JDK installation folder.

JDK Download Link:

https://www.oracle.com/technetwork/java/javase/downloads/index.html
JAVA_HOME Environment Variable Set Up

Step 4: Download Maven and add ‘MAVEN_HOME’ and ‘M2_HOME’ Environment Variables to maven installation folder.

Maven Download Link:

https://maven.apache.org/download.cgi
MAVEN_HOME and M2_HOME Environment Variable Set Up

Step 5: Include ‘maven/bin’ directory in ‘PATH’ system variables.

To run maven from command prompt, this is necessary. Update the PATH variable with ‘Maven-installation/bin’ directory.

System Variable Set Up

Step 6: Now build the project. Go inside the folder where you cloned the repository previously and Shift + right click then open in powershell.

OR,

Command:$ cd postman2jmx

Build Command:$ mvn package

Project Build

Step 7: After build, go to the Postman2Jmx folder. It is located under the target folder.

Command: $ cd target/Postman2Jmx

Target Folder

Step 8: To convert your postman json collection file to the jmx file execute the following command.

Command: $ java -jar .\Postman2Jmx.jar my_postman_collection.json my_jmx_file.jmx

NOTE: You have to specify the .jar file in this command and if your POSTMAN API Collection is saved in other driver or folder then put the directory path along with file name for both POSTMAN API Collection and JMeter(.jmx) file.

Example: $ java -jar .\Postman2Jmx.jar E:\Postman_Collection\my_postman_collection.json E:\Jmeter_jmx_Files\my_jmx_file.jmx

Converted to .jmx File

--

--

Mousume Haque
Mousume Haque

Written by Mousume Haque

Innovative and professional Software Testing & Quality Assurance Engineer with 8+ years hands on experience in testing of web applications & mobile application.

Responses (1)