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 creating test case instances for your templates.

Before you start

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

Also, your test sheet must be ready:

  • The test sheet has at least one attribute with at least one attribute instance.

  • The test sheet doesn't have unsaved changes.

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:

What's next

Link your test sheet to your template and generate your test cases.