Postman Beginners Crash Course - Part 5 | API Testing | Chain API Requests | Authorizations
How To Chain API Requests ======================== 1) Create Get Request (Listing all users) https://reqres.in/api/users?page=2 2) Create Global variable "username" is xyz at collection level 3) Write Test script in Request1 to update "username" jsonData=JSON.parse(responseBody) value=jsonData.data[0].first_name pm.globals.set("username", value); 4) Create Put Request (Update user by Name) https://reqres.in/api/users/2 5) Parameterize username varaible in to 2nd request(PUT) "name": "{{username}}" 6) Run Collection which contains both the requests =================================================== Authorizations --------------- 1) Basic Auth: https://postman-echo.com/basic-auth username: postman password: password 2) API Key Auth Get Request: https://api.openweathermap.org/data/2.5/forecast/daily?q=Delhi&cnt=1 API Key/appid: fe9c5cddb7e01d747b4611c3fc9eaf2c 3) Bearer Token / OAuth 2.0 API Reference URL: https://developer.github.com/v3/repos/ Post Request: https://api.github.com/user/repos ######################### Udemy Courses: ######################### Manual Testing+Agile with Jira Tool ************************************ ► https://lnkd.in/gNqhEq9K Selenium with Java+Cucumber ******************************** ► https://lnkd.in/g5YcAQyR Selenium with Python & PyTest ******************************** ► https://lnkd.in/gvrpyYan Selenium with python using Robot framework **************************************** ► https://lnkd.in/gxsDf8zR API Testing(Postman, RestAssured & SoapUI) ***************************************** ► https://lnkd.in/gHKQ2v2e Web & API Automation using Cypress with Javascript ******************************************** ► https://lnkd.in/gcZz5Psx Playwright with Javascript ************************** ► https://lnkd.in/g-ePPav6 Jmeter-Performance Testing ************************ ► https://lnkd.in/gA3eiZPY SDET Essencials(Full Stack QA) ************************* ► https://lnkd.in/gmBc4-wD Appium-Mobile Automation Testing ************************************ ► https://lnkd.in/gi_UiRTA Java Collections ***************** ► https://lnkd.in/gZftiiEn Python Programming ********************* ► https://lnkd.in/ghP6WHQz Cucumber BDD Framework *************************** ► https://bit.ly/3F7d69r Protractor with Javascript *************************** ► https://lnkd.in/gZnJ2qsS #################################### Youtube Playlists: #################################### Manual Testing & Agile *********************** ► https://bit.ly/3ujvaYa ► https://bit.ly/3OYzxQj SQL ************************* ► https://bit.ly/3R6XjeG ► https://bit.ly/3nE0a1s ► https://bit.ly/3IeKuuJ linux & Shell Scripting ********************** ► https://bit.ly/3up1Z6a ► https://bit.ly/3nzvGxx Java ********************** ► https://bit.ly/3R9QfOs ► https://bit.ly/3AoRMKM ► https://bit.ly/3IbTTDn ► https://bit.ly/3ybXInv ► https://bit.ly/3yCoHdw Selenium With Java+Cucumber ******************************** ► https://bit.ly/3P2FMm4 ► https://bit.ly/3yhiIt4 ► https://bit.ly/3uokzet ► https://bit.ly/3a7XIND ► https://bit.ly/3umN2S9 ► https://bit.ly/3aar7GW ► https://bit.ly/3y9kD2S ► https://bit.ly/3uhLskn Python ******************************** ► https://bit.ly/3agNgU0 ► https://bit.ly/3NJNnoy ► https://bit.ly/2CTQ4mR ► https://bit.ly/3OIYWh1 Selenium With Python,Pytest&Behave *************************************** ► https://bit.ly/3OHHoC9 ► https://bit.ly/3IeNLdv ► https://bit.ly/2J4tPeT ► https://bit.ly/3ydSkAq Selenium With Python Using Robert Framework (Web&API Testing) ************************************************* ► https://bit.ly/3nUvlpr ► https://bit.ly/3nUvE3z API Testing (Postman,SoapUi,&Rest Assured) ********************************************** ► https://bit.ly/3OXacWY ► https://bit.ly/3yh0UhE ► https://bit.ly/3nC9DWQ ► https://bit.ly/3yGfhNS ► https://bit.ly/3OJa11H ► https://bit.ly/3P2slCC Mobile App Testing Appium **************************** ► https://bit.ly/3Al49HG Performance Testing Jmeter ******************************* ► https://bit.ly/3nz4fE7 Maven,Jenkins,Git,Github,CI/CD ******************************* ► https://bit.ly/3P16HPj ► https://bit.ly/3yhlUVA ► https://bit.ly/3afYfwT ► https://bit.ly/3yGzweG ► https://bit.ly/3yF73Ws ► https://bit.ly/3NCOmH7 SQL,DB Testing&ETL,Bigdata ******************************* ► https://bit.ly/3NKOcNY ► https://bit.ly/3OVpDyI ► https://bit.ly/3NEvUy0 ► https://bit.ly/3IryxlT ► https://bit.ly/3RkWBLh JavaScript Based Automation Tools ******************************** ► https://bit.ly/3nUx51X ► https://bit.ly/3AqI6Q0 ► https://bit.ly/3yeurbT ► https://bit.ly/3ujzpTK Selector Hub Tools ******************** ► https://lnkd.in/gfqbR5TC GraphQL ****************** ► https://lnkd.in/gZZNCc5q Cypress API Testing ******************** ► https://lnkd.in/gc2STVEm Cypress Web Testing ********************** ► https://lnkd.in/gW8SgMna Playwright with Javascipt ************************** ► https://lnkd.in/gQZwaaVD #APItesting #PostmanCours
How To Chain API Requests ======================== 1) Create Get Request (Listing all users) https://reqres.in/api/users?page=2 2) Create Global variable "username" is xyz at collection level 3) Write Test script in Request1 to update "username" jsonData=JSON.parse(responseBody) value=jsonData.data[0].first_name pm.globals.set("username", value); 4) Create Put Request (Update user by Name) https://reqres.in/api/users/2 5) Parameterize username varaible in to 2nd request(PUT) "name": "{{username}}" 6) Run Collection which contains both the requests =================================================== Authorizations --------------- 1) Basic Auth: https://postman-echo.com/basic-auth username: postman password: password 2) API Key Auth Get Request: https://api.openweathermap.org/data/2.5/forecast/daily?q=Delhi&cnt=1 API Key/appid: fe9c5cddb7e01d747b4611c3fc9eaf2c 3) Bearer Token / OAuth 2.0 API Reference URL: https://developer.github.com/v3/repos/ Post Request: https://api.github.com/user/repos ######################### Udemy Courses: ######################### Manual Testing+Agile with Jira Tool ************************************ ► https://lnkd.in/gNqhEq9K Selenium with Java+Cucumber ******************************** ► https://lnkd.in/g5YcAQyR Selenium with Python & PyTest ******************************** ► https://lnkd.in/gvrpyYan Selenium with python using Robot framework **************************************** ► https://lnkd.in/gxsDf8zR API Testing(Postman, RestAssured & SoapUI) ***************************************** ► https://lnkd.in/gHKQ2v2e Web & API Automation using Cypress with Javascript ******************************************** ► https://lnkd.in/gcZz5Psx Playwright with Javascript ************************** ► https://lnkd.in/g-ePPav6 Jmeter-Performance Testing ************************ ► https://lnkd.in/gA3eiZPY SDET Essencials(Full Stack QA) ************************* ► https://lnkd.in/gmBc4-wD Appium-Mobile Automation Testing ************************************ ► https://lnkd.in/gi_UiRTA Java Collections ***************** ► https://lnkd.in/gZftiiEn Python Programming ********************* ► https://lnkd.in/ghP6WHQz Cucumber BDD Framework *************************** ► https://bit.ly/3F7d69r Protractor with Javascript *************************** ► https://lnkd.in/gZnJ2qsS #################################### Youtube Playlists: #################################### Manual Testing & Agile *********************** ► https://bit.ly/3ujvaYa ► https://bit.ly/3OYzxQj SQL ************************* ► https://bit.ly/3R6XjeG ► https://bit.ly/3nE0a1s ► https://bit.ly/3IeKuuJ linux & Shell Scripting ********************** ► https://bit.ly/3up1Z6a ► https://bit.ly/3nzvGxx Java ********************** ► https://bit.ly/3R9QfOs ► https://bit.ly/3AoRMKM ► https://bit.ly/3IbTTDn ► https://bit.ly/3ybXInv ► https://bit.ly/3yCoHdw Selenium With Java+Cucumber ******************************** ► https://bit.ly/3P2FMm4 ► https://bit.ly/3yhiIt4 ► https://bit.ly/3uokzet ► https://bit.ly/3a7XIND ► https://bit.ly/3umN2S9 ► https://bit.ly/3aar7GW ► https://bit.ly/3y9kD2S ► https://bit.ly/3uhLskn Python ******************************** ► https://bit.ly/3agNgU0 ► https://bit.ly/3NJNnoy ► https://bit.ly/2CTQ4mR ► https://bit.ly/3OIYWh1 Selenium With Python,Pytest&Behave *************************************** ► https://bit.ly/3OHHoC9 ► https://bit.ly/3IeNLdv ► https://bit.ly/2J4tPeT ► https://bit.ly/3ydSkAq Selenium With Python Using Robert Framework (Web&API Testing) ************************************************* ► https://bit.ly/3nUvlpr ► https://bit.ly/3nUvE3z API Testing (Postman,SoapUi,&Rest Assured) ********************************************** ► https://bit.ly/3OXacWY ► https://bit.ly/3yh0UhE ► https://bit.ly/3nC9DWQ ► https://bit.ly/3yGfhNS ► https://bit.ly/3OJa11H ► https://bit.ly/3P2slCC Mobile App Testing Appium **************************** ► https://bit.ly/3Al49HG Performance Testing Jmeter ******************************* ► https://bit.ly/3nz4fE7 Maven,Jenkins,Git,Github,CI/CD ******************************* ► https://bit.ly/3P16HPj ► https://bit.ly/3yhlUVA ► https://bit.ly/3afYfwT ► https://bit.ly/3yGzweG ► https://bit.ly/3yF73Ws ► https://bit.ly/3NCOmH7 SQL,DB Testing&ETL,Bigdata ******************************* ► https://bit.ly/3NKOcNY ► https://bit.ly/3OVpDyI ► https://bit.ly/3NEvUy0 ► https://bit.ly/3IryxlT ► https://bit.ly/3RkWBLh JavaScript Based Automation Tools ******************************** ► https://bit.ly/3nUx51X ► https://bit.ly/3AqI6Q0 ► https://bit.ly/3yeurbT ► https://bit.ly/3ujzpTK Selector Hub Tools ******************** ► https://lnkd.in/gfqbR5TC GraphQL ****************** ► https://lnkd.in/gZZNCc5q Cypress API Testing ******************** ► https://lnkd.in/gc2STVEm Cypress Web Testing ********************** ► https://lnkd.in/gW8SgMna Playwright with Javascipt ************************** ► https://lnkd.in/gQZwaaVD #APItesting #PostmanCours