Mastering API Testing With Python

Course Features

Course Details

Section 1: Introduction to the course
Introduction

Section 2: Prepare Our Tools
Summary of Tools we will use and why
Install webserver and database on our local machine (AMPPS)
Installing WordPress on local machine
Installing WooCommerce (our e-commerce) Plugin (key and secreate)
Installing WooCommerce Python Client
Installing MySQL WorkBench

Section 3: WooCommerce Settings and Documentation
Configuring WooCommerce API
WooCommerce Official Documentation Review

Section 4: Test Structure and Organization
Project Structure
Create our structure

Section 5: Custom tools (scripts we will use for DB and API)
REST API Module: Create ‘class’ and test the API
REST API Module: ‘POST’ and ‘GET’ methods
DB Connection Module: connect and ‘SELECT’ statement
DB Connection Module: ‘UPDATE’ statement

Section 6: TEST CASES
PRODUCTS endpoint > introduction to the 'products' endpoint
PRODUCTS endpoint > Positive TC-1 : create payload & make api call
PRODUCTS endpoint > Positive TC-1 : verify the response
PRODUCTS endpoint > Quick manual check the db for the created product
PRODUCTS endpoint > Positive TC-1 : verify info in the DB
PRODUCTS endpoint > Negative TC-1: empty payload
PRODUCTS endpoint > Negative TC-2: missing ‘title’ parameter
PRODUCTS endpoint > Negative TC-3: empty string for ‘title’ parameter
PRODUCTS endpoint > Negative TC: verifications function for negative test
PRODUCTS endpoint > Negative TC-3 continue: empty string for ‘title’ parameter

Section 7: TEST RUNNER TOOL “PY.TEST”
Introduction to "py.test"

Section 8: "CUSTOMERS" endpoint test (API to create new customer)
CUSTOMERS endpoint > Intro to ‘customers’ endpoint
CUSTOMERS endpoint > create random user information
CUSTOMERS endpoint > positive test, create payload and make API call
CUSTOMERS endpoint > positive test, verify API response
CUSTOMERS endpoint > SQL to verify customer in db
CUSTOMERS endpoint > function to get customer info from db
CUSTOMERS endpoint > create helper module, move random generator function
CUSTOMERS endpoint > Positive TC verify customer created in db (with assert)
CUSTOMERS endpoint > Positive TC verify customer created in db (with if-else)

Chapter 9: Miscellaneous
Data Loader usage for financial modules
Project documentation
Sample Resume preparation
Interview question and answers
ADI awareness and testing screens documentation
This course does not have any sections.

More Courses by this Instructor