filmov
tv
Postman Beginners Crash Course - Part 4 | Command Line & Data Driven Testing
Показать описание
Hi, I am Raghav and today we will learn -
How to run Postman from Command line
How to do data driven testing in Postman
Commandline
-----------------------
Newman is a command-line collection runner for Postman
node -v
node --version
npm -v
Check if node and npm are installed
For Mac using brew
Step 3 : Install Newman
npm install -g newman
Step 4 : Export collection as json file
Step 5 : On cmd goto location of collection json file
Step 6 : Run command
Data Driven testing
How to refer data from CSV and JSON files
Demo in the video
1. How to get data from CSV file
2. How to get data from JSON file
3. How to Run data-driven API Requests
4. How to Run data-driven Tests
5. How to run data-driven tests from the command line
You can use data variables in all places and in the exact way you can use environment variables, except in pre-request and test scripts.
________ ONLINE COURSES TO LEARN ________
------------ UI TESTING ------------
------------ API TESTING ------------
------------ MOBILE TESTING ------------
------------ CI | CD | DEVOPS ------------
-------------VIRTUALISATION-------------
------------ VERSION CONTROL SYSTEM ------------
------------ PERFORMANCE TESTING ------------
------------ PROGRAMMING ------------
------------ IDE ------------
------------ BUILD TOOLS ------------
------------ OTHERS ------------
Never stop Learning,
Raghav
----------- Connect with Raghav ------------
Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can
How to run Postman from Command line
How to do data driven testing in Postman
Commandline
-----------------------
Newman is a command-line collection runner for Postman
node -v
node --version
npm -v
Check if node and npm are installed
For Mac using brew
Step 3 : Install Newman
npm install -g newman
Step 4 : Export collection as json file
Step 5 : On cmd goto location of collection json file
Step 6 : Run command
Data Driven testing
How to refer data from CSV and JSON files
Demo in the video
1. How to get data from CSV file
2. How to get data from JSON file
3. How to Run data-driven API Requests
4. How to Run data-driven Tests
5. How to run data-driven tests from the command line
You can use data variables in all places and in the exact way you can use environment variables, except in pre-request and test scripts.
________ ONLINE COURSES TO LEARN ________
------------ UI TESTING ------------
------------ API TESTING ------------
------------ MOBILE TESTING ------------
------------ CI | CD | DEVOPS ------------
-------------VIRTUALISATION-------------
------------ VERSION CONTROL SYSTEM ------------
------------ PERFORMANCE TESTING ------------
------------ PROGRAMMING ------------
------------ IDE ------------
------------ BUILD TOOLS ------------
------------ OTHERS ------------
Never stop Learning,
Raghav
----------- Connect with Raghav ------------
Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can
Комментарии