Executing Silk4NET Tests in TFS

Note: For detailed information on the steps in this task that describe functionality of TFS or Visual Studio, refer to the documentation of these products.
Note: This functionality is only supported with Visual Studio 2010 and Team Foundation Server versions prior to or equal to Team Foundation Server 2013.

You can execute your Silk4NET tests with TFS. Silk4NET does not have any special requirements on TFS and you do not need to change a Silk4NET project to execute it with TFS. To enable the interaction between Silk4NET and the AUT, implement the instructions given in How to: Set Up Your Test Agent to Run Tests that Interact with the Desktop.

To execute Silk4NET tests, perform the following steps, which might vary slightly depending on your actual setup and the used versions of Visual Studio and TFS. For additional information on the requirements and the configuration of Visual Studio and TFS, refer to the documentation of these products:
  1. In Visual Studio, open the Team Explorer View and click Connect to Team Project to connect to the TFS.
  2. In the Team Explorer View, add an existing Silk4NET project to the TFS.
  3. Optional: Add additional Silk4NET tests to your Silk4NET project.
  4. In the Team Explorer View, check in the tests into the TFS.
  5. Locate the solution folder in the solution that includes your Silk4NET project. If no solution folder exists, right-click on the solution and click Add > New Solution Folder to create the folder.
  6. Right-click on the solution folder and click Add > New Item > Test Settings > Test Settings to create a new test settings file.
  7. Optional: In the test settings file, you can configure the test controller that you would like to use to execute the tests under Roles.
  8. Double click on the new test settings file to edit it and to select appropriate test settings for your needs.
  9. In the test settings file, select Data and diagnostics.
  10. Check Silk4NET TrueLog to enable the Silk4NET TrueLog data collector.
  11. Optional: Under Roles in the test settings file, you can configure the test controller that you would like to use to execute the tests.
  12. In the Team Explorer View, create a new build definition.
  13. Add your test settings file to the build definition.
  14. Configure the build definition so that automated tests for your Silk4NET test project assembly are run after the build.
  15. In the Team Explorer View, run the build definition to execute the Silk4NET tests.
  16. Once the run is completed, you can review the build run results, including any collected Truelog files, from TFS.