coded-ui-tests

CodedUi :How to go about for search property of window when its title name keeps changing?

南笙酒味 提交于 2020-01-05 08:41:46
问题 I am trying to automate a click on control within window, and depending on what is selected within window, the tile of the window changes.Like sometime it is "abc",second time it will be "123".There is no common string in window title for two scenarios When I recorded the coded ui test, it assumed the title as "abc". Now I want to customize the test somehow, so that any title will work. How can I do so? Any help will be great. 回答1: You can change the searchProperties in runtime, like this:

Coded UI: Find Element(s) by CSS Selector

拈花ヽ惹草 提交于 2020-01-04 04:21:28
问题 I am trying to build out a harness for a page so that we can write tests against it. What I would like to be able to do is use a CSS selector to find the given element or elements instead of manually modifying the SearchProperties or FilterProperties.For a web test the CSS Selector seems far more intuitive then the SearchProperties do. Is there some mechanism for doing this that I am simply not seeing? 回答1: Try this... https://github.com/rpearsondev/CodedUI.jQueryExtensions/ It adds extension

How to monitor the memory usage of the process hosting codedui test (QTAgent)?

做~自己de王妃 提交于 2020-01-03 06:06:29
问题 my codedui test have a memory leak and i want to better identify the source of that leak - do you know a way to monitor the QTAgent process who runs the codedui test? 回答1: Not sure if you need the agent to be running, but the following is advised by Microsoft to find memory leaks: Launch performance monitor by typing perfmon into Start > Run . Click on the performance monitor and the green plus icon. Add the following counters for your process here: Process-->Private Bytes Process-->Virtual

Free automated Testing tools for MFC based GUI App

两盒软妹~` 提交于 2020-01-02 09:57:19
问题 I am a complete newbie to Windows development and test platforms. I am working on a legacy MFC based GUI application and looking for tools that would help with automated testing of the UI. A whole bunch of tools came up when I searched but most of them don't seem to support MFC. The options I considered were: a. Coded UI/ UI Automation - Seems like a good fit but not supported in Visual Studio Professional 2012 (which is my dev env). b. Google test - no MFC support ? (Pls share any pointers

Why should we use coded ui when we have Specflow?

こ雲淡風輕ζ 提交于 2020-01-02 01:55:13
问题 We have utilized Specflow and WatIn for acceptance tests at my current project. The customer wants us to use Microsoft coded-ui instead. I have never tested coded ui, but from what I've seen so far it looks cumbersome. I want to specify my acceptance tests up front, before I have a ui, not as a result of some record/playback stuff. Anyway, can someone please tell me why we should throw away the Specflow/watin combo and replace it with coded ui? I've also read that you can combine specflow

Requirements for Creating A New Coded UI Testing Project In VS2017 Enterprise

为君一笑 提交于 2020-01-02 00:13:49
问题 I've just installed Visual Studio 2017 Enterprise (15.0.26228.4 D15RTWSVC) with .NET Framework Version 4.6.01055. I cannot add a new coded UI test project to a new solution because I cannot find that project type in the 'New Project' dialog. I assume it's because I didn't install some optional module when I was installing Visual Studio. Which optional module do I need to install to be able to add new Coded UI test projects to solutions in VS2017 Enterprise? 回答1: In Visual Studio 2017

The playback failed to find the control with the given search properties in Coded UI

旧时模样 提交于 2019-12-30 12:50:13
问题 I'm new in Coded UI test, so here's a "simple" question: Trying to navigate through the options of a menu, i've recorded actions nad tried to playback. I got the following message: The playback failed to find the control with the given search properties Here's the code generated by recording tool: public void NavegarSituacao() { #region Variable Declarations HtmlCustom uINotíciasCustom = this.UIHttpcmshomepsafecomIWindow.UIHttpcmshomepsafecomDocument.UINotíciasCustom; HtmlCustom

Visual Studio Coded UI test won't run - startup object empty

ⅰ亾dé卋堺 提交于 2019-12-29 01:50:09
问题 Created a recorded Coded UI test - it worked fine but won't run today. Error: "A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project." Googled and made sure this test is setup as startup project. However, when I go to the properties of the project, "Startup object" under Application tab is set to "(Not set)".

Running Coded UI test remotely

◇◆丶佛笑我妖孽 提交于 2019-12-28 13:51:34
问题 I have to run Coded UI test remotely on a VM. I am using Mstest.exe to execute the test cases. Now when i run it , through Windows scheduler , it fails because it need "Active Desktop ". I read it a few places that we need to use test agent. But i dont want to configure test agent and test controller just to set "Active desktop", Is their something else that i can do ? 回答1: Well there is no hard in setting up a test controler and a test agent, it is really easy and its the best way to go. You

Coded UI Tests - Clicking button does suddenly not work

六月ゝ 毕业季﹏ 提交于 2019-12-25 18:49:15
问题 I have a Coded UI test for a WinForms application. Running the test on my developer computer (Windows 7) works fine, but on the test agent running tests nightly clicking a toolbar button fails the third (!) time it is being clicked in the test. The button opens a new window in the application (which it does the first 2 times an in multiple other tests). Looking at the test executing it seems like the mouse hoovers over the button, the test log reports that the button was clicked, but the test