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
0
votes
0 answers

Coded UI - How to write search and filter in Page object model

I am learning Coded UI test automation at the moment and developing a page object model for my POC. Could someone provide me some input/guidance on how to write a page object method for an object that requires search and filter together, Say to…
Vinee
  • 402
  • 2
  • 10
  • 27
0
votes
1 answer

How to validate(assert) that the default value selected in a combo box is correct

I have a UI,for which I need to perform some tests. I have a testcase that has to verify the default value selected in a combo box. I have been using coded UI, and tried to reverse code. But the statement, Assert.IsTrue(comboBox.SelectedItem ==…
JC13
  • 11
  • 4
0
votes
1 answer

Issue with RibbonComboBox in CodedUI Automation

1)I have a telerik RadRibbonComboBox control as part of Ribbon Header and a regular RadComboBox control in body in my application. each combobox is populated with few items. 2)When an item in regular RadComboBox control is selected as part of…
0
votes
0 answers

Coded Ui Test - locally passed / remotely not

My Coded UI Test should Save/Download a File(Pdf, Excel) from IE10 and I am using this code: var savePopUp = new UITestControl(GetBrowserWindow()) { TechnologyName = "MSAA" }; …
0
votes
2 answers

Need help print list of strings

i am trying to print all innertext values for class xyz, but this is all i get printed "System.Collections.Generic.List`1[System.String] public List getL1Names() { UITestControl document = browinX.CurrentDocumentWindow; …
xRay
  • 11
  • 5
0
votes
2 answers

Tests without active browser window necessity

Is there any possibility to run written CUIT tests without necessity of having active browser window? Basically, what I would like to have is just to run a bunch of tests on local machine. And I need to wait until all the tests are executed (each…
Eugene
  • 3
  • 1
0
votes
0 answers

why some of the button click takes more than expected time in coded Ui Tests

I am using Microsoft.visualStudio.TestTools.UITesting for UI automation and found that sometimes for a particular buttons , button click takes more than expected time like 3 minutes or so. My code is as follows…
priya
  • 852
  • 18
  • 39
0
votes
0 answers

Comparing two images using ImageComparer of Microsoft.VisualStudio.TestTools.UITesting

I need to compare two images using ImageComparer.Compare(currentImage, savedImage, tol, out imageDiff); i implemented the code in the following manner but always get false as the result . Please help where I am going wrong. private static Image…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

How to organize the execution of each test on a separate virtual machine?

I would like to ask the public how to organize complex integration tests when you need to start a virtual machine to run each test. First, let me describe how organized tests we have now and what I do not like this. The process is organized using…
0
votes
2 answers

CodedUI test - can't send plain text password into input field

at some point when I send password into the input field on the form, looks like it gets encrypted. Password length is 8, but CodedUI is entering more characters, it's visible during test execution. Any idea, how to pass just string without any…
xmp
  • 104
  • 1
  • 4
0
votes
3 answers

Highlighting a particular control while capturing screenshot of a dialog in web page in c#

I have a requirement to capture the screen shot of the opened dialog with a particular html control highlighted ( whose static id is given ). currently I Implemented the code following manner : public void Snapshot() { Image currentImage =…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

VS2013 CodedUITest on Java client

I'm trying to use Coded UI Test (Visual C#) to test a Java client application and I am quite new to this. Currently I have built enough to enter the set client which is built in Java. My problem is that it seems that I cannot use the UIMap Coded UI…
PE_8892
  • 35
  • 5
0
votes
1 answer

Pass parameter to testsettings setup script

I am using MTM to run Tests using a specific "Test Settings". I added a Setup script which is a batch file and its working fine. The batch file is echo %1 %2 Now I am not able to figure out how to pass argument to this batch file. I tried all the…
0
votes
2 answers

Remote execution of CodedUI tests on Virtual machine by Test Controller and Agent

I would like to ask some help regarding the case below. The goal I would like to achieve is having a Virtual Machine Windows 7 SP1 running on it and having that my colleagues - developers - can run the CodedUI tests run on this machine. In order to…
AndrasCsanyi
  • 3,943
  • 8
  • 45
  • 77
0
votes
1 answer

The tests in tests Explorer are invisible

I am using .Net 4.5, Coded UI framework and CUITE extension to creating tests. When I am creating PageObjects, I should inherit it from CUITE_BrowserWindow class. Then the Tests in TextExplorer become unavaliable. Here is example of my…