Import test cases from Postman
How to create a HyperTest session using postman collections?
Concepts
Before you get started with importing postman data, you should be familiar with the following concepts:
Session - A set of requests fired in a particular order.
Session Differentiators - A value that categorizes a request into a session. This value is typically derived from specific headers, IP of the request. Learn more abut it here.
Postman - An API platform for developers to design, build, test, dcocument their APIs.
Request - An HTTP request consists of An HTTP method, a verb (like GET , PUT or POST ) that describes the action to be performed.
Postman Collection - Popular way of grouping requests for readable documentations.
Postman Folder - Organizes requests within a collection. Learn more about it here.
How to get started?
First thing you need is HyperTest installed. Learn about HyperTest here
Get up and running
Quick Setup - Install, deploy and mirror traffic to HyperTest.
Working with HyperTest
Dashboard - HyperTest has an easy to use interface.
Transform your postman data to Session
HyperTest organizes requests having the same request header 'x-ht-session-id' into the same session.
Import Postman Request
Please make sure that mirroring is setup for your application. \
Create a new session by providing x-ht-session-id in header of the Postman request.\
Click on send. ****
View your session in the HyperTest dashboard \
Import Postman Collection/Folder
Please make sure that mirroring is setup for your application. \
Navigate to pre-requests section of the folder/collection. \
Set pre-requests.
pm.request.headers.upsert({key:'x-ht-session-id',value:'<session-id>'})
\
For a collection\For a folder\
In the same window, click on Run button.\
Ensure the run order, environment. \
Click on run. This will take you to run results window.\
View the session in HyperTest dashboard. \
References
Last updated