Define the business flow
Business flows are a core component of process-based test case design. They give you a visual map of the key processes and flows you want to test. Ultimately, you'll use this map to bulk-create your test cases.
This topic explains how to work with business flows in different contexts:
-
How to populate an empty business flow that you create yourself, in Tosca Cloud.
-
How to finalize a business flow that's based on a business process model in SAP.
Before you start
To create and work with business flows, you must be an administrator or contributor.
Create and view business flows
You can find all business flows in Prepare > Business flows.
-
To create a new business flow, select Create business flow.
-
To open an existing business flow, select it from the list.
Work with business flows
Once you have a business flow, you can start adding things to it.
Please choose your use case:
You've just created a new business flow in Tosca Cloud. Now, define the activities that users can do in your application and the paths they take through it.
Business flow best practices
Before you start, take a moment to review these best practices. They'll help you design better business flows.
-
Reflect real business processes. Design business flows based on user journeys that are important to your organization, so that your tests provide meaningful coverage.
-
Start with your happy paths. Keep it simple, especially at the start of the process, so that you don't get bogged down or overwhelmed. You can always add edge cases later on.
-
Break down flows into clear, reusable activities. Define meaningful, self-contained activities, so that you can reuse them in multiple paths and keep your maintenance down.
-
Create self-contained, end-to-end business flows. Always keep resulting test cases in mind, so that your business flow generates test cases that meet test case best practices.
-
Review with stakeholders. Get feedback along the way, so that your business flow reflects important user journeys and business goals.
Define activities
To capture what users can do in your application, define activities:
-
In your business flow, select
Add activity. Keep these guidelines in mind:
-
DO give each activity a unique name. We also recommend that you select Edit details and add a brief description. This helps you keep a good overview while you plan activities.
-
DON'T create duplicate activities for tasks that appear in multiple user journeys, such as sign-in steps. The same activity can be part of multiple paths.
-
-
Prepare the test actions that happen in an activity. To do so, create reusable test steps with business parameters.
The business parameters will later become attributes in your test sheet. So, you need to create one business parameter for every attribute you want in your test sheet.
-
Link the test action to the activity:
-
In the activity, select Link automation.
-
In the activity pane, select a reusable test step from the dropdown list. Then, Save.
-
Define paths
A path combines multiple activities into a sequence you want to test and defines the test structure for this sequence. Tosca Cloud will create a test sheet for every path.
To define a path, follow these steps:
-
In your business flow, select Create path.
-
Select all activities you want to add to your path. Then, Save.
Tosca Cloud displays all paths in the
Paths panel of your business flow. To view a specific path, simply select it from the list.
Tosca Cloud has just added a business flow to your workspace. Now, define test actions and sequences in this flow.
Define activities
Tosca Cloud creates an activity for each solution activity in SAP. You need to specify what happens in each activity:
-
Prepare the test actions that happen in an activity. To do so, create reusable test steps with business parameters.
The business parameters will later become attributes in your test sheet. So, you need to create one business parameter for every attribute you want in your test sheet.
-
Link the test action to the activity:
-
In the activity, select Link automation.
-
In the activity pane, select a reusable test step from the dropdown list. Then, Save.
-
Define paths
A path combines multiple activities into a sequence you want to test and defines the test structure for this sequence. Tosca Cloud will create a test sheet for every path.
To define a path, follow these steps:
-
In your business flow, select Create path.
-
Select all activities you want to add to your path. Then, Save.
Tosca Cloud displays all paths in the
Paths panel of your business flow. To view a specific path, simply select it from the list.
What's next
Tosca Cloud automatically creates a basic test sheet for every path in your business flow. Now, build those test sheets.