Skip to content

Instantly share code, notes, and snippets.

@up1
Last active April 30, 2025 16:39
Show Gist options
  • Save up1/490d0dd5e19297a923ffce2d144d28a5 to your computer and use it in GitHub Desktop.
Save up1/490d0dd5e19297a923ffce2d144d28a5 to your computer and use it in GitHub Desktop.
Robot Framework Dashboard
# 1. ติดตั้ง
$pip install robotframework-dashboard
# 2. Run test
$robot demo.robot
# 3. Generate report
$robotdashboard -o output.xml
======================================================================================
____ ___ ____ ___ _____ ____ _ ____ _ _ ____ ___ _ ____ ____
| _ \ / _ \| __ ) / _ |_ _| _ \ / \ / ___|| | | | __ ) / _ \ / \ | _ \| _ \
| |_) | | | | _ \| | | || | | | | |/ _ \ \___ \| |_| | _ \| | | |/ _ \ | |_) | | | |
| _ <| |_| | |_) | |_| || | | |_| / ___ \ ___) | _ | |_) | |_| / ___ \| _ <| |_| |
|_| \_\\___/|____/ \___/ |_| |____/_/ \_|____/|_| |_|____/ \___/_/ \_|_| \_|____/
======================================================================================
1. Database preparation
created database: 'robot_results.db'
======================================================================================
2. Processing output XML(s)
Processing output XML 'output.xml'
ERROR: you are probably trying to add the same output again, UNIQUE constraint failed: runs.run_start, runs.full_name
Processed output XML 'output.xml' in 0.0 seconds
======================================================================================
3. Listing all available runs in the database
Run 0 | 2025-04-30 23:36:04.463201 | Demo
======================================================================================
4. Removing runs from the database
skipping step
======================================================================================
5. Creating dashboard HTML
created dashboard '/result/robot_dashboard_20250430-233908.html' in 0.0 seconds
*** Test Cases ***
Test Case 1
FAIL This test case is expected to fail
Test Case 2
SKIP This test case is skipped
Test Case 3
Pass Execution This test case is expected to pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment