Enable Combinatorial Testing

We have moved

This is a legacy version of Copado Robotic Testing help. This page will not be updated anymore.

See https://docs.copado.com/ for up-to-date documentation.

Combinatorial testing is based on the premise that many errors in software can only arise from the interaction of two or more parameters. Basically you need to define these interacting parameters.

Let’s say you have a CRM system say Salesforce for which you have built a new integration and you would like to test that this integration works end-to-end faultlessly. The first step is typically to fill a form and enter first name. In your automated test case using PaceWords this step will be

TypeText    First name    John

Now, if you want to generate test cases using combinatorial testing, you would need to provide a data set for the test case. The alternative data values are expressed in the QWords test cases using “list notation” where alternative values are placed between square brackets and separated by commas as follows:

TypeText    First name    [John, Jane, Harry, Mary]

The above defines that there are 4 alternative data values for First name, namely John, Jane, Harry and Mary. And in a test case the example below we will get 6 test cases with data values (John, Johnson, Copado), (Jane, Janeson, Copado), (Jane, Johnson, ACME), (John, Janeson, ACME), (John, Janeson, Inc Incorporated) and (Jane, Johnson, Inc Incorporated).

My test case
    [Tags]      testgen       nwise=2
    TypeText    First name    [John, Jane]
    TypeText    Last name     [Johnson, Janeson]
    TypeText    Company       [Copado, ACME, Inc Incorporated]