Complete guide to using UITestFlow's user interfaces: Web UI, Terminal UI (TUI), and CLI.
UITestFlow provides three distinct user interfaces to accommodate different workflows and preferences:
- Web UI - Browser-based interface for visual test management and reporting
- Terminal UI (TUI) - Interactive terminal dashboard for local development
- CLI - Command-line interface for automation and CI/CD integration
| Interface | Best For | Features |
|---|---|---|
| Web UI | Team collaboration, visual reports, remote access | Full-featured dashboard, shareable reports, real-time updates |
| TUI | Local development, quick testing, terminal workflows | Fast navigation, keyboard-driven, low overhead |
| CLI | Automation, CI/CD, scripting | Scriptable, exit codes, multiple output formats |
# Start with auto-reload (development mode)
uitestflow serve --reload
# Or using make
make serveThe web UI will be available at:
- Web Interface: http://localhost:8080
- API Documentation: http://localhost:8080/docs
- OpenAPI Spec: http://localhost:8080/openapi.json
# Start in production mode with multiple workers
uitestflow serve --host 0.0.0.0 --port 8080 --workers 4
# Or using make
make serve-prod# Start all services including web UI
docker-compose up -d
# Start with UI development server (React hot reload)
docker-compose --profile ui-dev up -dThe main dashboard provides an overview of your testing activity:
- Test Run Statistics: Pass/fail rates, trends over time
- Recent Test Runs: Quick access to latest results
- Flaky Test Detection: Identifies unreliable tests
- Performance Metrics: Average execution times, success rates
Navigation: Click on the UITestFlow logo or "Dashboard" in the sidebar
Browse, create, and manage your test definitions:
- Browse Tests: View all test definitions with search and filters
- Create Test: Visual editor or YAML/JSON editor
- Import from PR: Import test instructions from GitHub PR descriptions
- Templates: Start from pre-built test templates
- Tags: Organize tests with custom tags
Navigation: Click "Tests" in the sidebar
Creating a Test:
- Click "New Test" button
- Choose format: Natural Language, YAML, or JSON
- Fill in test details
- Add steps and evaluators
- Save and run
Execute tests manually with real-time monitoring:
- Manual Execution: Run any test with custom parameters
- Real-time Progress: Watch test execution live
- Browser Preview: See browser state during execution (VNC-style)
- Pause/Resume/Abort: Control test execution
Navigation: Click "Run" in the sidebar, or click "Run" on any test
Running a Test:
- Select a test from the library
- Choose a profile (environment)
- Configure options (headless, screenshots, etc.)
- Click "Run Test"
- Monitor progress in real-time
View detailed test results and artifacts:
- Test Run Details: Full execution log with timestamps
- Screenshot Gallery: Browse captured screenshots with lightbox
- Video Playback: Watch recorded test sessions
- Console Logs: Searchable and filterable browser console output
- Network Activity: HAR viewer for HTTP requests/responses
- Playwright Trace: Integrated trace viewer for debugging
- Share Links: Generate shareable URLs for results
Navigation: Click "Results" in the sidebar, or click on any test run
Viewing Results:
- Click on any screenshot to view full-size with navigation
- Use arrow keys to navigate between screenshots
- Click "Download Video" to save the test recording
- Click "View Trace" to open Playwright's trace viewer
- Click "Share" to generate a public link (with optional password)
Manage environment configurations:
- View Profiles: List all configured environments
- Create/Edit: Add new profiles or modify existing ones
- Test Connectivity: Verify profile settings work
- Auth Configuration: Set up authentication methods
- Browser Settings: Configure browser options per profile
- Notifications: Set up alerts for test failures
Navigation: Click "Profiles" in the sidebar
Creating a Profile:
- Click "New Profile"
- Enter profile details (name, base URL)
- Configure authentication (form, OAuth, custom)
- Set browser options (headless, viewport, device emulation)
- Configure notifications (Slack, email, PagerDuty)
- Save and test connectivity
View testing metrics and trends:
- Coverage: Test coverage by feature/page
- Execution Trends: Success rates over time
- Performance Trends: Page load times, execution duration
- Cost Tracking: Resource usage and estimated costs
- Flaky Tests: Tests with inconsistent results
- Top Failures: Most frequently failing tests
Navigation: Click "Analytics" in the sidebar
Configure application settings:
- User Profile: Update your account information
- API Keys: Generate and manage API keys for programmatic access
- Organization: Organization settings (for team plans)
- Billing: View usage and manage subscription (for SaaS)
- Integrations: Connect with Slack, GitHub, etc.
Navigation: Click the user menu (top right) → "Settings"
Note: Screenshots will be added as the UI is developed
Dashboard View
[Placeholder for dashboard screenshot]
Test Runner
[Placeholder for test runner screenshot]
Results Viewer with Screenshots
[Placeholder for results viewer screenshot]
Status: The TUI is currently under development. This section documents the planned functionality.
# Launch TUI with default profile
uitestflow tui
# Launch with specific profile
uitestflow tui --profile staging
# Or using make
make tuiThe Terminal UI will provide a full-featured interactive dashboard in your terminal using the Textual framework.
-
Home Screen
- Quick actions (run recent tests, select profile)
- Test run history summary
- Profile selector
- System status
-
Test Explorer
- Browse test files with tree view
- Preview test definitions
- Run individual tests
- Edit tests (launches $EDITOR)
-
Test Runner
- Real-time test execution view
- Live screenshot preview (ASCII art or image)
- Console logs streaming
- Progress indicators and status
-
Results Viewer
- Test run history table
- Filterable results
- Drill-down to individual runs
- Screenshot gallery (terminal-compatible)
-
Browser Preview
- Live view of browser state
- DOM inspector (tree view)
- Network requests (table)
- Console logs (live streaming)
-
Configuration
- Profile management
- Settings editor
- Auth debugger
- System diagnostics
The TUI will support vim-style keybindings and standard navigation:
- Arrow keys or hjkl: Navigate up/down/left/right
- Tab / Shift+Tab: Switch between panels
- Enter: Select/activate item
- Space: Toggle/check item
- 1-6: Switch to screen by number
- /: Global search
- ?: Show help modal
- r: Run selected test
- e: Edit selected test
- q or Ctrl+C: Quit
Run a UI test from a test file.
uitestflow run <test-file> [OPTIONS]Options:
--profile, -p TEXT: Profile name from .uitest_profiles.yaml--headless/--headed: Run browser in headless mode (default: headless)--output, -o PATH: Output file for test results--format, -f [json|yaml|table|html]: Output format (default: table)--verbose: Show detailed output
Examples:
# Run with default settings
uitestflow run tests/login.yaml
# Run with specific profile in headed mode
uitestflow run tests/login.yaml --profile staging --headed
# Run and save results as JSON
uitestflow run tests/login.yaml --output results.json --format json
# Run with verbose output
uitestflow run tests/login.yaml --verboseExit Codes:
0: Test passed1: Test failed2: Error during execution
Start the FastAPI web server for the Web UI.
uitestflow serve [OPTIONS]Options:
--host, -h TEXT: Host to bind to (default: 0.0.0.0)--port, -p INTEGER: Port to bind to (default: 8080)--reload: Enable auto-reload for development--workers, -w INTEGER: Number of worker processes (production only)
Examples:
# Development mode with auto-reload
uitestflow serve --reload
# Production mode with 4 workers
uitestflow serve --workers 4
# Custom host and port
uitestflow serve --host 127.0.0.1 --port 3000Launch the interactive Terminal User Interface.
uitestflow tui [OPTIONS]Options:
--profile, -p TEXT: Default profile to use in TUI
Examples:
# Launch with default profile
uitestflow tui
# Launch with staging profile
uitestflow tui --profile stagingList all available profiles.
uitestflow profiles list [OPTIONS]Options:
--config, -c PATH: Path to profiles configuration file
Example:
uitestflow profiles listSample Output:
┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Profile ID ┃ Name ┃ Base URL ┃ Mode ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ local │ Local Development │ http://localhost:8080 │ headed │
│ staging │ Staging Environment │ https://staging.example… │ headless │
│ production │ Production Environ… │ https://app.example.com │ headless │
└────────────┴──────────────────────┴───────────────────────────┴──────────┘
Test connectivity for a profile.
uitestflow profiles test <profile-name> [OPTIONS]Options:
--config, -c PATH: Path to profiles configuration file
Example:
uitestflow profiles test stagingInitialize a new configuration file.
uitestflow config init [OPTIONS]Options:
--output, -o PATH: Output path for configuration file (default: .uitest_profiles.yaml)--force, -f: Overwrite existing configuration
Example:
uitestflow config initValidate configuration file.
uitestflow config validate [OPTIONS]Options:
--config, -c PATH: Path to configuration file
Example:
uitestflow config validateShow version information.
uitestflow version| Shortcut | Action |
|---|---|
? |
Show help modal |
n |
Create new test |
r |
Run selected test |
s |
Search tests |
Esc |
Close modal/cancel |
Left/Right Arrow |
Navigate screenshots |
Space |
Play/pause video |
/ |
Focus search bar |
| Shortcut | Action |
|---|---|
↑/↓ or k/j |
Navigate up/down |
←/→ or h/l |
Navigate left/right |
Tab |
Next panel |
Shift+Tab |
Previous panel |
Enter |
Select/activate |
Space |
Toggle |
1-6 |
Switch screen |
/ |
Search |
? |
Help |
r |
Run test |
e |
Edit test |
q |
Quit |
Ctrl+C |
Force quit |
The REST API is automatically documented using FastAPI's built-in OpenAPI support.
When the server is running:
- Interactive Docs (Swagger UI): http://localhost:8080/docs
- Alternative Docs (ReDoc): http://localhost:8080/redoc
- OpenAPI JSON: http://localhost:8080/openapi.json
Most API endpoints require authentication using a JWT token or API key.
curl -X POST http://localhost:8080/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "admin"}'Response:
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGc...",
"token_type": "bearer",
"expires_in": 3600
}Include the token in the Authorization header:
curl -X GET http://localhost:8080/api/tests \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGc..."Alternatively, use an API key:
curl -X GET http://localhost:8080/api/tests \
-H "X-API-Key: your-api-key-here"# List all tests
GET /api/tests
# Get test by ID
GET /api/tests/{test_id}
# Create new test
POST /api/tests
# Update test
PUT /api/tests/{test_id}
# Delete test
DELETE /api/tests/{test_id}# Run a test
POST /api/runs
{
"test_id": "uuid",
"profile": "staging",
"options": {
"headless": true,
"screenshots": true
}
}
# Get run status
GET /api/runs/{run_id}
# Abort running test
POST /api/runs/{run_id}/abort
# List all runs
GET /api/runs?limit=50&offset=0# Get test results
GET /api/runs/{run_id}/result
# List screenshots
GET /api/runs/{run_id}/screenshots
# Get specific screenshot
GET /api/runs/{run_id}/screenshots/{index}
# Download video
GET /api/runs/{run_id}/video
# Get Playwright trace
GET /api/runs/{run_id}/trace
# Get console logs
GET /api/runs/{run_id}/logs
# Get HAR file
GET /api/runs/{run_id}/har# List profiles
GET /api/profiles
# Get profile
GET /api/profiles/{profile_id}
# Create profile
POST /api/profiles
# Update profile
PUT /api/profiles/{profile_id}
# Test profile connectivity
POST /api/profiles/{profile_id}/test# 1. Create a test
TEST_ID=$(curl -X POST http://localhost:8080/api/tests \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Login Test",
"steps": [
{"action": "goto", "url": "https://example.com/login"},
{"action": "fill", "selector": "#username", "value": "admin"},
{"action": "fill", "selector": "#password", "value": "password"},
{"action": "click", "selector": "#login-button"}
]
}' | jq -r '.id')
# 2. Run the test
RUN_ID=$(curl -X POST http://localhost:8080/api/runs \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"test_id\": \"$TEST_ID\",
\"profile\": \"local\"
}" | jq -r '.id')
# 3. Poll for completion
while true; do
STATUS=$(curl -s http://localhost:8080/api/runs/$RUN_ID \
-H "Authorization: Bearer $TOKEN" | jq -r '.status')
echo "Status: $STATUS"
[ "$STATUS" = "completed" ] || [ "$STATUS" = "failed" ] && break
sleep 2
done
# 4. Get results
curl http://localhost:8080/api/runs/$RUN_ID/result \
-H "Authorization: Bearer $TOKEN" | jq .API requests are rate-limited to prevent abuse:
- Free tier: 100 requests/hour
- Team tier: 1000 requests/hour
- Enterprise: Custom limits
Rate limit information is included in response headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 995
X-RateLimit-Reset: 1634567890
- Use Tags: Organize tests with tags for easier filtering
- Share Links: Use share links for PR reviews and bug reports
- Keyboard Shortcuts: Learn keyboard shortcuts for faster navigation
- Save Filters: Bookmark common filter combinations
- Watch Live: Use real-time monitoring for long-running tests
- Learn Vim Keys: hjkl navigation is faster than arrows
- Use Search:
/to quickly find tests - Multiple Terminals: Run TUI alongside your editor
- Quick Actions: Use number keys (1-6) to switch screens instantly
-
Exit Codes: Check exit codes in scripts (
$?in bash) -
Output Formats: Use JSON/YAML for parsing in scripts
-
Profiles: Set up profiles for all your environments
-
Aliases: Create shell aliases for common commands
alias uit="uitestflow run" alias uil="uitestflow profiles list"
- API Keys: Use API keys instead of tokens for long-running integrations
- Pagination: Always use pagination for large result sets
- Webhooks: Set up webhooks for real-time notifications
- Retry Logic: Implement exponential backoff for retries
- Caching: Cache test definitions to reduce API calls
Server won't start
# Check if port is already in use
lsof -i :8080
# Try a different port
uitestflow serve --port 8081Can't connect to database
# Check database connection in docker-compose
docker-compose logs postgres
# Restart database
docker-compose restart postgresTUI doesn't display correctly
# Check terminal compatibility
echo $TERM
# Try with different TERM
TERM=xterm-256color uitestflow tui
# Update Textual (once available)
pip install --upgrade textual401 Unauthorized
- Check that your token hasn't expired
- Verify token is included in Authorization header
- Try generating a new token
429 Too Many Requests
- You've hit the rate limit
- Wait for the reset time (see X-RateLimit-Reset header)
- Upgrade to a higher tier for increased limits
500 Internal Server Error
- Check server logs:
docker-compose logs app - Verify database is running
- Check for configuration errors
- Getting Started Guide - Installation and setup
- Writing Tests - Test authoring guide
- CI/CD Integration - Automation setup
- API Reference - Complete API documentation
For more help, visit:
- GitHub Issues: https://github.com/preset-io/ui-test-flow/issues
- Discussions: https://github.com/preset-io/ui-test-flow/discussions
- Documentation: https://docs.uitestflow.io (coming soon)