开发者

Running nunit gui from asp.net mvc web page

I am trying to launc开发者_C百科h the nunit gui app from an asp.net mvc web page (don't judge!) Here is the controller code:

[AuthorizeUser]
    public class TestController : ApplicationController
    {
        //GET: /Test/Index/
        public ActionResult Index()
        {
            //start process.
            var process = new Process();
            process.StartInfo.FileName = @"H:\Navtrak\Test\NUnit\nunit.exe";
            process.StartInfo.Arguments = @"H:\Navtrak\Test\TestCases\SystemTest\bin\Debug\SystemTest.dll";
            process.Start();

            return View();
        }
    }

It actually launches nunit.exe (I can see it in task manager), however it does so silently. The nunit gui app doesn't actually show up. Is there some setting on Process that I'm missing or is this related to launching it from an MTAThread in ASP.NET MVC?


Are you running through IIS? If so, it runs as a service. Have you checked the "Allow sdervice to interact with the desktop" on the "Log On" tab?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜