Section 7: Writing Automation Scripts with AI
Deciding which test cases are worth automating and which should stay manual
Turning test cases into scripts with AI and reviewing what it produced
Choosing selectors that survive interface changes
Structuring scripts so they can be maintained rather than thrown away
Lab: convert test cases into automation scripts and run them against a real system
Section 8: Keeping Scripts from Turning Brittle
Why test scripts break so often and how to prevent it while writing them
Handling waits and page state so results stay stable
Dealing with flaky tests and deciding whether to fix or delete them
Using AI to analyze why a script failed and propose a fix
Lab: repair a script broken by an interface change
Section 9: Risk-Based Regression Selection
Why running the full regression suite every time stops being viable
Analyzing which parts of the system a code change touches
Using AI to propose the test set to run from the change list
Tiering suites into smoke, critical path and full regression
Scheduling runs across the development cycle to fit the time available
Section 10: Failure Analysis and Defect Reports
Reading a failure and separating a real bug from a problem in the script itself
What a defect report needs so a developer can act without asking questions back
Using AI to write clean reproduction steps and assign severity
Grouping bugs that share a root cause to avoid duplicate reports
Lab: write defect reports from the real test results produced in class
Section 11: Quality Reporting and the Limits of AI
Quality metrics that mean something versus metrics that make teams game the numbers
Summarizing quality status for management without technical detail
Where AI typically fails in testing, such as test cases that look good but test nothing
Reviewing AI output before use and keeping accountability with people
Lab: produce a one-page quality report for the test cycle just completed
Section 12: Capstone and Real-World Adoption
Capstone: plan and test one feature set from requirement analysis through to the report
Presenting the reasoning behind your scope and test order
How to bring this process back to your team, starting where it pays off fastest
Workshop: present your work and review the approach with the instructor