Dieser Inhalt liegt nicht in Ihrer bevorzugten Sprache vor.
Der Inhalt wird Ihnen in einer anderen verfügbaren Sprache angezeigt. Ihr Browser bietet ggf. Funktionen, die Sie bei der Übersetzung des Textes unterstützen.
The steps for this article are split into the following sections:
Download the attached .zip file, which contains a .tsenv file and three directories. Unzip the contents to any directory that works best for your system.
Open the TestStand Sequence Editor.
Note: Notice that TestStand launches with a default environment, <Global>, which is denoted in the status bar at the bottom:
To change the environment to this tutorial's environment, on the tool bar menu, navigate to Configure>>Environment...
In the Configure Environment dialog, browse to the DemoEnvironment.tsenv file. The dialog will populate with the custom directories used by this environment.
Note: For more information on the dialog box, see Teststand Help: Configure Environment Dialog Box.
Click Set Engine Environment. Since the TestStand Engine needs to be reinitialized with the new environment settings, you will need to click OK on the following dialog.
If you are using a version later than TestStand 2016, three additional dialogs will appear indicating that this example is out of date. The first dialog that appears is shown below:
Click OK. Two more dialogs will appear indicating that the layout_current.bin is again out of date and that the default analyzer project is out of date. Click OK on both dialogs to open the example TestStand environment.
The status bar will now display Environment: DemoEnvironment.tsenv. Also, notice that the Station Model is different for this environment. It is now ParallelModel.seq:
Open the Types Palette navigating to View >> Types (Ctrl+T), and notice that the DemoEnvironment has its own specific Type Palette.
Navigate to MyTypes.ini in the types view. Notice that under Step Types and Custom Data Types, there are two different types called CustomDemoStepType and CustomDemoDataType respectively.
Hover over MyTypes.ini, and you can see that the file is contained in DemoPublic, the TestStand public directory for the demo environment.
In the Variables Pane, expand StationGlobals. There will be an additional Station Global called DemoEnvironmentSG.
Launch another instance of the Sequence Editor. The default behavior is to launch with the <Global> environment.
Compare the Station Globals and the Types in MyTypes.ini. Notice how CustomDemoStepType, CustomDemoDataType, and the DemoEnvironmentSG Station Global are not in the <Global> environment.
Here, you learned the steps to create and utilize a TestStand environment. You have the choice to build your own environment based on this demo or to start with a clean slate. The next section will outline the process for developing a custom TestStand environment.
A .tsenv file defines a TestStand environment. It is an INI text file that can specify the TestStand Public directory, TestStand Application (CommonAppData) directory (which implicitly defines the TestStand Configuration directory), and/or the TestStand Local Application (LocalAppData) directory. For more information, see TestStand Help: TestStand Environments.
There are two methods to create a TestStand environment. The first method is to create the file manually using a text editor, and the latter is to use the Sequence Editor to create the .tsenv file.
Note: Ensure that you can see the extension of your file to guarantee that the file's extension has been changed.
Paths can be absolute or relative to the environment root directory. The paths shown are relative to the .tsenv file directory. For TestStand system deployment, folder paths must be relative.
Note: You do not have to specify all of the folders. If you wish to share a default folder of the TestStand Global Environment, omit the key or set it to an empty string.
Save the file.
Load the environment file into TestStand. In the Sequence Editor, go to Configuration>>Environment. Click on “…” and browse to your environment file.
When your file has loaded, ensure that the folders that you wish to map your environment to appear as intended. Click Set Engine Environment to relaunch TestStand in the new environment.
Navigate to Configure >> Environment. In the Environment Path text box, replace “<Global>” with an absolute path to an environment file such as C:\Users\Public\Documents\DemoEnv.tsenv and click Save. TestStand will create a DemoEnv.tsenv file in the location specified.
In the Custom Directories group box, check a directory, name the folder, and click the '...' button to browse to an existing folder if needed. Click Save to save the environment file.
Click Set Engine Environment to load the new environment file and personalize your setup. TestStand will create any missing custom folders and populate them with default configuration files as needed.
Collaborate with other users in our discussion forums
A valid service agreement or active software subscription may be required, and support options vary by country.
Yes
No