Overview
Test a Dify workflow before publishing using the Test Run panel.
Access Test Run
Two methods to open Test Run panel:
Method 1: Click Button
- In workflow editor, locate the top toolbar
- Find "Test Run" text with keyboard shortcut hint (Option+R)
- Click directly on "Test Run" text (not nearby icon buttons)
Method 2: Keyboard Shortcut
- Press
Option + R(Mac) orAlt + R(Windows)
Test Run Panel Structure
Panel appears on the right side with tabs:
| Tab | Purpose |
|---|---|
| INPUT | Enter test input values |
| RESULT | View output after execution |
| DETAIL | Execution details |
| TRACING | Step-by-step trace of workflow |
Provide Input Values
Input fields depend on START node configuration.
For Image Input
When workflow requires image (e.g., OCR workflows):
- text "image" - Field label
- button "Local upload Choose File" - Upload from computer
- button "Paste file link" - Use image URL
For Text Input
Input field for each variable defined in START node.
Execute Test
- Fill all required input fields
- Click button "Start Run"
- Wait for execution to complete
- Check RESULT tab for output
Common Issues
Clicking Wrong Button
The toolbar area has multiple icon buttons:
- Environment Variables button (opens env panel)
- System Variables button (opens sys vars panel)
- Test Run button (the text "Test Run" itself)
Tip: Click directly on "Test Run" text, not on nearby icon buttons.
Missing Required Input
If START node has required fields (e.g., "image required"), you must provide input before running.
Related Toolbar Elements
Near Test Run button:
- "Scroll to selected node" - Center view on selected node
- "Publish" button - Deploy workflow to production
- Zoom percentage
- Auto-save status
- Publication status ("Unpublished" or "Published X days ago")