How do I keep the browser open after a coded ui test finishes?

前端 未结 3 741
庸人自扰
庸人自扰 2021-01-21 01:32

I\'m using Visual Studio 2012 Coded UI tests for a web application. I have a test for logging into the app which starts the browser, locates the login dialogue, enters credenti

3条回答
  •  再見小時候
    2021-01-21 02:01

    Ok, so what I needed to have happen was the launch and login before each test. I thought what I wanted was to run the browser and login test first, and then each additional test. After reading more, I've decided what I actually wanted was to run this logic as initialization code for each test. I've done that by adding this code to the default [TestInitialize()] generated when I started the coded ui project in Visual Studio 2012.

提交回复
热议问题