Test Case Writing Guidelines and Examples - Postman
Postman is an API platform for building and using APIs. This document shows how to writing a Postman test case in Testany.
Test case package - one zip file
Currently we are only support upload your local zip file to Testany, the zip file need contains at least one file:
Test case code file, like
hello-postman.postman_collection.json
hello-postman.postman_collection.jsonCODE{ "info": { "_postman_id": "2c19e161-6009-4237-8643-9c6df5b0c596", "name": "hello-postman", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "549544" }, "item": [ { "name": "website-active-check", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function(){", " pm.response.to.have.status(200);", "})" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{URL}}", "host": [ "{{URL}}" ] } }, "response": [] } ] }
zip all the related files as one zip file, in this case the test case package file is postman-test.zip

After you’ve successfully prepared the .zip
file, you will be able to go to register your test case on Testany Platform. Please refer to <Managing Test Case> for the registration step-by-step guide.