Use test case design
Test case design helps you build a better test suite.
This topic explains what makes test case design so important and lists all test case design solutions in Tosca Cloud. The Get Started section helps you put everything into action.
Why test case design matters
With test case design in Tosca Cloud, you'll work smarter, not harder:
-
Define your test structure once and then generate test cases from it. This helps you to create better test cases, faster.
-
Define inputs in a structured way, so that your tests cover all important scenarios. This improves your coverage.
-
Prevent duplicate or overlapping test cases with a more structured approach to creating tests. This helps you cut cost and effort for redundancies.
-
Update the structure instead of each individual test case. This simplifies maintenance.
-
Reuse your test structure for other features or versions. This helps you scale easily and reliably.
Test case design solutions in Tosca Cloud
Tosca Cloud supports different approaches to test case design.
Process-based test case design
For process-based test case design, you work with business flows. A business flow is a visual representation of the activities, journeys, or business processes in your application.
In essence, this approach means most of your effort occurs during the planning phase. Because business flows are visual, they make it easier to collaborate with stakeholders and connect testing to business goals. At the same time, they give you a clear and actionable structure for your test scenarios. And from this structure, you'll generate your test cases.
There are different ways to define business flows:
-
Create them from scratch, in Tosca Cloud.
-
Integrate with SAP Cloud ALM and reuse the business process models you already maintain there.
Template-based test case design
A template is a blueprint based on an existing test case. It tells Tosca Cloud how to generate separate test cases for each input. For example, if you want to test a feature with four different input values, you get four test cases from one template.
Because a template is like a test case, you maintain and update it the same way, in one place for all of your test case instances.
This approach works well when you have an existing test case and want to run it across multiple input values without building each test case manually.
Get started
Ready to start? Please choose your use case:
Get started with these simple steps:
-
Check out the key concepts of process-based test case design. They'll help you better understand your tasks.
-
Build your test sheet. Define the test structure and possible input values.
-
Create test case instances and test cases. Create variants of the test structure, each with different input values. Then, generate your test cases from them.
Get started with these simple steps:
-
Check out the key concepts of process-based test case design. They'll help you better understand your tasks.
-
If you haven't yet, set up the integration with SAP Cloud ALM.
-
Create the necessary test assets in SAP:
-
Create an automated test case (opens in new tab) and link it to your custom solution process. This automatically creates a business flow in Tosca Cloud.
-
Build your test sheet. Define the test structure and possible input values.
-
Create test case instances and test cases. Create variants of the test structure, each with different input values. Then, generate your test cases from them.
Get started with these simple steps:
-
Check out the key concepts of template-based test case design. They'll help you understand your tasks.
-
Create a test case. This will become your template, so make sure it covers the scenario you want to test.
-
Create a test sheet. Specify the variations of values you want to input into your application.
-
Create your template from your test case and link it to your test sheet. Then generate your test cases.