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 interface.

Filter by
Sorted by
Tagged with
8
votes
0answers
406 views

Error: Unable to find window while the window is already displayed in LDTP

I'm using LDTP to write a GUI test case script in python. I'm running the script in a virtual machine by nosetests. And I get a block with the error of unable to find window X, while window X is ...
5
votes
2answers
845 views

Coded UI Test case execution issue

I have some Coded UI test cases which are using external files e.g. XML files that contain the Element Name and ID to be located over a page. This XML file is used by Test Cases (under TestMethod ...
5
votes
1answer
471 views

Coded UI not able to recognize menu items

I am using Coded UI for creating functional tests of a WPF application. That application is having a main menu which user needs to click in order to navigate to different screens. Issue is: If I ...
4
votes
3answers
290 views

How can I successfully introduce automated user interface testing to my organization?

Our development teams are good on writing unit tests and also for using the same framework (rspec in our case) for writing integrated tests. There is a strong desire to increase automated UI ...
4
votes
1answer
6k views

Coded UI - How to launch website in IE InPrivate Browsing mode?

I am trying to launch my website by default in IE InPrivate mode so I can get rid of tons of code to handle multiple scenarios (listed below) script may counter during execution. My goal is to run ...
3
votes
1answer
6k views

How to use .xlsx Excel files as Data Source for Coded UI test?

I want to use ".xlsx" format Excel file as Data Source in my hand coding Coded UI test. The best information I get is found in MSDN: Creating a Data-Driven Coded UI Test, which has useful information ...
3
votes
1answer
4k views

Coded UI - How write code to use existing browser (if exists) otherwise launch new browser window

I am stuck badly with this piece of code. I am trying to write a code to use existing Browser if it exists otherwise launch my website in new browser window. Currently, if browser is not open with ...
3
votes
8answers
421 views

Video / Screen Capture based testing tool?

Does anyone know a good piece of software which software engineers / testers / etc can use to do either (1) manual testing or (2) automated testing? It should have the ability to do a screen capture ...
3
votes
0answers
183 views

Issue with multiple tabs on WPF application using CodedUI

I am working on creating automated test cases for a WPF application using CodedUI. This application contains multiple modules like M1, M2, M3 etc. and I can open these modules from the menu item links....
2
votes
3answers
1k views

How much C# should I learn in order to work with CodedUI?

I will switch to CodedUI from UFT for test automation and don't want to stay with VB any more. I am learning C# from Pluralsight currently and wondering how much and what level I should complete to be ...
2
votes
4answers
773 views

org.openqa.selenium.NoSuchElementException when I run the selenium code by using a loop

I'm getting an Exception as below ,when i run the selenium code by using a loop. It executes some steps and then display the message. Exception in thread "main" org.openqa.selenium....
2
votes
2answers
6k views

How to set ComboBox value in Coded UI using Value Attribute?

In coded UI is there a way to set the value of a ComboBox using the value of Value Attribute. Consider the following Html of a ComboBox: <select name="ParametersID" tabindex="-1" title="ABC" class=...
2
votes
2answers
102 views

What techniques can I use to determine the reasons for intermittent automated UI test failures?

Intermittent failures of UI feature specs that run in browsers but fail intermittently are the bane of automated testers lives and I've experienced them at every place I've worked at. Not so much ...
2
votes
2answers
2k views

Automation Testing Tool Options for Desktop Applications

I'm in the process of researching solutions for desk application testing for a product my company developed. There's no API, so I'm looking for other software solutions. I didn't see any recent ...
2
votes
1answer
618 views

Coded UI Test Explorer execution order?

What is the order of test cases execution in Coded UI? I have my test cases created in Coded UI and they all follow a naming convention e.g. _, so my test cases name looks like: ...
2
votes
5answers
4k views

How to Select/Check Radio Button Using Coded ui?

I am testing web based application and want to select radio button, but am unable to select it using coded UI automation. I have tried to find it using ID, Name, Value but all throwing the same error. ...
2
votes
2answers
376 views

Coded UI automation not working in Chrome

I have installed the following: Visual Studio 2017 Chrome Browser - Version 67.0.3396.99 (Official Build) (64-bit) Chrome Driver- 2.40 While running a coded UI automation in Visual ...
2
votes
1answer
91 views

Is it possible to Serialize a UITestControl (when using Coded UI)?

Let me start by saying that currently I am not using the record and playback features of Coded UI, nor am I using the UIMap features. I am trying to speed up the performance of my Coded UI tests (...
2
votes
1answer
908 views

Issue with Radio buttons selection in Coded UI

I am using Coded UI for creating some test cases for a web application, while doing the same I have encountered an issue. I am not able to select a Radio Button using their Displayed Text, however if ...
1
vote
3answers
442 views

How to apply POM to single window application using CodedUI

How can one apply Window Object Model to a WPF application (or POM for web application) that actually doesn't contain different windows? Actually, I'm working on automating WPF application using ...
1
vote
2answers
101 views

Quickest way to get ID and Name of all fields in single go

Currently, I am using the traditional way i.e. 'Inspect Element' (or Firebug or IE Developer) for getting value of ID and Name attributes of any field present over page for which I am creating test ...
1
vote
1answer
2k views

Automated UI Testing Tools for UWP Win10 Touchscreen Tablet Mobile Apps

What are some tools for Automated UI Testing of a UWP Windows 10 Touchscreen Tablet App? I would prefer a tool that allows emulation, records steps, writes the code, outputs errors in notepad, and ...
1
vote
2answers
783 views

Cast UITestControl to AutomationElement

Using the below code (for example) I can cast AutomationElement to UITestControl AutomationElement e = AutomationElement.FromHandle(Window.WindowHandle); UITestControl u = UITestControlFactory....
1
vote
1answer
1k views

CodedUI vs. UI Automation

Does CodedUI uses the Microsoft UI Automation for finding WPF controls and taking any action (like click or adding value to text box)? If not what is the difference between both. The reason why I ...
1
vote
1answer
501 views

Coded UI selecting a Check box inner

This is my code I need to select the checkbox but couldn't select the checkbox. <label class=""> <span class="label-input"> <div class="icheckbox" style="position: relative;"...
1
vote
1answer
480 views

How beneficial to install DevExpress extension to my Visual studio 12?

I am using Visual Studio Coded UI as a test automation tool. Our project manager asked us to install a DevExpress extension to VS2012. I have been searching online but I didn't figure out how ...
1
vote
3answers
2k views

Is it possible to use MS Coded UI Test framework to test Java GUI application?

MSDN page Supported Configurations and Platforms for Coded UI Tests and Action Recordings tells that Java platform is not supported. But now Java development is possible with Visual Studio Team ...
1
vote
1answer
1k views

How to read value from XML [closed]

I know this is a common question, but I have a requirement where I need to read values from XML file. Sturcture of the XML file is <?xml version="1.0" encoding="utf-8" ?> <root> <...
1
vote
1answer
109 views

How to run codedUI test on visual studio build pipeline

I have a simple test case developed by CodedUI: Open run by windows + r Add "iexplorer" Hit enter Navigate to my webpage Do an assertion. I can run this on my local PC, but is there any way to set ...
1
vote
1answer
55 views

Creating abstract test in Intern js

In the application I am working on for UI testing with intern. There are certain modules that have similar components and functions. So I'm trying to figure out the way to create an Abstract test for ...
1
vote
1answer
816 views

Not able to click Left Navigation icon using Coded UI

I am using Coded UI for creating Automated test cases and have encountered an issue. There is a menu icon inside on the Homepage and clicking on this icon will expand the Left Navigation, so that user ...
1
vote
1answer
106 views

Coded UI slows down in executing JS enabled fields

Coded UI test cases doesn't respond well on time if they encounter any field having JavaScript validation. Issue: Currently I am facing some issues with the time taken by Coded UI in execution of ...
1
vote
1answer
210 views

Coded UI data driven Load test issue

I have Web Performance Test created in Coded UI 2013, this test uses a csv file for providing the Form Post-parameters value. Now, from this performance test I have created a Load Test with number of ...
1
vote
2answers
2k views

Not able to find Coded UI .trx result files

I am using Coded UI in VSTS 2013 for creating automated tests using Coded UI Test Builder. I am able to create tests successfully but not able to view their result files. I found that there is a ...
1
vote
1answer
1k views

I'm getting the exception "Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException" even though control is available

As the title says i'm getting this exception when running my coded U.I Test. Currently i've researched and i cant pin point on whether this is an issue with IE9 or with my program or even VS itself. ...
1
vote
0answers
143 views

Should I be using DeploymentItem attribute in CodedUI?

I have few automated test cases written with CodedUI, and I'm using Excel file for keeping test data as my DataSource and also using XML files for keeping the Element locators (ID, Name etc.) All ...
1
vote
0answers
115 views

Setting text on WpfEdit control throws pile of exceptions that are then caught -- Is this typical?

I'm doing some coded UI automation, and I've noticed something odd when debugging. When I try and set the text on a WpfEdit control Control.Text = "foo", the system throws a gigantic pile of ...
1
vote
0answers
265 views

Issue between UiaComWrapper and UIAutomation AutomationElement

Both UiaComWrapper and UIAutomationTypes contain 'AutomationElement' class and its related properties. UiaComWrapper is added by default for every CodedUI project. How can I change UiaComWrapper '...
1
vote
0answers
400 views

Specflow CodedUI Generator Plugin not generating feature files

Okay. So here is where I am at. I am using Specflow 2.2.0 to pair automated unit testing with our CodedUI testing effort. I am developing a plugin to add the CodedUI Test attribute to the Specflow ...
1
vote
0answers
516 views

Coded UI test cases not running on 64 bit machine

I have created some test cases in Coded UI on 32-bit machine and now I have got another machine for running these test cases (which is 64 bit machine), when I executed my test cases using that machine,...
1
vote
1answer
2k views

Suggest some freeware GUI Automation Testing tools for Windows Desktop Applications [duplicate]

Please suggest some tools for automated GUI Testing of Windows Desktop Application. Freeware tools which can compete with Coded UI test projects.
1
vote
0answers
626 views

Coded UI doesn't work in windows 10 and Visual studio 2015

When I try to record and play a window app like calculator it does not record while it works for a web site and browsers. My windows version is 10 and Visual Studio version is 15. It says you ...
1
vote
0answers
2k views

Coded UI Test cases taking too much time to execute

Update: I used some hit and trial method for this issue and found that this issue of slowness occurs only when Coded UI (or my code) encounters any Date-Type text field. If there is no Date-Field over ...
1
vote
0answers
48 views

When I create 2 test case and record, it works fine individually but when I make them as 2 shared scripts it fails

When I create 2 test cases and run individually in MTM it works fine but when I make them as shared script and put them in one single script file and try to run it. It types same character in the ...
0
votes
1answer
497 views

How to give multiple Class names with or condition in Coded UI search properties [closed]

this.SearchProperties[WinWindow.PropertyNames.ClassName] = ".class1 or .class2";
0
votes
1answer
1k views

How to reuse non-IE browsers in CodedUI using C#

I'm trying to execute some CodedUI test actions in Visual Studio 2012 using various browsers. In order to execute several test methods without losing the browser window that is open, for IE I've ...
0
votes
1answer
103 views

Coded UI - How can I assert a date field (combo box) which is changing name dynamically?

I am making automation for Desktop .net application. one of the challanges i am facing is date combo box which is name changing everyday uIItem22Ağustos2016PazDropDown part changing everyday... ...
0
votes
1answer
62 views

MS test Manager Training?

Using MS Test Manager to manage my test cases and looking for a certification course for Test Manager and automation testing using Coded UI. Any suggestions on finding a company that offers MS ...
0
votes
1answer
372 views

Data Driven testing using Coded UI

Is it possible to access more than 255 columns of Datasource (Excel) using Coded UI, currently I am using VSTS 2013 and found that Coded UI is not able to access more than 255 columns from the ...
0
votes
1answer
632 views

Issue with Coded UI hand written Test cases

I have a test case with below mentioned code: [TestMethod] public void _001_Search() { BrowserWindow brw = BrowserWindow.FromProcess(proc_browserProcessNo); TopLeftNavigationLinks_Elements....