Working with Test Configurations
A test configuration is a collection of tests that can be run on demand or be scheduled to run on a regular basis in Eggplant DAI. A test configuration ("test config") is essentially a blueprint of tests that can be run one after the other. You can run directed test cases and model-based exploratory tests in a test config. See About Test Cases for more information about test cases.
Go to Controller > Test Config, to create, edit, or view your defined test configs.
The following columns are displayed to provide at-a-glance details about each test configuration:
- Name: Display name of the test configuration.
- Model/Suite: Name of the model or suite depending on the type of test configuration you choose to run.
- Description: Description of the test configuration. Provide a meaningful description to help distinguish it from other test configurations.
- Tags: Tags defined for the selected test configuration that you're viewing.
- SUT: Associated SUT, or criteria for choosing a SUT for the test configuration.
- Updated: Date and time when the test configuration was last updated.
- Steps: Number of test steps included in the test configuration. A test step is either a test case from the model or a script based test case, or an exploratory test with stop criteria, which could be defined by duration, iterations, or a target coverage percentage.
Click the Actions menu to Edit, Delete, or Duplicate a test configuration.
Filtering Test Configurations
You can filter test configurations in the following ways:
- By name: Type part of a test configuration name in the Search by name search bar. DAI filters the test configurations you see as you type.
- By model: If you want to see the test configurations associated with a model, click the arrow on the Models button and select a model from the suggested list or start typing a model name in the Search... field. DAI suggests models as you type.
- By suite: If you want to see the list of test configurations associated with a suite, click the arrow on the Suites button and and select a suite from the suggested list or start typing a suite name in the Search... field. DAI suggests suites as you type.
Creating Test Configurations
Go to Controller > Test Config to create a test configuration ("test config").
Step by Step: Creating a Test Configuration
Creating a test config consists of three steps, with a page for each step. The steps and pages are summarized below, followed by detailed instructions:
- Step 1: General: the page where you provide the general information about your test config, including a name, description, test type, test config tags, execution settings, and SUT.
- Step 2: Steps/actions: the page where you configure the exploratory test or test case actions you want your test config to run.
- Step 3: Advanced Settings: the page where you can configure if you want to automatically rerun failed test steps, stop a run when a step fails, and set up email notifications to advise of completed test configuration runs.
A progress tracker at the top of the page shows where you are in the creation process as shown in the image below. The highlighted number in purple shows the step you are on in the process. Once you finish entering information on a page and advance to the next one, the progress tracker shows a green check for completed the step.
The pages include Cancel and Back buttons so you can cancel the test config creation or return to a previous page when you want.
Providing a name and test type enables additional settings.
Step 1: Configure the General information for the Test Configuration
-
Go to Controller > Test Config. The Test Configs page opens.
-
On the right side of the top menu, click + New Test Config. The Create new Test Config page opens with the first step in the process, the General page shown above, where you provide the Basic Settings for your test config.
-
Provide a Name and Description for the test configuration. This is the name and description that show in the list of test configs. Also note the Clear all button you can use to clear the Description field.
-
Select a Test type (Model based or Script based) for the test configuration. After you specify the test type, more settings become visible. Some of the options you see depend on the test type selected. For both test types, you see the Test configuration tags and Execution settings selectors.
-
If you selected the Model based test type, you see the Model selector.
-
If you selected the Script based test type, you see the Suites selector so you can select the suite that contains the scripts/snippets you want your test config to run.
-
-
Select the model or suite from the selector as appropriate for your test type.
ノートNote that selecting your model or suite enables the Next button at the bottom of the page. You can proceed to the Steps/actions page at this point with the default values for the remaining settings on this page.
-
Add or select Test configuration tags by entering a name for the tag and pressing Enter. Tags provide another way for you to identify and filter by your test config. You can add as many test tags as you need. You can also clear the list of selected tags by pressing the Clear all button.
-
In the Execution settings section of the page, select the type of execution environment (Local or Cloud) that you want your test config to use.
-
Select a SUT option for this test config that is appropriate for your execution environment as follows:
For Local execution environments, choose from the following SUTs:
-
None (no SUT) if the SUT is defined in your code or not required.
-
SUT by name to select a predefined SUT.
-
SUT by criteria tag to select a SUT tag from the drop-down list. The SUT tag is associated with a SUT that is available on the SUTs page (Controller > SUTs). If you want to create a SUT or SUT tag, navigate to the SUTs page.
For Cloud execution environments, choose from the following SUTs:
-
The same options listed above for Local execution environments.
-
Eggplant hosted cloud: Select this to execute tests on Cloud SUTs where Eggplant will provision the Cloud Execution Environment (including the Agent and Eggplant Functional) for you. For more information, see Connecting to DAI Cloud SUTs. (This option is only available for cloud SUTs.)
-
-
When you finish configuring the Basic Settings, click Next. You advance to the second part of the test configuration creation process: the Step 2: Test steps/actions page.
Step 2: Configure the Steps/actions for the Test Configuration
The options you see on the Steps/actions page depend on the test type you selected. The top of the page shows the test type you selected (Model based or Script based) and either the model or suite as appropriate for the test type. Follow the appropriate steps below for your test type:
- Configuring steps/actions for Model based test types
- Configuring steps/actions for Script based test types
Configuring steps/actions for Model based test types
For Model based test types, you see the Available exploratory and test cases list.
-
Click to select any of the test cases from the Available exploratory and test cases list. If the Available exploratory and test cases list is too long, you can filter it by typing test case names. What you see added to the Steps added list on the right side of the page depends on the type of test you select:
-
For exploratory tests, you see exploratory test options where you can specify the number of Iterations, Coverage, and Time (hrs) as shown below.
ノートFor exploratory steps, a stop criterion is always set by duration, iterations, or target coverage. After the test runs out of steps, Eggplant DAI will examine the execution of each step and indicate whether the test configuration is a success or failure.
-
For test cases, you see the test case.
-
-
Repeat step 1 above until you have added all the tests you want your test config to run or click Add All to add all the test cases in Available exploratory and test cases list. Note that clicking Add All when filters are applied to the Available exploratory and test cases adds only the test cases in the filtered list.
ノートClicking Add all while the Available exploratory and test cases list is filtered only adds test cases in the filtered list.
-
Click Next to advance to Step 3: Advanced Settings page and follow the instructions for that page.
Configuring steps/actions for Script based test types
For Script based test types, you see the Select a Scripted Test Case selector. Clicking the selector button lists the available scripted test cases and displays a Search... bar so you can search for them by name when you have a long list of test cases.
-
Select a scripted test case from the list or search for it by name in the search bar and then select it. You see the test case added to the Steps added list on the right.
-
Repeat step 1 above until you have added all of the scripted test cases you want your test config to run.
-
Click Next to advance to the Step 3: Advanced settings page and continue to the following section for information about configuring it.