Test Package XML Conventions
- Updated2024-10-31
- 5 minute(s) read
The test XML configuration file (.testdef) defines the test parameters and endpoints being monitored during the test in TestStand and VeriStand. A pre-populated version of this XML file can be generated and edited for a defined test sequence from within TestStand by navigating to . If a test definition file already exists for this test sequence, any changes detected based on new or deleted test parameters and endpoints will be merged into the existing file. Then you can use the test definition editor to further customize the configuration by defining how this test should appear in the BTS Web UI. For example, you could customize the display name that shows in the Web UI Test Definition selector menu, or the description that shows in the info tip in the Web UI; you could customize a string parameter type to expect a profile type file selection or define the minimum and maximum limits for a numeric parameter; or you could declare endpoints to be certain measurement types.
Test Sequence Definition XML File Tag Reference
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Unique name of the Test package file. Once defined, this name should never be changed. If DisplayName is not defined, this name is shown in the Test drop-down listbox in the Test Definition section of the BTS Web UI Test Plan Editor. |
| DisplayName | string | No | — | Display name of the Test. This name is shown in the Test drop-down listbox in the Test Definition section of the BTS Web UI Test Plan Editor. |
| Description | string | Yes | — | High-level description of the Test package file. This description is shown as an info tip in the Test Definition section of the Test Plan Editor in the BTS Web UI when the corresponding test is selected in the Test drop-down listbox. |
| SequenceFile | string | Yes | — | Location of primary top-level TestStand .seq file associated with test defined in .testdef file. The file path should be relative to the .testdef file. |
| TestMonitorPage.Plugin | string | No | — | Component name of a Test Monitor page plugin used in the Web UI for the Test package. |
| IsDeprecated | boolean | No | False | Indicates if the test package name should be included in the test sequence selector menu when creating a test plan. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the parameter. This name is shown above the corresponding Parameter control in the Test Definition section of the BTS Web UI Test Plan Editor. |
| DisplayName | string | No | — | Display name for the parameter. This name is shown above the corresponding Parameter control in the Test Definition section of the BTS Web UI Test Plan Editor. If DisplayName is not provided, the Name is shown above the corresponding Parameter control. |
| Type | enum | Yes |
| Type of data stored in the parameter. Changes the type of Parameter control displayed for a parameter in the Test Definition section of the BTS Web UI Test Plan Editor. |
| Default | Type-Dependent:
| No | Default:
| Default value of the parameter. Changes the default value shown in a Parameter control in the Test Definition section of the BTS Web UI Test Plan Editor. |
| Min | Type-Dependent:
| No | null | Minimum value of the parameter. Only applies to Integer and Double parameters. If a value is input into an Integer or Double Parameter control that is below this value, the BTS Web UI will notify the user and not accept the value. |
| Max | Type-Dependent:
| No | null | Maximum value of the parameter. Only applies to Integer and Double parameters. If a value is input into an Integer or Double Parameter control that is above this value, the BTS Web UI will notify the user and not accept the value. |
| FileExtension | String | No | .* | File extension for a profile type file. Restricts the type of files that may be specified or selected as a profile. |
| TestDefinition Parameter. UIDisplayOrder | Double | No | undefined | If specified, this value orders the properties in the Test Parameter section of the BTS Web UI. The lower the value, the higher the parameter will be positioned in the parameter section. Properties with the same UIDisplayOrder value will be ordered alphabetically. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the profile. This name will appear in a Profile Parameter control's drop-down listbox in the Test Definition section of the BTS Web UI Test Plan Editor. |
| Path | string | Yes | — | Location of the test package's file structure relative to the .testdef file. |
| ProfileOption | string | No | none | Profile option for a profile type file. Restricts the list of profiles from the ProfileSet that will be included in this parameter's selector in the Web UI. If specified, only the profiles specified using ProfileOption will be included in the selector. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the signal alias in VeriStand and TestStand. This name will appear in the Endpoint Mappings section of the BTS Web UI. <SocketAlias> names will appear in the Test Channel list, while <SharedAlias> names will appear in the Shared Test Channel list. |
| SystemCompiler.AliasPathPrefix | string | No | — | System definition path to the signal alias prepended to the defined alias name. |
Sample .testdef File
The following example illustrates a sample structure for a .testdef XML file.
<?xml version="1.0" encoding="utf-8" ?>
<TestDefinition
Name="All Parameter Types"
Description="Sample test definition with all
parameter types."
SequenceFile="TestSequences\Main.seq"
TestMonitorPage.Plugin="TestMonitorPluginA">
<Parameters>
<Parameter Name="Power" Type="Double" Min="0"
Max="40" UIDisplayOrder="1" />
<Parameter Name="Number" Type="Integer"
Default="6" Min="0" Max="40"
UIDisplayOrder="2" />
<Parameter Name="Location" Type="String"
Default="Detroit" UIDisplayOrder="3" />
<Parameter Name="RunImmediately" Type="Boolean"
UIDisplayOrder="4" />
<Parameter Name="DriverProfile"
DisplayName="Driver Profile" Type="Profile"
FileExtension=".csv" Default="Profile2"
UIDisplayOrder="5" />
<Parameter Name="Letter" Type="Enum" Default="A"
UIDisplayOrder="6">
<EnumValue>A</EnumValue>
<EnumValue>B</EnumValue>
</Parameter>
</Parameters>
<ProfileSet>
<Profile Name="Profile1"
Path="Profiles\Profile1.csv"/>
<Profile Name="Profile2"
Path="Profiles\Profile2.csv"/>
</ProfileSet>
<Aliases>
<SocketAlias Name="VoltageInput"
SystemCompiler.AliasPathPrefix="Test\
Socket %SOCKET%\" >
<VoltageInputAttributes Unit="Voltage"
MinValue="0" MaxValue="10"
InputConfiguration="ReferencedSingleEnded" />
</SocketAlias>
<SharedAlias Name="Chamber set point"
SystemCompiler.AliasPathPrefix="Test\" />
</Aliases>
</TestDefinition>
Related Information
- Measurement Attribute XML Conventions
Measurement Attributes describe different types of measurements that can be monitored during a test executed in the BTS.