$npx -y skills add aws-samples/sample-agent-skills-for-builders --skill end-to-end-testingSystematic E2E testing workflow with evidence capture and reporting. Use when running integration tests, validating complete user flows, capturing test evidence, or generating test reports.
| 1 | # End-to-End Testing |
| 2 | |
| 3 | Systematic E2E testing workflow for complete system validation with evidence capture. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference this skill when: |
| 8 | - Running integration or E2E tests |
| 9 | - Validating complete user flows |
| 10 | - Capturing test evidence (screenshots, logs) |
| 11 | - Generating test reports |
| 12 | - Documenting defects systematically |
| 13 | |
| 14 | ## How It Works |
| 15 | |
| 16 | ### Phase 1: Preparation |
| 17 | - Gather environment information |
| 18 | - Verify test credentials |
| 19 | - Set up test data |
| 20 | |
| 21 | ### Phase 2: Planning & Design |
| 22 | - Smoke testing |
| 23 | - Test case design |
| 24 | - Priority assignment |
| 25 | |
| 26 | ### Phase 3: Execution |
| 27 | - Execute test cases |
| 28 | - Capture evidence (screenshots) |
| 29 | - Document defects |
| 30 | |
| 31 | ### Phase 4: Pre-Reporting Validation (CRITICAL) |
| 32 | - **MANDATORY** before reporting |
| 33 | - Verify all evidence captured |
| 34 | - Validate defect documentation |
| 35 | - Cross-check test results |
| 36 | |
| 37 | ### Phase 5: Reporting |
| 38 | - Generate comprehensive reports |
| 39 | - Create HTML viewer |
| 40 | - Archive evidence |
| 41 | |
| 42 | ## Output Structure |
| 43 | |
| 44 | ``` |
| 45 | test-reports/ |
| 46 | └── YYYY-MM-DD_HHMMSS/ |
| 47 | ├── Test_Report_Viewer.html |
| 48 | ├── test-case-reports/ |
| 49 | ├── defect-reports/ |
| 50 | ├── test-summary-report.md |
| 51 | ├── screenshots/ |
| 52 | └── logs/ |
| 53 | ``` |
| 54 | |
| 55 | ## Usage |
| 56 | |
| 57 | ```bash |
| 58 | # Generate HTML report |
| 59 | python scripts/generate-html-report.py --input test-results/ |
| 60 | |
| 61 | # Validate test data |
| 62 | ./scripts/validate-test-data.sh |
| 63 | ``` |
| 64 | |
| 65 | ## Templates |
| 66 | |
| 67 | - [Defect Report Template](./assets/templates/defect-report.md) |
| 68 | - [Test Case Report Template](./assets/templates/test-case-report.md) |
| 69 | - [Test Summary Template](./assets/templates/test-summary-report.md) |
| 70 | |
| 71 | ## References |
| 72 | |
| 73 | - [Preparation](./references/preparation.md) |
| 74 | - [Planning & Design](./references/planning-design.md) |
| 75 | - [Execution](./references/execution.md) |
| 76 | - [Validation](./references/validation.md) |
| 77 | - [Reporting](./references/reporting.md) |