Questions tagged [coded-ui-tests]

Coded UI tests are automated User Interface tests that can be created with Visual Studio to test different kinds of user interfaces, allowing for verification of user application functionality.

Coded UI tests are automated user interface tests which can be created with Visual Studio starting from 2010 in each of the versions Ultimate and Premium, and starting in 2015 in Visual Studio Enterprise.

A Coded UI test can be used for the functional testing of the UI controls in Web, WPF, Silverlight and Windows Forms user interfaces.

Coded UI Test for automated UI-driven functional testing is deprecated. Visual Studio 2019 is the last version where Coded UI Test will be available.

1833 questions
53
votes
4 answers

Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515)

When I run CodedUI Test from a small Console tool via vstest.console.exe from a scheduled task I sometimes see this error message on different PCs: error : Could not load file or assembly 'file:///C:\foobar.dll' or one of its dependencies.…
magicandre1981
  • 24,538
  • 3
  • 68
  • 112
41
votes
9 answers

How to access TestRunParameters within RunSettings file

Reading through https://msdn.microsoft.com/en-us/library/jj635153.aspx I have created a .RunSettings files with a few parameters similar to the example:
Kritner
  • 12,693
  • 10
  • 45
  • 68
33
votes
7 answers

How to exclude certain tests in the Visual Studio Test Runner?

I have attributes on certain tests that I ideally don't want to run on every build. Most of my tests are normal unit tests and I do want them to run on every build. So: how can I exclude a test by category or project type? For example, I'd like to…
Fenton
  • 206,497
  • 63
  • 356
  • 369
26
votes
1 answer

Why System.Core fails to load when adding Coded UI support for Silverlight 5 application?

I'm having the following problem: Trying to add support for creating coded UI test for Silverlight 5 application ([MSDN][1]). First step is to reference assembly Microsoft.VisualStudio.TestTools.UITest.Extension.SilverlightUIAutomationHelper.dll in…
Cortlendt
  • 1,980
  • 2
  • 23
  • 43
24
votes
3 answers

Coded UI Test is slow waiting for UI thread

I've added Coded UI Tests to my ASP.NET MVC solution in Visual Studio 2013. I was dismayed to see how slowly the tests run; each page just sits there for up to a minute or more before the test machinery wakes up and starts filling in the form…
Bob.at.Indigo.Health
  • 9,166
  • 11
  • 51
  • 93
22
votes
3 answers

VS 2010 Coded UI Test - Launch Referenced Application

I'm using Visuial Studio's Coded UI Tests to run Automated UI tests on a WPF Application everytime a build runs on my TFS server. The problem I am running into is dynamically launching the executable based on the path where it was just built to,…
Cory
  • 221
  • 1
  • 2
  • 3
19
votes
1 answer

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

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…
SalamiArmy
  • 393
  • 1
  • 3
  • 13
17
votes
8 answers

Is it possible to run Coded UI tests without having to connect via remote desktop?

I'm attempting to automate Coded UI tests. My test controller launches the tests on a remote test server, which I normally access via a Remote Desktop connection. Is it possible to run the Coded UI tests without having to connect via remote…
Ciaran Gallagher
  • 3,653
  • 7
  • 47
  • 90
14
votes
2 answers

CodedUI tests - start a browser once for the entire set of tests

I'm writing some codedUI tests in VS2010 to test a web application. I'd like to be able to open the browser once for the entire set of tests in the solution and then close it again when the tests finish. I've tried AssemblyInitialize attribute on a…
rythos42
  • 1,187
  • 2
  • 10
  • 26
14
votes
5 answers

cypress.io: contains() not waiting for element

We are writing UI tests with cypress, which is usually quite simple to use. But again and again I stumble over a tedious waiting problem. The scenario is pretty simple. The user clicks on the search button. Then he selects one of the elements with a…
Ash
  • 2,333
  • 4
  • 11
  • 18
13
votes
1 answer

coded ui test project, obtain value of asp label

Created a simple calculator app in webforms. User enters a number in a text field MainContent_numberTb and clicks on results button. Added a new 'coded UI Test Project' to my solution. Have tested the UI by adding '5', This all works fine. Would…
John
  • 3,633
  • 18
  • 62
  • 135
12
votes
4 answers

Microsoft UI Automation Library Vs Coded UI Test

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…
atiyar
  • 6,349
  • 6
  • 29
  • 62
12
votes
5 answers

Failed To Perform Action On Blocked Control Exception? Using Coded UI?

I am automating the WPF application, when i record "WpfComboBox" Control and performed select index on that control it is throwing error like "Failed To Perform Action On Blocked Control Exception". Please help me to over come this problem.…
Surya sasidhar
  • 27,349
  • 55
  • 130
  • 212
12
votes
2 answers

Any way to automate SFSafariViewController in UI tests?

Is there any way to automate SFSafariViewController? I like the Xcode 7 UI test feature, but it seems it does not support SFSafariViewController automation. Some of the UI flows I am testing require a web browser so the app uses…
Bryant Luk
  • 2,429
  • 21
  • 22
12
votes
3 answers

How to use AutomationProperties.Name?

Question Can anyone please explain (preferrably with a code example) how the AutomationProperties.Name property is used programmatically and declaratively with XAML? Explanation I understand that the Coded UI Builder in Visual Studio 2010, for…
Lernkurve
  • 17,488
  • 24
  • 77
  • 110
1
2 3
99 100