Create test case instances and test cases

A test case instance is one specific combination of values from your test sheet. Tosca Cloud generates one test case from each instance.

This topic covers both process-based and template-based test case design.

Before you start

To create test case instances, you must be an administrator or contributor.

Also, your test sheet must be ready. Your chosen test case design solution determines the definition of "ready".

Please choose your use case:

Understand test case instances

You have a test sheet with attributes and instances. So far, so good!

Test sheet with 3 attributes (Name, Email, Register). Name has 3 instances with different names, Email has 3 instances with different emails, Register has one instance with the value {Click}.

Test sheet with multiple attributes and attribute instances

Now, you need to define how you want to combine all these attribute instances. For example:

  • You want one test case instance that uses the value of instance 1 for Name, the value of instance 2 for Email, and the value of instance 2 for Register button.

  • You want another test case instance that uses the value of instance 2 for Name, the value of instance 2 for Email, and the value of instance 1 for Register button.

  • And so on.

In essence, you define variations of input values:

Multiple test case instances. Each test case instance uses different attributes instances for the attributes in the test sheet.

Multiple test case instances

Create test case instances

Tosca Cloud offers different ways to create test case instances: 

  • Generate test case instances in bulk, based on an algorithm of your choice. This is the most useful method most of the time. Here, Tosca Cloud combines your attribute instances automatically and creates a full set of test case instances.

  • Create test case instances manually. This is useful when you just need a small number of very specific combinations.

Please choose your use case:

Generate test cases

How you generate test cases depends on your chosen test case design solution:

  • If you use template-based test case design, you'll go to your template, link your test sheet and generate your test cases.

  • If you use process-based test case design, select Publish to generate your test cases. You can find them in Build > All assets.

What's next

Your next step depends on your approach:

  • If you use template-based test case design, make sure you linked your test sheet and generated your test cases. After that, it's time for a few trial runs.

  • If you use process-based test case design, it's time for a few trial runs of you bulk-created test cases. This helps you find and fix issues, so you can make your tests as stable and reliable as possible.