开发者

Launching the "Coded UI Test Builder" without creating a new Coded UI Test

The Coded UI Test Builder application in Visual Studio is very useful wh开发者_StackOverflow社区en hand-writing Coded UI Tests. It has an 'inspector' type tool that shows properties for a selected control, which makes searching for the control very simple.

At the moment the only way I am able to launch this tool is by going through the 'add new Coded UI Test' wizard. This launches fine, however it

  • creates a new empty coded UI test
  • closes down when I next run a test or start debugging in Visual Studio

Has anyone advice on how to launch the tool without adding a new Coded UI Test? Any other suggestions around inspecting controls with a hand-written Coded UI Test? I'm working in WPF if it makes any difference.


With a class like this one, right clicking inside the test method should give you a "Generate Code for Coded UI Test" -> "Use Coded UI Test Builder" option. It will still minimize Visual Studio, but it shouldn't create a new test method. There is also a keyboard shortcut: CTRL+\, CTRL+C

[CodedUITest]
public class MyUITests
{
    public MyUITests()
    {
    }

    [TestMethod]
    public void StartMyTest()
    {
        //right click in here to get the context menu option
    }
}


  1. You can open Visual Studio command prompt
  2. execute "codedUITestBuilder.exe /standalone"


You can also right click the UIMap.uitest file in Solution Explorer and select "Edit with Coded UI Test Builder" No need for a Coded UI Test this way


Right click inside [TestMethod] and you will get the option for Edit with coded ui test builder.Click on that you can get test builder. If you right click outside of [TestMethod] than "Edit with coded ui test builder" option will not come


You can open coded UI builder by right clicking in between the Test Method or scripts and click on "Edit with coded ui test builder".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜