---
created_date:
executor:
status: # Pass | Fail | Partial
test_layer: # functional | e2e
scenario_id:               # filled when test_layer = e2e
feature_id:                # filled when test_layer = functional (single Feature)
feature_ids:               # filled when test_layer = e2e (comma-separated Features in scenario)
platform: # mobile-ios | mobile-android | web-chromium | web-firefox | web-webkit
environment: # dev | staging | prod
---

# Test Execution Report: {Scenario/Feature Name}

**Layer**: {{test_layer}} (Functional | E2E)
**Platform**: {{platform}}
**Environment**: {{environment}}
**Executor**: @[executor]
**Date**: [created_date]
**Status**: [status]

---

## Summary

| Metric | Value |
|--------|-------|
| Total Tests | {count} |
| Passed | {count} |
| Failed | {count} |
| Skipped | {count} |
| Flaky | {count} |
| Pass Rate | {X}% |
| Execution Time | {duration} |
| Environment | {{environment}} |

---

## Results by Test ID

| Test ID | AC Ref | Description | Result | Duration | Failure Reason |
|---------|--------|-------------|--------|----------|----------------|
| {PROJECT}_F{FEATURE}_AC1_FT_001_H | AC-1 | {description} | PASS | {Xs} | - |
| {PROJECT}_F{FEATURE}_AC1_FT_002_N | AC-1 | {description} | PASS | {Xs} | - |
| {PROJECT}_F{FEATURE}_AC1_FT_003_E | AC-1 | {description} | FAIL | {Xs} | {brief reason: element not found / assertion mismatch / timeout / ...} |

---

## Failed Tests

### {Test ID}: {Test Description}

**AC Reference**: AC-{N}
**Failure Reason**: {Brief description of WHY it failed — e.g.: "Button 'Submit' not visible after entering valid email", "API returns 401 instead of 200", "Timeout after 5s waiting for Home screen to load"}
**Error Type**: {Assertion Failure | Timeout | Crash | Element Not Found}
**Error Message**:
```
{Error stack trace or message}
```

**Screenshot/Video**: `artifacts/{platform}/{test-id}.png`

**Root Cause Analysis**:
> {Brief analysis of why the test failed}

**Severity**: {Critical | Major | Minor}
**Action Required**: {Fix code | Fix test | Investigate flaky | Skip with reason}

---

## Flaky Tests

| Test ID | Flaky Rate | Last 3 Runs | Suspected Cause |
|---------|------------|-------------|-----------------|
| {ID} | {X/3} | P/F/P | {Animation timing | Network | Race condition} |

---

## Platform Results

{{#if platform.startsWith("mobile")}}
### Mobile Platform Details

| Detail | Value |
|--------|-------|
| Device | {iPhone 17 Pro / Samsung S21} |
| OS | {iOS 18.x / Android 14} |
| App Build | {Debug / Release} |
| Detox Version | {version} |
| React Native | {version} |
| Node | {version} |

### Device-Specific Issues
| Issue | Device | Impact | Resolution |
|-------|--------|--------|------------|
| {Issue} | {Device} | {Tests affected} | {Fix/Workaround} |
{{/if}}

{{#if platform.startsWith("web")}}
### Web Platform Details

| Detail | Value |
|--------|-------|
| Browser | {Chromium / Firefox / WebKit} |
| Browser Version | {version} |
| Playwright Version | {version} |
| Viewport | {width}x{height} |
| Node | {version} |

### Browser-Specific Issues
| Issue | Browser | Impact | Resolution |
|-------|---------|--------|------------|
| {Issue} | {Browser} | {Tests affected} | {Fix/Workaround} |
{{/if}}

---

## Artifacts

| Type | Path | Description |
|------|------|-------------|
| Screenshots | `artifacts/{platform}/screenshots/` | Failure screenshots |
| Videos | `artifacts/{platform}/videos/` | Test execution recordings |
| Logs | `artifacts/{platform}/logs/` | Debug logs |
| HTML Report | `reports/{layer}-report.html` | Interactive HTML report |
| JUnit XML | `reports/{layer}-results.xml` | CI/CD compatible results |

---

## Test Coverage Analysis

### AC Coverage

| AC ID | FT Tests | E2E Tests | Covered | Status |
|-------|----------|-----------|---------|--------|
| AC-1 | F012_AC1_FT_001_H, F012_AC1_FT_002_N | E2E_001 (Step 1) | Yes | All Pass |
| AC-2 | F012_AC2_FT_001_H | E2E_001 (Step 3) | Yes | 1 Fail |
| AC-3 | - | - | No | Not tested |

### Uncovered Areas
- {List any ACs or scenarios not covered by this test run}

---

## Performance Metrics

| Step/Test | Duration | Threshold | Status |
|-----------|----------|-----------|--------|
| {Step 1: Login} | {1.2s} | {< 3s} | OK |
| {Step 2: Navigate} | {0.5s} | {< 2s} | OK |
| {Step 3: Load Data} | {4.1s} | {< 3s} | SLOW |
| Total Flow | {8.5s} | {< 15s} | OK |

---

## Blockers & Issues

| # | Issue | Severity | Impact | Status | Bug ID |
|---|-------|----------|--------|--------|--------|
| 1 | {Issue description} | Critical | {Tests blocked} | {Open / Resolved} | {BUG-XXX} |
| 2 | {Issue description} | Major | {Tests affected} | {Open / Resolved} | {BUG-XXX} |

---

## Recommendations

### Immediate Actions
- [ ] {Fix failing test / Fix code bug}
- [ ] {Create bug ticket for issue X}

### Follow-up
- [ ] {Investigate flaky test}
- [ ] {Add missing test coverage for AC-X}

### Maintenance
- [ ] {Update test data for next sprint}
- [ ] {Refactor helper function X}

---

## Sign-off

| Role | Name | Date | Approved |
|------|------|------|----------|
| QA | @[name] | [date] | [ ] |
| Tech Lead | @[name] | [date] | [ ] |
| PE (for Verify) | @[name] | [date] | [ ] |

**Deployment Readiness**: [ ] Ready [ ] Not Ready
**Reason (if not ready)**: {explanation}

---

## Changelog

| Date | Changes | Author |
|------|---------|--------|
| [created_date] | Initial execution report | @[executor] |
