coded-ui-tests

Coded UI Test now gets error about Newtonsoft.json not being found

泪湿孤枕 提交于 2019-12-07 20:02:31
问题 I have a simple Coded UI test to log into an application. The test is data driven and uses data from TFS. We are using a TfsTestAgent user (that has admin privileges) that is on both the server and the agent systems. When I execute the test, I see the following error: The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in

Error: “Value cannot be null. Parameter name: Smallicon” while creating Coded UI Test Project (UWA)

孤者浪人 提交于 2019-12-07 10:27:39
问题 I'm getting error dialog box " Value cannot be null. Parameter name: Smallicon " while trying to create ' Coded UI test Project (Universal Windows) ' project using updated yesterday (June 28, 2016) MS Visual Studio Professional 2015 Version 14.0.25421.03 Update 3. Please see enclosed screenshot. Any hints how to solve the subject issue? 回答1: I confirm after testing on same environment that a Pro version displays the error message while an Enterprise one succedeed in project's creation. (I

How to add capabilities to Coded UI Test (Windows Phone 8.1) project (In C#)

两盒软妹~` 提交于 2019-12-07 05:59:41
问题 I've a TestMethod in CodedUITest class that uses HttpClient for fetching data from a local server, [TestMethod] public void CodedUITestMethod() { string ServiceURI = "http://localhost:34562/GetTestResult"; HttpClient httpClient = new HttpClient(); HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, ServiceURI); HttpResponseMessage response = httpClient.SendAsync(request).Result; } However, it always throws exception at last line, like: {System.UnauthorizedAccessException: Use

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

北慕城南 提交于 2019-12-06 16:26:14
问题 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

CodedUI object creation based on UITestControl

不打扰是莪最后的温柔 提交于 2019-12-06 15:36:50
My question is a continuation on the following CodedUI not recognizing HtmlControl when searched within scope of UITestControl instead of BrowserWindow question. I'm experiencing the same problem and I would like to know why this is happening. Here are my findings. BrowserWindow inherits from ApplicationUnderTest, which on his own inherits on ApplicationBase, which again inherits from UITestControl. All the controls as HtmlRow do contain a constructor requesting as a parameter UITestControl. From the experience I can confirm that, no mater if you pass in an instance of at example HtmlDiv or

Coded UI build server integration process

感情迁移 提交于 2019-12-06 15:24:16
问题 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

Cannot perform 'Click' on the hidden control

血红的双手。 提交于 2019-12-06 11:45:16
问题 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

Coded UI Test Builder fails to generate code for recorded action

扶醉桌前 提交于 2019-12-06 10:25: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

How to run Coded UI test file from Visual Studio command prompt using batch file?

不羁岁月 提交于 2019-12-06 09:15:04
@echo off @setlocal enableextensions @cd /d "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" start %comspec% /k ""C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" MSTest /testcontainer:C:\testdir\test.dll Code shown above runs vs command prompt and changes directory to "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" where MSTest.exe is. But last line doesn't run in vs command prompt window, opens new window and tries to run in a new opened window. Can anyone help how to run ui test file in opened vs command prompt using batch file? I run my Coded UI tests

DevExpress LookUpEdit And Coded UI Tests

你离开我真会死。 提交于 2019-12-06 07:16:32
问题 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