Introduction To The Course
  • Welcome To The Course
  • Table Of Content
  • Preview of End Result
  • About The Test Site and Ecommerce API
Installation and Setup of Tools
  • Intro to Installation and Setup Section
  • Installing Python On Mac
  • Installing Python On Windows
  • How to Use Virtual Environment
  • Create Virtual Environment For The Course
  • Install IDE (PyCharm)
  • PyCharm Project & Virtual Environment
  • Options To Run WordPress
  • Running WordPress with MAMP
  • Install "Local" For WordPress
  • Create A Site
  • Using "localhost" instead of Site Name
  • Install AMPPS & WordPress
  • Install Plugin "WooCommerce"
  • Adding Sample Products to the Site
  • Setup and Verify API with Postman and Python
  • Install MySQL WorkBench & Connect to Database
Crash Course on PyTest
  • Introduction to PyTest
  • Selecting Tests By Markers (Tags)
  • Setup & Teardown (fixtures)
  • PyTest HTML Report
Build Framework - Project Structure
  • How To Use The Provided Code
  • Project Structure Overview
Test Case Discussion
  • TCID-29 - Discussion - "create a customer" endpoint
  • TCID-29 - Design Test Code Template
Design Helper Classes
  • Helper - Email & Password Generator (TCID-29)
  • Helper - Crete Customer (TCID-29)
  • Helper - 'POST' request (TCID-29)
  • Authenticate our API call
  • Helper - Credentials
  • TCID-29 Verify 'Create Customer' API Response
Environment Variables & Database Helper Class
  • Setting Environment Variables
  • Customers DAO
  • Helper - Database Connect & SQL
  • TCID-29 Verify Database
Test Case ID 30
  • TCID-30 - Discussion - List All Customers Endpoint
  • TCID-30 - List All Customers (GET Call)
More Practice Test Cases
  • TCID-47 - Create Customer Existing Email (negative test)
  • Run All Customers Test Cases
  • Assignment - Automate TCID-24 (Get All Products)
  • TCID-24 Get All Products - Implementation
  • TCID-25 Get Product By ID
  • TCID-26 Create Simple Product
  • TCID-51-1 List Product With Filter "after"
  • TCID-51-2 List Product With Filter "after" - db verification
  • TCID-51-3 List Product With Filter "after" - more pages
More Practice: Using Python Library by WooCommerce
  • WooCommerce Python Library Intro
  • TCID-48-1 Place Guest Order - Discussion
  • TCID-48-2 Place Guest Order - Read Payload From File
  • TCID-48-3 Place Guest Order - Make The Call
  • TCID-48-4 Place Guest Order -Validate Response
  • TCID-48-5 Place Guest Order -Validate db
  • TCID-49 Place Order With New Customer
  • Setup Example with TCID-49
More Practice: Setup & Database Configurations
  • Use Configs for Database Connections
  • TCID-55-1 Update Order Status - Cancelled
  • TCID-55-2 Update Order Status - Cancelled
  • TCID-55,56,57 Parametrization
  • TCID-58 Update Order Status - Invalid Status
  • TCID-59 Update Order - "customer_note"
EXERCISES
  • Exercise TCID-61: Verify update 'regular_price' updates the 'price' field
  • Exercise TCID-63: Verify update 'sale_price > 0' will set field 'on_sale'=True
  • Exercise TCID-64: Verify update 'sale_price=" "' will set field 'on_sale'=False
  • Exercise TCID-65: Verify update 'sale_price' updates the 'sale_price' field
  • Exercise TCID-60: Order with 50% off coupon should reduce total by 50%
  • Exercise TCID-37: Create a new coupon with 'discount_type=percent'
  • Exercise TCID-38: Create a new coupon with 'discount_type=fixed_cart'
  • Exercise TCID-39: Create a new coupon with 'discount_type=fixed_product'
  • Exercise TCID-40: Create a new coupon with 'discount_type='
Running Tests In Docker Container
  • Docker Section Introduction
  • Create Dockerfile & Build Image
  • Start Container and Try Test Run - unsuccessful
  • Connect to Database From Container
  • Use Docker Volumes To Avoid Image Rebuild
  • Make API Cal from Container
  • Run Tests From Outside Container
  • Wrapper Script To Run Tests In Container
  • Color Output From Docker Run
  • Using Debugger (pdb) With Docker
  • Timestamp The Report
  • Docker Section Summary
BONUS SECTION: SQL (MySQL) Crash Course
  • Introduction to the SQL Crash Course