This is a migrated thread and some comments may be shown as answers.

Not get results from running MSTest

2 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terri
Top achievements
Rank 1
Terri asked on 14 Mar 2012, 07:15 PM

Hi,

I need to execute some MSUnit tests from Test Studio. So I created a test step with code below. I tested in a C# console program with the exact code and I got the test result in a folder; not sure why this doesn't work in the test studio?

The content of my RunUnitTest.bat is below, all the DLLs are in the same folder.
MSTest.exe /testmetadata:KBB.Trident5.vsmdi /testlist:KBB.Trident.Tests   /nologo

public void _0_unitTest_CodedStep()

{

 

// Start the child process.

Process p =

 

new Process();

 

 

// Redirect the output stream of the child process.

p.StartInfo.UseShellExecute =

 

false;

p.StartInfo.RedirectStandardOutput =

 

true;

p.StartInfo.FileName =

 

@"C:\test\RunUnitTest.bat";

p.Start();

 

string output = p.StandardOutput.ReadToEnd();

p.WaitForExit();

}

2 Answers, 1 is accepted

Sort by
0
Terri
Top achievements
Rank 1
answered on 15 Mar 2012, 10:58 PM
Any answer for this one?
0
Cody
Telerik team
answered on 16 Mar 2012, 08:40 PM
Hi Terri,

I am sorry but this forum is dedicated to supporting Telerik's Test Studio Express. We do not handle MSUnit coded test questions here.

Regards,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Terri
Top achievements
Rank 1
Answers by
Terri
Top achievements
Rank 1
Cody
Telerik team
Share this question
or