Running Silk4NET Tests

By default, Silk4NET 19.5 or later uses a 64bit JVM for keyword-driven tests. To run keyword-driven tests with Silk4NET, set the default processor architecture under Test > Test Settings > Default Processor Architecture in the Visual Studio menu to x64. Alternatively, you can specify your own 32bit JVM for Silk4NET by setting the SILK_KEYWORD_DRIVEN_JAVA_HOME environment variable.

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.
  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.