Microsoft® VisualStudio Launcher (visualstudio.jar)

The Microsoft® VisualStudio launcher allows interfacing with VisualStudio scripts.


Configuration

The visualstudio.xml file allows pre-configuring the launcher with some default values:

Parameter Description
General > Test root path This must indicate where are located the tests. This is a root path. Each test in XStudio has a canonical path that will be appended to this path.
This path MUST not include an ending slash.

Default value is: C:/my_test_repository
General > Library name Default value is: my_tests.dll
VisualStudio > Runner pathv This must indicate where is the Visual Studio executable

Default value is:
C:/Program Files/Microsoft Visual Studio/Common7/IDE/ MSTest.exe
VisualStudio > results file path This must indicate where is located the results text file

Default value is: C:/my_test_repository /testResults.trx


These values can be changed while creating the campaign session from XStudio.


Requirements

The tests are executed by the launcher using this syntax:

<runnerPath> /testcontainer:<libraryName> /test:<testPath>.<testName> /resultsfile:<resultsFilePath>

And this is executed from the working directory <testRootPath>

The test will be marked as passed or failed depending on the log file generated by VisualStudio. The xml file is parsed by the launcher. The xml log and the execution trace of the command are also attached to the testcase execution in XStudio.