0% found this document useful (0 votes)
34 views11 pages

Session Continuous Testing of Rest Api Via Postman/Newman in Azure Devops Build

The document discusses integrating API tests from Postman into Azure DevOps builds. It covers basics of Postman like creating REST API tests, adding pre-request scripts and response validation. It also covers using Newman to export and run API tests from the command line and generating test reports. Finally, it discusses creating an Azure DevOps build, integrating the Postman test suite, and publishing test results.

Uploaded by

Handoo Millee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views11 pages

Session Continuous Testing of Rest Api Via Postman/Newman in Azure Devops Build

The document discusses integrating API tests from Postman into Azure DevOps builds. It covers basics of Postman like creating REST API tests, adding pre-request scripts and response validation. It also covers using Newman to export and run API tests from the command line and generating test reports. Finally, it discusses creating an Azure DevOps build, integrating the Postman test suite, and publishing test results.

Uploaded by

Handoo Millee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Presents

Session Continuous Testing of Rest API via Postman/Newman in Azure DevOps Build

 Basics of Postman
 Creating REST API Test
 Adding Pre-request Test
 Response Validation
 Basic Newman
 Exporting and Running API Test
 Using NEWMAN CLI
 Test Reports
 Integration of API Tests in AzureDevops Build
 Creating Build
 Integrate the Postman Test Suite
 Publishing Test Results

Date: 07-March-2019 Time: 3 PM


Basics of Postman
Typical End to End Test Case flow
1. Create a new record
2. Verify record data
3. Update record
4. Verify updated record
5. Delete record
6. Verify data is deleted successfully
Basics of Postman
Creating REST API Test
• Create the request > Add pre-request script > Run the request > Analyze the response
Basics of Postman
Postman Collection
• Create collection
• Create folders in collection
• Arrange requests in collection in logical sequence
• Manage collection
• Run collection
• Export collection
Basics of Postman
Postman Variables
• Variables types in Postman:
• Environment variables
• Global variables
• Collection variables

• Setting up and getting variables


Basics of Postman
Environments
• Create environment
• Use environment
• Delete environment
• Export environment
Basics of Postman
Tests
• Tests at request level
• Tests at folder level
• Tests at collection level
• Use of script snippet
Basics of Newman
• Install node.js
• Install Newman
• Export collection
• Export environment (if being used)
• Run command line:
newman run CollectionName.json –e EnvironmentName.json
• Get and Export Report
Integration of API Tests in AzureDevops
Build
Integration of API Tests in AzureDevops
Build
Integration of API Tests in AzureDevops
Build

You might also like