Workflows
Overview
A Workflow is a sequence of connected test scripts and actions that execute in a defined order. It's the core execution unit in Test Orchestration where you orchestrate multiple test steps, define conditional logic, and manage data flow between tests.
🔄 Workflow vs Script
Think of a workflow as an automated test script—but instead of writing code, you visually connect test nodes together. No coding experience required!
What is a Workflow?
A Workflow in Test Orchestration is:
A visual automation sequence - Connect test scripts using a node-based interface
An executable unit - Can be run on-demand or scheduled
A reusable component - Can be used as sub-workflows in other workflows
A container for logic - Includes conditional execution, retries, and error handling
A data conduit - Passes data from one test to the next
Workflow Anatomy
Workflow: "E-Commerce User Journey"
├── Start Node
├── Node 1: API - Create User Account
├── Node 2: Web - User Login
├── Node 3: Web - Browse Products (Conditional)
├── Node 4: Mobile - Add to Cart
├── Node 5: API - Process Payment
├── Node 6: Wait - 5 seconds
├── Node 7: API - Verify Order Status
└── End NodeWorkflow States
A workflow can exist in different states:
Draft
Under development, not ready for execution
Edit, Delete, Publish
Active
Published and ready to execute
Run, Schedule, Edit, Archive
Archived
No longer in active use but retained
Restore, View, Delete
In Progress
Currently executing
View Progress, View Logs
Completed
Finished execution
View Results, Rerun
Creating a Workflow
Step-by-Step Guide
1. Start New Workflow
Open your Project
Click Create Workflow (or + New Workflow)
Choose creation method:
From Scratch - Build from blank canvas
From Template - Use pre-built patterns
From Existing Workflow - Duplicate and modify
2. Configure Basic Details
Workflow Name - Descriptive name (e.g., "Complete Purchase Flow")
Description - What this workflow tests
Tags - For organization and filtering (optional)
Example:
payment,smoke,regression
3. Set Workflow Parameters
Timeout - Maximum execution time before auto-stop
On Failure - What happens if a step fails:
Stop Workflow
Continue to Next Step
Skip to Error Handler
Retry Logic - Automatic retry settings
4. Add the First Node
Click Add Node or + button on canvas
Select node type:
Test Script (Web, Mobile, API, Desktop)
Action (Wait, Retry, Stop, Send Email, etc.)
Configure the node
Click Add
5. Connect Additional Nodes
Click + Add Node again
Select the next node
Configure it
The connection is created automatically
Repeat for all steps
6. Review and Publish
Click Review
Check:
All nodes are connected
Parameters are correct
No orphaned nodes
Click Publish
Workflow is now active and ready to run
Workflow Components
Node Types
Test Nodes (Execute Test Scripts)
Web Test Scripts
Mobile Test Scripts
API Test Scripts
Desktop Test Scripts
Action Nodes (Workflow Control)
Wait - Pause execution for a specified duration
Retry - Retry a failed node
Stop - End workflow execution
Send Email - Send notification emails
Data Hub - Access and manipulate shared data
Comment - Add documentation
Conditional Nodes
If-Then - Conditional branching
Switch - Multiple conditional paths
Node Configuration
Each node contains:
Input Parameters
Test data required by the node
Can be static values or dynamic variables
Execution Settings
Timeout for this node
Skip conditions
Error handling
Output Mapping
What data to capture from node results
Available to downstream nodes
Data Flow in Workflows
Understanding Data Propagation
Data flows through your workflow from node to node:
Using Output Variables
Node Output Variables
Referenced as:
${NODE_1.OUTPUT_FIELD}Example:
${NODE_1.user_id}
Project Variables
Referenced as:
${PROJECT.VARIABLE_NAME}Example:
${PROJECT.BASE_URL}
Workflow Variables
Custom variables defined within the workflow
Referenced as:
${WORKFLOW.VARIABLE_NAME}
Environment Variables
Environment-specific values
Referenced as:
${ENV.VARIABLE_NAME}
Workflow Execution
Running a Workflow
On-Demand Execution
Open the workflow
Click Run or Execute
Optional: Override parameters
Click Start Execution
Monitor progress in real-time
Scheduled Execution
See Scheduler documentation for detailed scheduling setup.
Quick start:
Open workflow
Click Schedule
Set frequency (One-time, Daily, Weekly, Monthly)
Set time and days
Click Save Schedule
Monitoring Execution
During workflow execution:
Real-time Progress - Watch nodes execute
Node Status - Green (passed), Red (failed), Yellow (running), Gray (skipped)
Execution Timeline - See timing for each node
Live Logs - View detailed execution logs
Stop Execution - Click stop to end workflow
Execution Results
After execution completes:
Summary - Overall status, pass/fail, execution time
Node Details - Status and results for each node
Data Captured - Output values from each node
Logs - Detailed execution logs
Screenshots - Visual outputs if applicable
Performance Metrics - Timing and resource usage
Workflow Management
Editing a Workflow
Open the workflow
Click Edit
Make changes:
Add/remove nodes
Modify connections
Update parameters
Adjust logic
Click Save Draft to save without publishing
Click Update to publish changes
📝 Draft vs Published
Save as draft to work on changes without affecting existing executions. Publish when ready to make changes live.
Duplicating a Workflow
To create a copy of an existing workflow:
Open the workflow
Click Options (three dots)
Select Duplicate
Enter new workflow name
Click Create
The duplicate is created as a draft and can be modified independently.
Archiving a Workflow
To remove a workflow from active use:
Open the workflow
Click Options
Select Archive
Confirm archival
Archived workflows:
Don't appear in active workflow list
Cannot be executed
Can be restored later
Retain full history
Deleting a Workflow
To permanently delete a workflow:
Open workflow
Click Options
Select Delete
Confirm deletion
⚠️ Warning: Irreversible Deletion
Deletion is irreversible and all execution history is lost. Consider archiving instead if you might need this workflow later.
Workflow Best Practices
Design Principles
Single Responsibility
Each workflow should test one primary feature or scenario
Create separate workflows for different test scenarios
Reusability
Design workflows to be reusable across test suites
Use variables instead of hardcoded values
Clear Naming
Use descriptive workflow names
Include what is being tested
Example: "User Registration with Email Verification"
Error Handling
Always define what happens on failure
Use try-catch patterns with error handlers
Log errors for debugging
Documentation
Add descriptions to complex workflows
Use comments in nodes to explain logic
Document expected inputs and outputs
Performance Optimization
Minimize Wait Times
Use only necessary wait steps
Optimize timeouts
Sequential Execution
Use sequential nodes for clarity
Speeds up overall execution
Resource Efficiency
Don't run unnecessary steps
Use conditional logic to skip unneeded tests
Limit Workflow Scope
Don't create overly complex workflows
Break into smaller workflows if needed
Advanced Workflow Features
Conditional Execution
Execute different paths based on conditions:
See Conditional Execution for details.
Independent Paths
Run multiple nodes in optimized sequence:
See Conditional Execution for details.
Sub-Workflows
Nest workflows within workflows for reusability:
Error Handling
Define what happens when nodes fail:
Continue - Continue to next node despite failure
Retry - Automatically retry the node
Skip To - Jump to specific node
Stop - End workflow execution
Alert - Send notification
See Error Handling for details.
Workflow Versioning
Automatic Versioning
Test Orchestration automatically versions workflows:
Each publish creates a new version
Previous versions are retained
Can view execution history per version
Accessing Version History
Open workflow
Click Versions (or History)
See list of all versions with:
Version number
Publication date
Author
Description
Click version to view or restore
Summary
Workflows are the core execution unit in Test Orchestration
Nodes are connected to create execution sequences
Data flows from node to node through output variables
Workflows can be scheduled for automated execution
Advanced features support conditional logic and error handling
Related Topics
Creating Workflows - Getting started guide
Nodes and Steps - Understand workflow components
Execution Flow - How workflows execute
Data Propagation - Pass data between steps
Scheduler - Automate workflow execution
Advanced Topics - Conditional logic and error handling
Next: Learn about the building blocks of workflows in Nodes and Steps.
Last updated