Thank you for contacting us with this query.
Since you are working in a Visual Studio solution, you probably are familiar with the settings you can switch for the test execution from the Visual Studio Test Explorer
. These settings can be also used for the test execution with the VSTest.Console.exe, passing the file to the /Settings option
of the VS command line runner. Though, it is important to note that the Multibrowser Execution
setting from the Test Studio test list settings
is not working in the context of Visual Studio project and cannot be set for the VS Test Explorer or the VSTest.Console test runs.
However, still there is a solution to cover the requirement for running a test against the different browsers - prepare few separate settings files defining the desired browser and possibly other settings. Then, add separate execution tasks passing the different settings file to simulate multibrowser test runs.
In addition to the above suggestion, I would like to mention that you can pass multiple test files in a VSTest.Console command
separating these with interval - that way all these will be executed from this task. Below is an example command:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow>vstest.console "C:\Visual Studio 2015\Projects\TestStudioProject11\TestStudioProject11\Parent.tstest" "C:\Visual Studio 2015\Projects\TestStudioProject11\TestStudioProject11\ParentTest1.tstest" "C:\Visual Studio 2015\Projects\TestStudioProject11\TestStudioProject11\ParentTest2.tstest" /TestAdapterPath:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\t1fos0ab.vkx"
I hope these details are helpful for you. Of course, in case of further questions, please let me know.