Table Of Contents

Uploading Files with a TestStand Step

Last Modified: June 28, 2018

Upload custom files to Test Monitor from within TestStand.

  1. Create a step to upload the file or group of files.
    1. Right-click in the Steps pane of your sequence file.
    2. Click Insert Step»Action.
  2. Configure the step to upload your files and create file IDs.
    1. In the Step Settings pane, click the Properties tab.
    2. In the General section, under Adapter, choose .NET.
    3. Click the Module tab.
    4. In the Assembly field, click Browse for Assembly.
    5. Navigate to <TestStand Public Directory>\Components\Models\ModelPlugins\NI_TestMonitorClient and select NI_TestMonitorClient.dll.
    6. In the Root Class field, choose Skyline.TestMonitorClient.CustomFileUploadSingleton.
    7. In the .NET Invocation field, choose Instance.Upload(System.String) if you are uploading separate files, or Instance.Upload(System.String[])if you are uploading multiple files.
    This call automatically uploads the files from the file paths on disk and returns corresponding file IDs.
  3. Store the file IDs using local variables.
    1. In the Variables pane, right-click Locals.
    2. Click Insert Local and select the type of variable you want to create. For a single file ID, select String. For multiple file IDs, select Array of»String.
    3. Enter the file ID or array of file IDs.
    4. Repeat for each file ID or array of file IDs you want to store.
  4. Attach the file(s) to a test result.
    1. Click the test step that uploaded the file.
    2. Under Properties, click Additional Results.
    3. Click + to create a custom result.
    4. Under Name, type "NI.SYSTEMLINK.TESTMONITORFILE" (including quotes). Use this name for all additional results you add.
    5. Under Value to Log, specify the local variable you created.
Test Monitor automatically attaches the file you specified to the current test result.

Recently Viewed Topics