Attaching automated test scripts to test cases

You can attach scripts from other tools to test cases so they are automatically copied to test runs. You can add existing file or source file attachments as scripts or browse for files to attach as scripts.

1. Click the Files tab when you are adding or editing a test case.

2. Click the Scripts tab.

Note:  To attach files from the clipboard, copy the file and click Paste to attach it to the test case.

3. Click Select Scripts.

The Select Scripts dialog box opens. Any files already attached to the test case are displayed.

4. Attach a script file if it is not already attached.

  • Click Attach Files to locate the file. Browse to the file and click Open.
  • Click Attach Source Files to attach a file from source control. Locate the file in the source control project, click Add to add it to the selected files list, and click OK.

5. Select the check box in the Scripts column for each file to add and click OK.

The files are attached.

Note:  Script files are also displayed on the Attachments tab. Script files under source control are also displayed on the Source Files tab.

6. To reorder the scripts, click Top, Move Up, Move Down, and Bottom.

Scripts are run in this order when confirming that automated tests work and run. See Confirming automated tests work and Running multiple automated tests.

7. Save the test case.

  • Click OK to save the changes.
  • Click Apply to save and continue working on the test case.