Every time you run a test case, a random, unique integer is generated (for example, 770250909). If in the Test Execution section of the Activation Test Case editor you leave the Primary Key Pattern field blank or enter {0}, the generated integer will be used as primary key to identify the test case (for example, 770250909). If you enter {1} as the pattern, the test case name will be used as primary key (for example, TESTCASE001).
If you enter {1}-{0} in the Primary Key Pattern field, the primary key be the name and generated integer concatenate (for example, TESTCASE001-770250909). You can concatenate other integers or letters (for example, a user name) with the basic patterns to build specific patterns for creation of primary keys. The following table shows some examples of patterns you could use for TESTCASE001 (and its generated integer) to create various primary keys.
Pattern | Generated integer | Primary Key |
---|---|---|
(blank) | 3782695 | 3782695 |
{0} | 3782695 | 3782695 |
{1} | 3782695 | TESTCASE001 |
{1}-{0} | 3782695 | TESTCASE001-3782695 |
USER | 3782695 | USER |
USER-{0} | 3782695 | USER-3782695 |
{1}-USER-{0} | 3782695 | TESTCASE001-USER-3782695 |