Not get results from running MSTest

3 posts, 0 answers
  1. Terri
    Terri avatar
    12 posts
    Member since:
    Feb 2012

    Posted 14 Mar 2012 Link to this post


    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. Terri
    Terri avatar
    12 posts
    Member since:
    Feb 2012

    Posted 15 Mar 2012 Link to this post

    Any answer for this one?
  3. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 16 Mar 2012 Link to this post

    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
Back to Top