Create and add test cases

The Create and add test cases option enables you to create new functional test cases and add them to the selected test suite.

Before you begin
You need to have a test suite created. To learn how, see Create a test suite.

To create test cases:

  1. Open the test suite you want add test cases to.
  2. In its Details section, click +.
  3. Select Create and add test cases.
    The Create and add test cases window opens. It’s divided into two sections. The first one is where you create the test cases. The other, Tools, contains references you can use while creating test cases: Variables, Hostnames, and Rules.
    In the Variables tab, you can check available variables, edit, or delete them. The Hostnames tab lists all hostnames assigned to the property. And the Rules tab includes the JSON representation of the entire property version’s rule tree. To learn more about these tabs, check Concepts.
  4. Add a test request. You can either create a new test request or select an already existing one.
OptionHow to
Create a new test requesta. Enter the test request’s URL. The URL must contain the protocol, hostname, path, and any applicable string parameters. For example
b. To add a variable to the URL, enter {{, then the name of the variable, and close it with }}.
c. Optional: Add Keywords, which are helpful for filtering the test requests later in the main list.
d. Optional: Add, remove, or modify the Request headers of the request.
e. Click Continue.
Select an existing test requesta. Click the select existing hyperlink.
b. Select a test request from the list.
c. Click Select. All the fields are automatically filled in.
d. Click Continue.
  1. Add conditions. You can create conditions manually, reuse an already created condition, or, if your test suite is associated with a config version, generate the condition using the property version’s rule tree. You can mix these methods. There are no limits on the number of conditions you can create.
OptionHow to
Create a condition manuallya. Click +.
b. Select the category of the condition.
c. Select the condition statement.
d. Add the required values, if applicable.
e. Click Add to list.
Select an existing conditiona. Click the select existing hyperlink.
b. Select a condition from the list.
c. Click Select. All the fields are automatically filled in.
Create a condition using the rule treea. Go to the Rules tab in the Tools section of the window. At this stage, the JSON tree becomes interactive. Note that each behavior is highlighted.
b. Double click a behavior for Test Center to create a condition from it.
  1. After you created all required conditions, click Continue.
  2. Select variations for the test cases.
    a. Select at least one IP version.
    b. Optional: If your test suite is associated to a config version, you can create test case variations for other hostnames associated to the config version's property in Property Manager. To do this, select Other hostnames in this config version. The list of hostnames in the Hostnames tab, in the Tools section, becomes interactive. Double click a hostname to select it. For hostnames with *, you need to enter at least one value for the domain's wildcard.
    c. Click Continue.
    Test Center calculates how many test cases can be generated based on your selections. To make sure you’re adding the right test cases, click the hyperlink and deselect those you don’t want to add to the default test suite.
  3. Click Add.
    Test Center creates and adds the new test cases to the test suite.
  4. Optional: Continue modifying the selections to create more test cases.
    a. Click Edit next to each section to do it. With each modification, Test Center recalculates the number of new test cases you can add to the test suite.
    b. Click Add to add them to the test suite.
  5. After you add all needed test cases, click Close.
    Test Center added all functional test cases to your test suite. You can now view their details by hovering over them in the Included test cases tab.

What to do next
You can run a test for a test suite. If your test suite is associated with a config version or a requirement, you can run a regression test or test the requirement respectively.

If your test suite is not yet associated to a requirement or a config version, check Create a requirement and Add and configure config versions.