Description
Description-Separate-1
Overview
This sequence file allows the user to modify the database the TestStand logs to during a single execution.
Description
This sequence file overrides the LogtoDatabase sequence callback. It prompts the user to choose between two databases each time a UUT is tested. It either establishes a new connection to a new database or does not modify the database connection.
Hardware and Software Requirements
TestStand 2014 or Compatible
Steps to Implement or Execute Code
- Open the attached sequence file in the TestStand Sequence Editor.
- Modify the connection strings so that they match the connection strings to your databases in the LogToDatabase sequence file. In order to obtain the connection string and create a new database:
- Navigate to Configure » Results Processing and check the box for "Show More Options" at the bottom of the dialog box that appears.
- Click Insert New...
- To add a new database to TestStand, click on the Log to Database option from the menu on the Insert New button. A new database will be added to your list in the dialog box, entitled "Database_2." You should have a default database, entitled "Database," in your list already.
- For each database, click the Options button for the properties dialog box to appear.
- Under the Data Link Options section, you can select your provider. Click Build on the lower right corner and dialog will appear for Data Link Properties.
- Select the database that you are using by selecting the name or the location of the database in the connection tab.
- Click OK. Repeat these steps for each of your databases.
- Once this is complete, the "Connection String Expression" field in the Database Options dialog will be populated with the connection string that you will need to insert into the LogToDatabse sequence file.
- Copy this connection string to the preconfigured local variables, Locals.ConnectionStr_DB1 and Locals.ConnectionStr_DB2, in the LogtoDatabase sequence call.
Description-Separate-2Additional Information
Additional-Separate-1Additional-Separate-2