Running a web application using coded user interface tests in VS 2010

I have a solution with a web application and a test project. In the test application, the ui tests of the web application were programmed. How can I run a web application when running tests?

I tried

  • Adding the TestSetup method to start the web server through System.Diagnostics.Process. I don't like this because it seems awkward and the ui coded tests are not really inheritable.
  • adding the installation script in the test settings to start the web server (the same command line) through the batch file. However, the batch file never exits and, ultimately, is disabled. I tried to start the web server using the start command, but it did not work - it works fine when you start it from the command line, but not from the test script settings.

I thought that maybe I just started IIS in the background and pointed it to a specific folder. Then deploy the web application to this folder. And let the test project be tested on IIS.

It seems like a lot of work. There should be an easier way. I want to do this on several development machines, as well as on a TFS build machine through planned or continuous integration.

Any thoughts?

thank

+5
2

- ( ) IIS. 3 4 . . , IIS. , -.

0

, IIS, .

- ( , ), / . BrowserWindow.Launch( "localhost: appPort/whateverPageToStartOn" ); appPort - IIS.

TFS, , , . (dev, test, prod, whatever) . Microsoft Test Manager (MTM) , .

0

All Articles