mardi 24 février 2015

MStest fails when called as a batch file from Coded ui

I have a batch file which is used to run mstest.Clicking on the batch file executes the file just fine. However when the same file is called from a win form application, mstest fails. This behaviour seems quirky.Could anyone provide any reasons for this. I have used the following code to call it :



Process myProcess = new Process();
ProcessStartInfo myProcessStartInfo = new ProcessStartInfo(@"D:\CodedUI\CommonAutomationFramework\Driver_batch.bat");
myProcessStartInfo.UseShellExecute = false;
myProcess.StartInfo = myProcessStartInfo;
myProcess.Start();

Aucun commentaire:

Enregistrer un commentaire