Artifact Editor - overview

Test artifacts associate objects such as test suites and datapools; that is, artifacts make an asset available to a test suite. In the Artifact Editor, there are initially two main tabs: Overview and Test Assets. A third tab, General Properties, appears after the artifact has been associated with a JUnit test.

Overview Tab

The General Information section provides the artifact's name, description, and its path within the workspace.

The Test Assets section shows the test elements associated with the artifact.

The Property Groups section includes General Properties, and, if either of these is selected, this will instantiate an additional tab named General Properties with content.

Test Assets Tab

In the Overview tab, clicking on the More... button, or selecting the Test Assets tab, results in the Test Assets view being displayed. To add a test asset, click on the Add... button to bring up the Select Resource dialog. Navigate to a resource, select it, and click on OK. The resource (in this example a TPTP JUnit test named SimpleTest.testsuite) will be added to the Test Assets section.

You can add or remove test assets by using the Add... or Remove buttons respectively. As we have seen, invoking Add...  brings up the Select Resource dialog. To remove an asset, select it by clicking on it, then press the Remove button.

When there is more than one asset in the Test Assets section, their relative ordering can be modified by selecting an item within the list and then pressing the Up or Down buttons to move the selected item up or down the list, respectively.

If we return to the Overview tab view, we see that SimpleTest has been added to the Test Assets section. Apart from the JUnit test suite, the test assets should include any other resources required (for example, datapools).

General Properties tab

The CLASSPATH is added to the General Properties section as a consequence of the artifact being associated with a JUnit test.

In the Overview tab, either clicking on the CLASSPATH or the More... button in the General Properties section of the Overview tab, selecting General Properties in the Property Groups section, or selecting the General Properties tab, all result in the General Properties tab view being displayed.

Note that, while it is possible to add in further properties to the General Properties section, TPTP itself uses only the CLASSPATH property. It may be that other applications can make use of additional properties, so, for completeness, we describe how to add, remove and edit such properties.

To add a new property, click on the Add... button. This launches the New Property dialog.

Enter your property name in the Property Name field, or select it from the drop-down list.

Select the Operator from =, !=, >, <, >=, or <= via the associated drop-down list and insert the required value in the Property Value field.

To edit an existing property, double-click on it to launch the Edit Property dialog.

Then change the Property Name, Operator, or Property Value fields as required.

To remove an existing property, select it then click on the Remove button.

Related concepts
Deployment Editor - overview
Location Editor - overview

Related tasks
Creating an artifact
Creating a deployment
Creating a location
Forming an artifact and location pairing