|
Lines 2-8
Link Here
|
| 2 |
<html lang="en-us" xml:lang="en-us"> |
2 |
<html lang="en-us" xml:lang="en-us"> |
| 3 |
<!-- |
3 |
<!-- |
| 4 |
/********************************************************************** |
4 |
/********************************************************************** |
| 5 |
* Copyright (c) 2006, 2007 Scapa Technologies and others. |
5 |
* Copyright (c) 2006, 2008 Scapa Technologies and others. |
| 6 |
* All rights reserved. This content is made available under |
6 |
* All rights reserved. This content is made available under |
| 7 |
* the terms of the Eclipse Public License v1.0 |
7 |
* the terms of the Eclipse Public License v1.0 |
| 8 |
* which accompanies this distribution, and is available at |
8 |
* which accompanies this distribution, and is available at |
|
Lines 15-111
Link Here
|
| 15 |
**********************************************************************/ |
15 |
**********************************************************************/ |
| 16 |
--> |
16 |
--> |
| 17 |
|
17 |
|
| 18 |
|
|
|
| 19 |
<head> |
18 |
<head> |
| 20 |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> |
19 |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> |
| 21 |
<link rel="StyleSheet" href="../css/book.css" type="text/css" /> |
20 |
<link rel="StyleSheet" href="../css/book.css" type="text/css" /> |
| 22 |
|
21 |
|
| 23 |
<title>Artifact Editor - overview</title> |
22 |
<title>Editing an artifact</title> |
| 24 |
</head> |
23 |
</head> |
| 25 |
|
24 |
|
| 26 |
<body> |
25 |
<body> |
| 27 |
|
26 |
|
|
|
27 |
<h1>Editing an artifact</h1> |
| 28 |
|
28 |
|
| 29 |
<h1>Artifact Editor - overview</h1> |
29 |
<p>Test artifacts are edited using the Artifact editor. The editor contains three tabs:</p> |
| 30 |
|
30 |
|
| 31 |
<p> |
31 |
<h2>Overview</h2> |
| 32 |
Test artifacts associate objects such as test suites and datapools; that is, |
|
|
| 33 |
artifacts make an asset available to a test suite. In the Artifact Editor, |
| 34 |
there are initially two main tabs: <b>Overview</b> and <b>Test Assets</b>. |
| 35 |
A third tab, <b>General Properties</b>, appears after the artifact has been associated with a JUnit test.</p> |
| 36 |
|
| 37 |
<p><img width="469" height="347" |
| 38 |
src="../images/creatingATestDeployment_image025.png" alt="" /></p> |
| 39 |
<h2>Overview Tab</h2> |
| 40 |
|
| 41 |
<p>The <i>General Information</i> section provides the artifact's name, description, and its |
| 42 |
path within the workspace.</p> |
| 43 |
|
| 44 |
<p>The <i>Test Assets</i> section shows the test elements associated with the artifact.</p> |
| 45 |
|
| 46 |
<p>The <i>Property Groups</i> section includes <i>General Properties</i>, and, if either |
| 47 |
of these is selected, this will instantiate an additional tab |
| 48 |
named <i>General Properties</i> with content.</p> |
| 49 |
|
| 50 |
|
| 51 |
<h2>Test Assets Tab</h2> |
| 52 |
<p>In the Overview tab, clicking on the <b>More...</b> button, or selecting the <b>Test Assets</b> tab, results in the <i>Test Assets</i> |
| 53 |
view being displayed. To add a test asset, click on the <b>Add...</b> button to bring up the Select Resource dialog. Navigate to a resource, select it, and click on <b>OK</b>. |
| 54 |
The resource (in this example a TPTP JUnit test named <i>SimpleTest.testsuite<b></b></i>) |
| 55 |
will be added to the Test Assets section.<b><br /> |
| 56 |
<img width="262" height="217" |
| 57 |
src="../images/creatingATestDeployment_image016.png" alt="" /></b></p><p>You can add or remove test assets by using the <b>Add...</b> |
| 58 |
or <b>Remove</b> buttons respectively. As we have seen, invoking <b>Add...</b> brings up the Select Resource dialog. To |
| 59 |
remove an asset, select it by clicking on it, then press the <b>Remove</b> button.</p> |
| 60 |
|
| 61 |
<p>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 |
| 62 |
then pressing the <b>Up</b> or <b>Down</b> buttons to move the selected item up or down the list, respectively.</p> |
| 63 |
|
| 64 |
<p>If we return to the Overview tab view, we see that <i>SimpleTest</i> has been added |
| 65 |
to the <b>Test Assets</b> section. Apart from the JUnit test suite, the test assets |
| 66 |
should include any other resources required (for example, datapools).<br /> |
| 67 |
</p><h2>General Properties tab</h2> |
| 68 |
<p>The CLASSPATH is added to the <i>General Properties</i> section as a |
| 69 |
consequence of the artifact being associated with a JUnit test.</p> |
| 70 |
|
| 71 |
<p>In the <i>Overview</i> tab, either clicking on the <b>CLASSPATH </b>or the <b>More...</b> button in the <i>General Properties</i> section |
| 72 |
of the Overview tab, selecting <b>General Properties</b> in the <i>Property Groups</i> section, or selecting the <b>General Properties</b> tab, all |
| 73 |
result in the General Properties tab view being displayed.<br /> |
| 74 |
<img width="366" height="283" src="../images/creatingATestDeployment_image026.png" alt="" /></p> |
| 75 |
|
| 76 |
<p><b>Note</b> that, while it is possible to add in further properties to the General Properties section, TPTP itself uses only the <b>CLASSPATH</b> |
| 77 |
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 |
| 78 |
properties.</p> |
| 79 |
|
| 80 |
<p>To add a new property, click on the <b>Add...</b> button. This launches the <b>New Property</b> dialog.<br /> |
| 81 |
<img width="436" height="126" src="../images/creatingATestDeployment_image027.png" alt="" /></p> |
| 82 |
|
| 83 |
<p>Enter your property name in the <b>Property Name</b> field, or select it from the drop-down list.<br /> |
| 84 |
<img width="436" height="140" src="../images/creatingATestDeployment_image028.png" alt="" /></p> |
| 85 |
|
| 86 |
<p>Select the <b>Operator</b> from =, !=, >, <, >=, or <= via the associated drop-down list |
| 87 |
and insert the required value in the <b>Property Value</b> field.</p> |
| 88 |
|
| 89 |
<p>To edit an existing property, double-click on it to launch the <b>Edit |
| 90 |
Property</b> dialog.<br /> |
| 91 |
<img width="436" height="126" src="../images/creatingATestDeployment_image029.png" alt="" /></p> |
| 92 |
|
32 |
|
| 93 |
<p>Then change the <b>Property Name</b>, <b>Operator</b>, or <b>Property Value</b> fields as required.</p> |
33 |
<p>This tab provides an overview of the test artifact.</p> |
| 94 |
|
34 |
|
| 95 |
<p>To remove an existing property, select it then click on the <b>Remove</b> button.</p> |
35 |
<p>This tab contains three sections:</p> |
| 96 |
|
36 |
|
| 97 |
<p> |
37 |
<ul> |
| 98 |
<b>Related concepts</b><br/> |
38 |
<li> |
| 99 |
<a href="cdeployeditor.htm">Deployment Editor - overview</a><br/> |
39 |
<p><b>General Information</b></p> |
| 100 |
<a href="clocationeditor.htm">Location Editor - overview</a><br/> |
40 |
<p>Contains the test artifact's name, description, and file path within the workspace. The test artifact's name<sup>1</sup> and description are editable.</p> |
| 101 |
</p> |
41 |
<br/> |
|
|
42 |
</li> |
| 43 |
<li> |
| 44 |
<p><b>Property Groups</b></p> |
| 45 |
<p>Contains a link to the General Properties tab. Clicking the link will open the associated tab.</p> |
| 46 |
<br/> |
| 47 |
</li> |
| 48 |
<li> |
| 49 |
<p><b>Test Assets</b></p> |
| 50 |
<p>Contains links to the test assets, such as test suites and datapools, in the Test Assets tab. Clicking a link or the More... button will |
| 51 |
open the Test Assets tab.</p> |
| 52 |
<br/> |
| 53 |
</li> |
| 54 |
<li> |
| 55 |
<p><b>General Properties</b></p> |
| 56 |
<p>Contains links to the general properties in the General Properties tab. Clicking a link or the More... button will |
| 57 |
open the General Properties tab.</p> |
| 58 |
<br/> |
| 59 |
<p>Note, the General Properties section will only appear if one or more general properties are associated with the test artifact.</p> |
| 60 |
<br/> |
| 61 |
</li> |
| 62 |
</ul> |
| 63 |
|
| 64 |
<p>[1] Test artifacts have a file name and logical name. The logical name is used in the Test Navigator, dialogs, editors, and wizards to represent the test artifact. |
| 65 |
The file name represents the test artifact file (<i>*.artifact</i>) within the workspace. When the test artifact is created, the logical name defaults to the file name |
| 66 |
(excluding the <i>.artifact</i> file extension) and may be modified without modifying the file name. The logical name allows customization of the test artifact name |
| 67 |
without affecting the file name within the workspace.</p> |
| 68 |
|
| 69 |
<h2>Test Assets</h2> |
| 70 |
|
| 71 |
<p>This tab contains the list of test assets, such as test suites and datapools, associated with the test artifact.</p> |
| 72 |
|
| 73 |
<p>Test assets can be added to the list by clicking the <b>Add...</b> button and select the test assets.</p> |
| 74 |
|
| 75 |
<p>Selected test assets can be removed (<b>Remove</b>), moved up (<b>Up</b>), or moved down (<b>Down</b>).</p> |
| 76 |
|
| 77 |
<h2>General Properties</h2> |
| 78 |
|
| 79 |
<p>This tab contains the table of general properties associated with the test artifact. For example, the <i>CLASSPATH</i> general property contains local dependencies of the associated test suites.</p> |
| 80 |
|
| 81 |
<p>When a test suite is executed, the following dependencies are deployed to the target host:</p> |
| 82 |
|
| 83 |
<ul> |
| 84 |
<li>Dependencies on the class path of the project containing the test suite, excluding <i>*.java</i>, <i>*.execution</i>, <i>*.testsuite</i>, <i>*.deploy</i>, <i>*.location</i>, and <i>*.artifact</i>.</li> |
| 85 |
<li>Dependencies on the <i>CLASSPATH</i> general property.</li> |
| 86 |
<li>Test assets associated with the test artifact.</li> |
| 87 |
</ul> |
| 88 |
|
| 89 |
<p>Note, the General Properties tab will only appear if one or more general properties are associated with the test artifact.</p> |
| 90 |
|
| 91 |
<p>General properties can be added to the table by clicking the <b>Add...</b> button and entering the property name, operator (<i>=</i>, <i>!=</i>, <i>></i>, <i><</i>, <i>>=</i>, or <i><=</i>), and value.</p> |
| 92 |
|
| 93 |
<p>All file paths are absolute and operating system dependent based on the local operating system.</p> |
| 94 |
|
| 95 |
<p>Selected general properties can be removed (<b>Remove</b>), moved up (<b>Up</b>), or moved down (<b>Down</b>). Existing general properties may be edited by double-clicking |
| 96 |
the general property in the table and and modifying the property name, operator, and/or value.</p> |
| 102 |
|
97 |
|
| 103 |
<p> |
98 |
<p> |
| 104 |
<b>Related tasks</b><br/> |
99 |
<b>Related tasks</b><br/> |
| 105 |
<a href="../tasks/tcreateartifact.htm">Creating an artifact</a><br/> |
100 |
<a href="../tasks/tcreateartifact.htm">Creating an artifact</a><br/> |
| 106 |
<a href="../tasks/tcreatetestdeployment.htm">Creating a deployment</a><br/> |
|
|
| 107 |
<a href="../tasks/tcreatelocation.htm">Creating a location</a><br/> |
| 108 |
<a href="../tasks/tassociateartifact.htm">Forming an artifact and location pairing</a><br/> |
| 109 |
</p> |
101 |
</p> |
| 110 |
|
102 |
|
| 111 |
</body> |
103 |
</body> |