Week 14: Automation, Scripting & Testing
os/pathlib, subprocess, selenium, logging, pytest, automation scripts
📌 Strategy & Study Guidance
Review previous week before starting new content.
Blocks
Block 131
Monday
Filesystem Automation: os & pathlib
Block 132 Mondaysubprocess: Running System Commands
Block 133 TuesdayLogging Best Practices
Block 134 TuesdayException Handling in Scripts
Block 135 WednesdaySelenium: Browser Automation
Block 136 WednesdaySelenium: Form Filling & Data Extraction
Block 137 ThursdayTesting with pytest
Block 138 ThursdayBuilding a Reusable Automation Script
Block 139 FridayScheduling & Daily Report Script
Block 140 FridayMini-Project: Full Automation Script
📺 20 Curated YouTube Videos
▶ pytest Tutorial
Tech With Tim
▶ Python Setup
Corey Schafer
▶ Unit Testing Python
Tech With Tim
▶ Automation Scripts
Keith Galli
▶ pytest Fixtures
Tech With Tim
▶ pathlib os
Corey Schafer
▶ Test Automation
Tech With Tim
▶ Python Scripting
Tech With Tim
▶ pytest Advanced
Tech With Tim
▶ subprocess
Corey Schafer
▶ Mocking Tests
Tech With Tim
▶ Selenium
Keith Galli
▶ pytest Complete
Tech With Tim
▶ Logging Python
Corey Schafer
▶ CI CD Python
Tech With Tim
▶ Automation
Corey Schafer
▶ Testing Patterns
Tech With Tim
▶ Scripting
Tech With Tim
▶ Python Testing
Tech With Tim
▶ Best Practices
Corey Schafer
📋 Cheat Sheets
Quick Reference
Core syntax and common patterns for this week. Week 14 - os/pathlib, subprocess, selenium, logging, pytest, automation scripts
API Cheat Sheet
Key functions and methods. Week 14 - os/pathlib, subprocess, selenium, logging, pytest, automation scripts
Best Practices
Style and performance tips. Week 14 - os/pathlib, subprocess, selenium, logging, pytest, automation scripts
💻 Code Snippets
Basic Example
# Week 14: Automation, Scripting & Testing
# Basic pattern for this topic
result = process(data)
Common Pattern
# Week 14: Automation, Scripting & Testing
# Frequently used pattern
Quick Start
# Week 14: Automation, Scripting & Testing
# Minimal working example
📊 Visualizations & Diagrams
Concept Diagram
flowchart LR A[Input] --> B[Process] B --> C[Output]
Paste into mermaid.live to render
Workflow
Step 1 -> Step 2 -> Step 3