'Postman collection to jmeter script - unable to convert API tests

enter image description here

I am having a collection having the shown API. When I convert this API using loadium it not converting it's tests to assertions. is there any way to do it?



Solution 1:[1]

I don't think there is a tool which will analyze the custom code you produced using Postman API as you can create arbitrary crazy logic there so you can get HTTP Request samplers but not the assertions.

You will have to add Response Assertion or JSON Assertion or if you prefer keeping assertion logic as the code - JSR223 Assertion but unfortunately there is no automated way of converting Postman assertions to JMeter ones as of now.

Solution 2:[2]

In JMeter here is what you can do:

  • Use Recording Template: Menu File > Templates... > Select recording template and confirm
  • Go to HTTP(S) Test Script Recorder element and click on start button

If Postman uses HTTPs add the JMeter certificate generated in jmeter/bin folder to Postman keystore or disable SSL Verification.

In Postman configure the proxy to point to JMeter which listens on:

  • Host:localhost
  • Port:8888

Run your Postman script and it will be recorded in JMeter

Solution 3:[3]

Loadium have an new Postman to JMeter converter:

https://loadium.com/postman-to-jmeter-converter

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T
Solution 2 UBIK LOAD PACK
Solution 3 BatuhanZafer