coded-ui-tests

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

百般思念 提交于 2019-12-04 22:42:39
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 assume it's because I didn't install some optional module when I was installing Visual Studio. Which optional module do I need to install to be able to add new Coded UI test projects to solutions in VS2017 Enterprise? Richard In Visual Studio 2017 Enterprise on the installer's Individual components tab I see this: It appears to be an optional component.

Alternative methods to access controls that aren't exposed by MSAA/UIAutomation

余生长醉 提交于 2019-12-04 22:23:26
I am writing CodedUI tests for an App that was written in VB6 and need to do an assertion on a number of different labels. Labels in VB6 do not implement MSAAA and so they do not appear in Spy++ or Inspector. Changing the application code for automated testing will be an uphill battle. The tests were originally written in Rational and Rational's object inspector is able to get the label and most of it's properties. So I know that it is possible to get the information that I am looking for. I assume that Rational uses something in the winapi to get access to the label's properties, I assume

Coded UI build server integration process

。_饼干妹妹 提交于 2019-12-04 21:49:07
We would like to integrate an automated functional test solution (developed using SpecFlow and Coded UI) in our build server. The project looks like this: the AUT is a WPF application the developers are working with Visual Studio 2010 Professional automation testers joined the project with Visual Studio 2012 Premium (VS Premium is needed for Coded UI tests) Visual Studio 2010 Professional is installed on the build server Jenkins is used a VM is configured for the development and a 2nd VM will be used by the testers Could someone help me with the build-server integration process? Which are the

Cannot perform 'Click' on the hidden control

空扰寡人 提交于 2019-12-04 15:10:44
I've claim Id textbox, if claim id is duplicate, claim found link appears below claim id textbox. When clicked on this link it shows existing claim details. I need to test this click event and popup. public HtmlHyperlink UIClaimFoundHyperlink { get { if ((this.mClaimFoundHyperlink == null)) { this.mClaimFoundHyperlink = new HtmlHyperlink(this); #region Search Criteria this.mClaimFoundHyperlink.SearchProperties[HtmlHyperlink.PropertyNames.Id] = "aClaimLink"; this.mClaimFoundHyperlink.SearchProperties[HtmlHyperlink.PropertyNames.Name] = null; this.mClaimFoundHyperlink.SearchProperties

Coded UI Test Builder fails to generate code for recorded action

与世无争的帅哥 提交于 2019-12-04 14:39:28
I try to record the simplest Coded UI action in IE running on Windows 10 from my Visual Studio 2015 Enterprise. The problem is that recently I started to get Value cannot be null. Parameter name: key error each time I click Add and Generate button. Also each time I hover the link on IE web page I get Access is denied error. I believe these problems could be related. One more issue is that I can not generate any assertions since am unable to select any web control on web page. After I placed Coded UI Test Builder's crosshair in the middle of text input the whole document was highlighted. To fix

DevExpress LookUpEdit And Coded UI Tests

ぐ巨炮叔叔 提交于 2019-12-04 13:18:56
We are developing software using Windows Forms and DevExpress controls. And also we want to use Coded UI tests to test our application automatically. As our recent experiences taught us that DevExpress does not support CUIT. But we have no options to neither give up from DevExpress control nor give up from CUIT. Recently i created a test case using MTM that tests a form which includes LookUpEdit controls. As you would guess i couldn't use parameters correctly. Is there any way to workaround this problem? Create a CustomAccessibleObject for each of your controls that inherits from Control

How to detect that narrator tool is running?

不羁岁月 提交于 2019-12-04 13:15:16
I have a custom control. i like to provide the support for System screen reading support. Is there any logic to find that the narrator or coded UI tool is enabled in our machine.?? You can use namespace Windows.UI.Xaml.Automation.Peers and this method: var isNarratorStarted = AutomationPeer.ListenerExists(AutomationEvents.AutomationFocusChanged); I had similiar case but when working with UWP app and I solved it that way. Maybe you can take something from here: private bool isAutomationPeerCreated = false; private bool IsAutomationPeerAttached => this.isAutomationPeerCreated || AutomationPeer

Error creating Coded UI Test in Visual Studio 2010 Ultimate

梦想的初衷 提交于 2019-12-04 06:36:54
I am attempting to create a Coded UI Test in a Visual Studio 2010 test project. I right click on the project, Select Add Select Coded UI Test I then get the error warning: The following package failed to load: C:\Users[File Path Goes Here]\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test. Once I click OK, I can create the Coded UI Test (CUIT) but when the test is over, the test file is empty. Does anyone know how to fix this problem? I've already deleted my settings,

Coded UI Control.Exists. System.NullReferenceException

試著忘記壹切 提交于 2019-12-04 05:21:42
问题 I want to check that window exists after some actions. I try: protected override Boolean IsPresent() { if (_mainWindow == null) { _mainWindow = new WinWindow(); _mainWindow.SearchProperties[WinWindow.PropertyNames.ControlName] = "MainWindow"; } return _mainWindow.Exists; } But if control does not exist mainWindow.Exists throws System.NullReferenceException. I can't understand why it happens because mainWindow reference in this code can't be null. How can I verify is _mainWindow founded or not

AccessibleObject implementation for custom controls

丶灬走出姿态 提交于 2019-12-04 05:05:35
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 CreateAccessibilityInstance: public partial class Form1 : Form { protected override AccessibleObject CreateAccessibilityInstance() { return new AccessibleForm(this); } public MyContainer MyContainer; public Form1() { InitializeComponent(); MyContainer = new MyContainer(); MyContainer.Controls.Add(new MyButton()); } } The AccessibleForm class looks like: public class