9 programs
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →This page lists Uncodemy's Postman API Testing notes, each as its own file. Postman is a tool for sending API requests and writing automated checks. Core features are collections, environments with variables, test scripts, the collection runner and the Newman command-line runner.
Each resource is a separate file. Choose the one that matches what you need.
Covers collections, environments, and writing your first test scripts in Postman.
Download Set 1Focuses on the collection runner, Newman for CI/CD, and mocking servers.
Download Set 2Practice-oriented notes with common mistakes to avoid, chaining requests, and negative testing.
Download Set 3Key tools and features within Postman for API testing.
| Feature | What it does |
|---|---|
| Collection | A saved group of requests, organised in folders |
| Environment and variables | Switch base URLs and tokens between dev, test and production |
| Pre-request script | Code that runs before a request, for example to set a value |
| Tests tab | Scripts that check the response |
| Collection runner | Run a whole collection, optionally with data files |
| Newman | Command-line runner for collections, used in CI |
| Mock server | Simulated responses for an API that is not ready |
Check status, body field and response time.
pm.test('Status is 200', function () {
pm.response.to.have.status(200);
});
pm.test('Response has an id', function () {
const json = pm.response.json();
pm.expect(json).to.have.property('id');
});
pm.test('Responds within 800 ms', function () {
pm.expect(pm.response.responseTime).to.be.below(800);
});
Follow these steps to build and run your Postman tests.
{{baseUrl}}.Watch out for these common pitfalls when testing with Postman.
Prefer guided learning? Explore the Software Testing course or ask for a free demo.
This material is for learning and revision. It is not a certificate, a degree or a promise of a job, and technology changes, so check official documentation for the latest details. Spot an error? Write to info@uncodemy.com and the trainer team will review it.