frankhovin
New Member
- Joined
- Sep 4, 2017
- Messages
- 4
I'm new at Excel programming, so sorry if the question is too basic. However, I've been messing around with it a while without finding a way:
Is it possible to start the VS Developer Command Prompt and a specific command from an Excel macro?
That is, have an Excel macro that starts the VS command prompt, runs the MSTest.exe comand with data from the Excel sheet, and gets the results?
The shortcut for opening the Developer Command Prmpt for VS2015 is
The goal is to have the tests listed in the Excel sheet(s) and a button to run them and get the results back.
NB: Before anyone mentions anything about how Unit Tests are meant to be used, it's worth mentioning that these are Selenium Functional Tests organized and created as VS Unit Tests. So having a GUI and interface like this (Excel) would be a nice solution.
Is it possible to start the VS Developer Command Prompt and a specific command from an Excel macro?
That is, have an Excel macro that starts the VS command prompt, runs the MSTest.exe comand with data from the Excel sheet, and gets the results?
The shortcut for opening the Developer Command Prmpt for VS2015 is
Code:
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat""
Code:
MSTest.exe /testcontainer:TestProject.dll /test:MainFolder.Subfolder.TestClass.TestMethod
NB: Before anyone mentions anything about how Unit Tests are meant to be used, it's worth mentioning that these are Selenium Functional Tests organized and created as VS Unit Tests. So having a GUI and interface like this (Excel) would be a nice solution.