---
title: Importing Postman requests to Octoperf
url: https://blog.octoperf.com/importing-postman-requests-to-octoperf/
date: '2020-07-01'
authors:
- onedil
categories:
- Tutorials
tags:
- Tutorial
- Postman
- API
- JMeter
- Performance Testing
description: How to import postman requests to OctoPerf? This blog post is a step by step tutorial.
---

# Importing Postman requests to Octoperf

You may have spent a considerable amount of time configuring Postman requests for your in-house API tests, and you wish to use them without having to create them again from scratch on Octoperf.

That's one of the many situations where Octoperf's compatibility with Jmeter is going to come in a handy.

!!! warning
    A new and faster way to import Postman Collections has been implemented in Octoperf.
    
    You can find more information [here](https://api.octoperf.com/doc/design/create-virtual-user/import-postman-collection).

## Postman to Jmeter

The first step will be to convert your requests into a JMeter-friendly format, using Postman Code Generation Snippet :

![savecode](https://blog.octoperf.com/img/blog/postman/savecode.jpg)


Select 'Curl' and in the settings, disable the multiline option :

![codeline](https://blog.octoperf.com/img/blog/postman/codeline.jpg)

Your curl request should look something like this :

```bash
curl --header "Authorization: Bearer <apiKey>" -v -X POST https://api.octoperf.com/runtime/scenarios/run/<scenarioId>
```

Open JMeter, create a "Thread Group" that will host all your requests, and in the "Tools" Menu select "Import from Curl" :

![importcurl](https://blog.octoperf.com/img/blog/postman/importcurl.jpg)

Paste your Curl request and click on "Create Test Plan"

![importedcurl](https://blog.octoperf.com/img/blog/postman/importedcurl.jpg)

When you're finished importing all your requests, save your JMeter project locally.

You're almost there ! Time to go on OctoPerf.

## Jmeter to OctoPerf 

You can now create your virtual User by importing the JMeter project file (.jmx) :

![creatvuser](https://blog.octoperf.com/img/blog/postman/creatvuser.jpg)

Your requests will then appear in your Virtual User :

![octoperfrequest](https://blog.octoperf.com/img/blog/postman/octoperfrequest.jpg)

Now you can unit test your API calls using Octoperf's interface .

## Validate your API Calls

Click on the right side panel to validate your calls :

![validate](https://blog.octoperf.com/img/blog/postman/validate.jpg)

You can know check the response for each one of your calls :

![validate2](https://blog.octoperf.com/img/blog/postman/validate2.jpg)


You did it ! **You can now modify your requests, launch load tests and analyse them directly on OctoPerf.**
