Working with Test Workflows
Test Workflows can be created and managed either through the Testkube CLI or from the Dashboard.
Since Workflows are ultimately stored as custom resources in your clusters (Read More), you can
also manipulate them directly using kubectl
, for example kubectl apply
can be used
to create a Workflow:
kubectl apply -f EXAMPLE_FILE.yaml
Using the CLI
The Testkube CLI allows managing Test Workflows in the similar way as was previously possible for Tests and TestSuites.
Create
testkube create testworkflow -f EXAMPLE_FILE.yaml
Get
The Test Workflow details can be displayed using testkube get testworkflow
command using the Test Workflow name:
testkube get testworkflow TEST_WORKFLOW_NAME
Filtering by Labels
Test Workflows can also be filtered using labels with --label
:
testkube get testworkflow --label example=label
Run
The Test Workflow can be run using the testkube run testworkflow
command using Test Workflow name:
testkube run testworkflow TEST_WORKFLOW_NAME
Optionally, the follow option can be used to watch execution and get the log summary directly:
testkube run testworkflow TEST_WORKFLOW_NAME -f
Delete
The Test Workflow can be deleted using the testkube delete testworkflow
command using the Test Workflow name:
testkube delete testworkflow TEST_WORKFLOW_NAME
Alias
tw
alias can be used instead of testworkflow
- for example:
testkube get tw
Testkube Dashboard
The Testkube Dashboard provides an easy management interface for your Workflows; select Test Workflows icon in the left toolbar:
which takes you to the Test Workflows Overview which allows you to browse, run and manage your available Workflows.
There is also a dedicated wizard for creating Workflows:
The wizard is described in detail in the Dashboard Documentation