Usage Guide¶
This section provides detailed information on various ways to use YuanTest Playwright.
Table of Contents¶
- Web UI Usage - Detailed guide for Dashboard visualization interface
- CLI Usage - Detailed CLI command documentation
- CI/CD Integration - Integration into CI/CD pipelines
In-depth Guides¶
For deeper content on specific areas, refer to these guides:
- Flaky Test Management - Classification algorithm, root cause analysis, correlation analysis, trend tracking, quarantine strategy, health score, causal graph, parameter customization
- AI Diagnosis - Context enrichment, knowledge base, Agent reasoning, confidence calibration, streaming diagnosis, LLM configuration
Recommended Workflow¶
Development Phase¶
- Use Web UI for quick debugging
- Start Dashboard:
yuantest ui - Select tests to execute in the interface
- View test progress and results in real-time
-
Quickly identify failure causes
-
Use --grep to run specific tests
-
View detailed reports
- View test details in Dashboard
- View Trace files to analyze failure causes
-
View screenshots and videos
-
AI diagnose failed tests
- Click "AI Diagnosis" in Dashboard
- Or use CLI:
yuantest analyze --id <run-id> --ai
CI/CD Phase¶
-
Run full test suite via CLI
-
Check Flaky test health
-
Upload reports as artifacts
- GitHub Actions:
actions/upload-artifact -
GitLab CI:
artifacts -
Optional: Deploy Dashboard server
- Run
yuantest uion server - Team members can view historical reports anytime
Flaky Test Governance¶
-
Identify Flaky tests
-
Analyze root causes
-
Quarantine and monitor
- Quarantine Flaky tests in Dashboard
- Set monitoring thresholds and quarantine parameters
-
Periodically check health scores
-
Verify fixes