Create test cases based on a config version

Learn how to create functional test cases and add them to a default test suites based on the config version configuration.

Before you begin

You need to have your config version added to Test Center. To learn how, see Add and configure config versions.

After you add a config version to Test Center, it’s automatically associated with a default test suite. The version is either empty or includes test cases inherited from the previous config version of the particular property added to Test Center. You can use this procedure for both cases.

Creating test cases based on the config version is similar to the process for regular test cases. You need to set up a test request and conditions and select test case variations.

How to

  1. Go to > CDN > Test Center.
  2. In the left menu, click Functional testing and then go to Test suites.
  3. In the master list, find and click the default test suite for your config version. Its name follows this format: Default test suite for {name of the config version and its version}.
  4. In the Details section, click + > Create and add test cases based on {name and version of the config version}.

    The Create test cases based on config version window opens. It’s divided into two sections. The first one is where you create the test cases. The other, Config settings, consists of the config rules and hostnames. The Rules tab includes the JSON representation of the entire property version’s rule tree. The Hostnames tab lists all hostnames assigned to the property.

  5. Create the test request:
    1. Enter the test request’s URL. The URL must contain the protocol, hostname, path, and any applicable string parameters. For example https://www.example.com.
    2. Optional: Add Keywords, which are helpful for filtering the test requests later in the master list.
    3. Optional: Add, remove, or modify the Request headers of the request.
    4. Click Continue.
  6. Add a condition. You can:
    • Click + and create a condition manually. Select the category of the condition and then entered required values, if applicable. Click Add to list.
    • Go to the Rules tab in the Config setting section of the window. At this stage, the JSON tree becomes interactive. Note that each behavior is highlighted. Double click a behavior for Test Center to create a condition from it.
    You can mix both methods. There are no limits on the number of conditions you can create.
  7. After you created all required conditions, click Continue.
  8. Select variations for the test cases.
    1. Select at least one IP version.
    2. Optional: Select Other hostnames in this config version. The list of hostnames in the Hostname tab, in the Config settings 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.
    3. 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.
  9. Click Add.
    Test Center creates and adds the new test cases to the config version’s default test suite. You can now access them from the default test suite or the Test cases tab.
  10. Optional: Continue modifying the selections to create more test cases.
    1. 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.
    2. Click Add to add them to the test suite.
  11. After you add all needed test cases, click Close.

What you should see

Test Center adds all functional test cases to your config version’s default test suite. You can now access the test cases and their components, test requests and conditions, in their respective tabs.

Next steps

You can now run a test for the config version. See Run a regression test.