Creating or Editing MSTest Tests

Note: The MSTest plugin supports the test type unit tests only. Results of other test types are ignored.

To create or edit an MSTest test:

  1. In the menu, click Tests > Details View .
  2. Select a container or folder node in the Tests tree where you want to insert a new test, or select the test that you want to edit.
  3. Click New Child Test (New Child Test) on the toolbar, or click (Edit).

    The New Test/Edit Test dialog box appears.

  4. Type a name and description for the test.
    Note: Silk Central supports HTML formatting and cutting and pasting of HTML content for Description fields.
  5. If you are creating a new test, select MSTest Test from the Type list box. Click Next.

    The MSTest Test Properties dialog box appears.

  6. You can run a test container, a test list, an ordered test, a test class, or a single test method:
    • To run a test container, click Browse next to the Test file field and select a .dll file. You can constrain the run by typing in just a Test class or both a Test class and a Test method.
    • To run a test list, click Browse next to the Test file field and select a .vsmdi file (Visual Studio Test Meta Data). Type a name in the Test list name field. You can constrain the run by typing in both a Test class and a Test method.
    • To run an ordered test, click Browse next to the Test file field and select a .orderedtest file.
      Important: To run ordered tests, leave all fields except the Test file field blank.
  7. Click Finish.
Note: To run MSTest on an execution server, a Visual Studio distribution or the Visual Studio Test Agent have to be installed. Add the folder that contains MSTest.exe to your path variable and restart the execution server. The default path is: C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE. Currently MSTest distributed with Microsoft Visual Studio/Visual Studio Test Agent 2015 is supported.