Running Silk4NET Tests

This topic describes how you can run your Silk4NET tests in Visual Studio.

  1. To view all the tests that are available in the selected project or solution:
    • In Visual Studio 2010, click Test > Windows > Test View.
    • In Visual Studio 2012 later, click Test > Windows > Test Explorer.
  2. In the Test View or the Test Explorer, depending on which version of Visual Studio you are using, select the tests that you want to execute.
  3. Right-click on your selection and click one of the following:
    • In Visual Studio 2010, click Run Selection.
    • In Visual Studio 2012 or later, click Run Selected Tests.
    To run all tests in the selected project or solution, click Run All in the Test View or the Test Explorer, depending on which version of Visual Studio you are using.
  4. If you are testing a Web application, the Select Browser dialog box opens. Select the browser and click Run.
    Note: If multiple applications are configured for the current project, the Select Browser dialog box is not displayed.
  5. Optional: If necessary, you can press both Shift keys at the same time to stop the execution of the test.
  6. When the test execution is complete, the Playback Complete dialog box opens. Click Explore Results to examine the results of the tests with TrueLog or click OK to close the dialog box.
Note: When you execute your tests, and Visual Studio starts the components that are needed for the execution of the tests, Visual Studio will clean up everything when the test execution is finished, terminating the Open Agent and all open browser windows.