You are on page 1of 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