coded-ui-tests

MSAA Fails to find winforms controls

喜夏-厌秋 提交于 2019-12-22 20:07:06
问题 I am using Coded UI to automate an application. In the automation process a complex process happens inside the application (loading a PowerPoint inside the application). After this process I can't continue the test because MSAA unable to find any controls in the application.I am using Inspect.exe, before and after the automation fails. I have attached the screen shot of Inspect tool before and after the failure. Is there any solution to overcome this issue? I can't continue automation testing

TF400813: Resource not available for anonymous access. Client authentication required

血红的双手。 提交于 2019-12-22 14:49:08
问题 I am working on the CodedUI Test Automation project. i am developing a framework in which i am trying to access Test Cases in VSTS through RestAPI . I have worked on an MVC application previously in which i did the same thing to pull data from VSTS using RestAPI . Now the problem is i am not able to access the VSTS . Everytime i am trying to access the VSTS , i got the exception TF400813: Resource not available for anonymous access. Client authentication required . I am using the same PAT

How do I get ItemStatus from a UITestControl?

自作多情 提交于 2019-12-22 13:57:00
问题 The UI Automation framework has a base class, AutomationElement, that has a property, ItemStatus, that can be used to store arbitrary strings. I'm trying to get that property from the Visual Studio 2010 Coded UI Tests base class, UITestControl. 回答1: Look at the Coded UI Tests generated code for WpfControl . It has a property, NativeElement. This property is an AutomationElement . public abstract class WpfControl : UITestControl { ... public virtual object NativeElement { get { return ((object

Changing URL in a CodedUI Test [closed]

a 夏天 提交于 2019-12-21 17:37:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have created a codedui test in Visual Studio 2012. The problem is that I need to be able to change the URL occasionally that opens

Launching the “Coded UI Test Builder” without creating a new Coded UI Test

痴心易碎 提交于 2019-12-21 05:06:00
问题 The Coded UI Test Builder application in Visual Studio is very useful when 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

Microsoft UI Automation Library Vs Coded UI Test

主宰稳场 提交于 2019-12-20 12:21:15
问题 I'm very much new to Test Automation kind of thing. Recently I've been assigned to a project where I have to write an application (or, a script may be, I'm not sure) that will automate the UI testing of a CAD-like WPF application which misses lots of AutomationId s. After doing a little searching on MSDN and other sources I'm a bit confused about whether I should use the Microsoft UI Automation Library or the new Coded UI Test feature included in VS2010. I'm not getting the clear picture of

How do I implement AssemblyInitialize/AssemblyCleanup in my CodedUITest in MSVS 2010?

ⅰ亾dé卋堺 提交于 2019-12-20 07:44:05
问题 I am trying to implement AssemblyInitialize/AssemblyCleanup attributes in my Microsoft Visual Studio 2010 for the exact purpose as stated here. That link even describes the process which I need to follow to implement the code. A quick summary of that purpose is to create an initial block of code which will run right before any test no matter which of the codedUITests I run in the solution and then a block of code which will run after the last codedUITest is completed. Example: I need to open

Coded UI test takes 2-3 minutes to pass

試著忘記壹切 提交于 2019-12-20 06:12:35
问题 So I am working with Coded UI to run some automated tests and one of the tests takes an extremely long time to complete. I used breakpoints and found that after End Get in the bottom block of code, nothing happens for minutes and then finally the Assert.AreEqual completes and the test passes. I tried changing a few playback settings but nothing changed. Does anyone know what is going on, and how I can fix it? -The first block of code is a generated Assert method that gets called by the test

Could not load file or assembly 'WebDriver, Version=2.35.0.0 …'

江枫思渺然 提交于 2019-12-20 04:07:21
问题 I followed steps of "Selenium components for Coded UI Cross Browser Testing". But I had download the lastest version of: WebDriver.ChromeDriver.win32 2.4.0 http://www.nuget.org/packages/WebDriver.ChromeDriver.win32/ selenium-dotnet-strongnamed-2.37.0 https://code.google.com/p/selenium/downloads/list then I installed those in my machine of 64bits but the Visual Studio 2013 present the next problem when I try to run automated test: System.IO.FileNotFoundException: Could not load file or

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

橙三吉。 提交于 2019-12-20 01:58:12
问题 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 credentials, and then clicks ok. I have an assertion which checks for the correct url after the login. This test appears to function correctly. My problem is that it closes the browser after the test runs. I need to keep the browser open, so I can run the next test in my sequence. How do I do this? At the moment, I don't have