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.

1849 questions
12
votes
2 answers

Writing Custom HTML Logs

My Coded UI Test is configured so that the output of the test automatically produces an HTML log file, the instructions for doing this can be seen here. Is there any way to customize this HTML log or make my own HTML logger so that mine is used to…
Kyle V.
  • 4,752
  • 9
  • 47
  • 81
12
votes
1 answer

BeforeFeature/AfterFeature does not work using SpecFlow and Coded UI

I am not able to define a [BeforeFeature]/[AfterFeature] hook for my feature file. The application under test is WPF standalone desktop applications. If I use [BeforeScenario]/[AfterScenario] everything works fine, the application starts without…
LeeWay
  • 793
  • 3
  • 16
  • 28
11
votes
1 answer

Check DatePicker calendar value in Android Espresso framework

I've got an activity with two DatePicker controls and some text inputs and buttons. I would like to test some scenario by espresso: Set date to first DatePicker. Set some text and click buttons witch trigger my business logic and set date to second…
maniek099
  • 319
  • 4
  • 19
11
votes
2 answers

Getting list of tests from Test Explorer in VS

This is kind of a "high level"/simple question. I'm trying to get just a list of all the tests that are populated in my Test Explorer in VS2012. I'd like to compare it to a list of tests and I was wondering if there is any way to just get all the…
jacksonSD
  • 677
  • 2
  • 13
  • 27
10
votes
2 answers

What is the difference between using System.Windows.Automation and Microsoft.VisualStudio.TestTools.UITesting for WPF UI Test automation?

What is the difference between using System.Windows.Automation (commonly known as UIA) API and Microsoft.VisualStudio.TestTools.UITesting (one that is used in Coded UI Test behind the scene) for implementing UI Test automation of a WPF application…
atiyar
  • 7,762
  • 6
  • 34
  • 75
10
votes
1 answer

Coded UI Test with Teamcity

I run MSTest to test WPF application (Coded UI Test) on a VM using Teamcity. I already installed test agent as interactive process but i keep getting this error in Teamcity log Error calling Initialization method for test class…
Gintama
  • 1,152
  • 20
  • 35
10
votes
4 answers

Hand Coding Coded UI Tests

Hi I am looking at using Coded UI Tests (CUIT) to test an application. I have tried the recording option and this is not flexible enough for me. If you use it on a different size screen it breaks. I know you can hand code the tests but I cannot find…
Jeff Finn
  • 1,975
  • 6
  • 23
  • 52
10
votes
4 answers

Running Coded UI test remotely

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…
Manish
  • 101
  • 1
  • 1
  • 4
9
votes
1 answer

CdkDragDrop unit testing events

So, i've been working on unit testing for my Angular app. I'm using Angular Material and i have a component which uses the drag-drop CDK cdk drag-drop API. the html code looks like this
9
votes
3 answers

Can't determine if a certain UITestControl exists in my web app

I'm currently trying to help automate some coded UI tests using C# for a web application. A frequent problem I'm encountering is that it can be extremely difficult to determine if a UITestControl object exists on the page or not. Unfortunately,…
8
votes
1 answer

Why should we use coded ui when we have Specflow?

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…
Marius
  • 9,208
  • 8
  • 50
  • 73
8
votes
1 answer

Loading VS2015 solution in VS2017, coded UI test references are not found

I opened our solution in Visual Studio 2017 but some testing references aren't found,…
bucktronic
  • 3,027
  • 2
  • 22
  • 27
8
votes
1 answer

AccessibleObject implementation for custom controls

I have a very simple controls library for Windows Forms and I am getting problems to implement accessibility. I have a very simple Form with a member that contains a list of controls of my library, and I have overriden the…
8
votes
2 answers

Combine Coded UI Test HTML Logs?

After running my Coded UI tests in Visual Studio 2012 I wanted the test results to be logged to an HTML file. After following this tutorial I was able to achieve this. Unfortunately, every single test gets its own HTML report at ..\TestResults\
Kyle V.
  • 4,752
  • 9
  • 47
  • 81
8
votes
4 answers

Coded UI tests - cannot resolve symbol UITesting

I'm trying to use the assemblies like this in a VS2012 project: using Microsoft.VisualStudio.TestTools.UITesting; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UITest.Extension; However I get a bunch of…
RobVious
  • 12,685
  • 25
  • 99
  • 181