Visualize the export of test Results in Postman
We use Postman to test various APIs. To ease our lives, we create collections and save those collections along with various test cases which further can be integrated with DevOps or automation testing frameworks. Let us assume, we did some changes in API and that API should be backward compatible. In such cases, these collections can be used to test the old functionality is not broken. The results output from testing plays an important role in Software Development Lifecycle(SDLC). While using the Postman GUI, we can run the collections and it will give the response in the GUI layout.
To do so, we can make use of Postman Echo API and Visualizer.
Postman Echo API can be used to echo our JSON test results export and pm.visualizer.set() function under the test tab of the Postman request can be used to populate the echoed data in HTML tags and visualize it.
For this, we have created a sample request in the public collection under Postman Public workspace.
Steps to use
1. Click on Run in Postman Button
2. Fork or import the collection to your Postman workspace.
3. Open the request "visualize test results json"
5. Click on Send, to trigger the request to Postman echo API.
Resources:
- Sample JSON test results export data
- Postman Public Workspace
- Postman Echo API
- Visualizer documentation
Comments
Post a Comment