Flow Execution
Last updated
Last updated
When running a flow within the flow editor for debugging purposes, it can be very convenient to replace certain parameters for a single run. Instead of changing the parameter value in the global parameters window, you can simply click the 'run with overrides' button (), and then set values for a specific execution. This won't affect the global parameters, providing a quick and simple way to debug your flows. i.e.:
This is the global parameter: , and we want to check something specific and change the value of email
for only one run. We'll use the 'run with overrides' button to execute it and reset its value. For example:
Flow Labeling is an efficient way to save time and enhance productivity during application testing. By executing only relevant flows, you can avoid redundant testing and concentrate on critical aspects.
To utilize Flow Labeling, simply label your flows with specific keywords for identification. Then, assign these labels to relevant sections of your application's CI. This ensures that only relevant flows are executed when changes are made.
Testing and validation are crucial in product and software development, but maintaining this process amidst diverse requirements can be challenging. Flow labeling is essential for developers to effectively test every aspect of their product.
You may need to test multiple operations or ensure your application loads correctly. However, each update or bug fix undergoes a categorical test scenario that may not encompass all test cases from your Test Suite/Plan.
The following Test Suite represents a user management application with 6 different flows. Each flow is labeled "operation" or "sanity" or both.
Make sure your flow is attached to the CI in order to run it based on labels.
Before you start, install the Loadmill NPM Package.
Now that we've labeled our flows correctly, we'll run them according to label we pass in to the command line. We want to run all flows within a test suite that are labeled "sanity".
Let's quickly tour what values you need before running our tests.
<test-suite-id>
Navigate to your test suite page and the suite id is located inside the url
<token>
The token is generated from the access token page
Open your CLI and run the following command:
To conclude, flow labels allow us to focus our tests based on our needs regardless of the amount of test cases we have on our test suites or test plans. We could schedule daily test runs on "sanity" labeled flows and run "operation" flows for every time we push an update to our code.
Creating and assigning labels to flows is a straightforward process with Loadmill. Just select the flow and click on the label icon to assign a label of your choice. You can either assign a pre-made label or create a new one yourself.