coded-ui-tests

TFS not deploying referenced assembly to test dir when on build server

时光怂恿深爱的人放手 提交于 2019-11-30 17:06:14
问题 I have Coded-UI test project that has references to other assemblies in solution. Somehow some assemblies are not copied to TestResults/Out directory, while others are copied. All assemblies have Copy Local option true (don't know if it really matters though) and are absolutely equal in other options. All assemblies are copied when I start test locally from VS2010, but not when on build server. If I use [DeploymentItem] attribute to force deployment of these "naughty" assemblies they deploy

Coded UI Test - Windows - Universal Apps

末鹿安然 提交于 2019-11-30 14:28:09
I am trying to automated testing of windows apps using coded-ui-test project using vs2013 ultimate edition. I can see those templates for C# desktop applications under test category and for phone application under windows phone category. I cannot see such template for Windows Universal Apps. How to automate universal apps? If I choose the coded ui template available under category Store Apps -> Coded UI Test Project (Windows) After project creation, recorder gives me a message "recording action steps is not supported for windows store apps" I don't believe there is a CodedUI Test project for

VS 2010 Coded UI Test - Launch Referenced Application

不打扰是莪最后的温柔 提交于 2019-11-30 11:03:46
问题 I'm using Visuial Studio's Coded UI Tests to run Automated UI tests on a WPF Application everytime a build runs on my TFS server. The problem I am running into is dynamically launching the executable based on the path where it was just built to, including the configuration(x86, x64). Is there any way to get the path to an executable in a referenced project so that I can launch the application dynamically from my test project? 回答1: MSTest: Open your .testsettings file and check the "Enable

TFS not deploying referenced assembly to test dir when on build server

荒凉一梦 提交于 2019-11-30 05:50:20
问题 I have Coded-UI test project that has references to other assemblies in solution. Somehow some assemblies are not copied to TestResults/Out directory, while others are copied. All assemblies have Copy Local option true (don't know if it really matters though) and are absolutely equal in other options. All assemblies are copied when I start test locally from VS2010, but not when on build server. If I use [DeploymentItem] attribute to force deployment of these "naughty" assemblies they deploy

VS 2010 Coded UI Test - Launch Referenced Application

隐身守侯 提交于 2019-11-29 23:05:06
I'm using Visuial Studio's Coded UI Tests to run Automated UI tests on a WPF Application everytime a build runs on my TFS server. The problem I am running into is dynamically launching the executable based on the path where it was just built to, including the configuration(x86, x64). Is there any way to get the path to an executable in a referenced project so that I can launch the application dynamically from my test project? MSTest: Open your .testsettings file and check the "Enable Deployment" under the deployment section. In your test project right-click and select Add Existing Item. Browse

Coded UI Test - Windows - Universal Apps

五迷三道 提交于 2019-11-29 19:24:36
问题 I am trying to automated testing of windows apps using coded-ui-test project using vs2013 ultimate edition. I can see those templates for C# desktop applications under test category and for phone application under windows phone category. I cannot see such template for Windows Universal Apps. How to automate universal apps? If I choose the coded ui template available under category Store Apps -> Coded UI Test Project (Windows) After project creation, recorder gives me a message "recording

How to refresh UIMap object in CodedUI

人盡茶涼 提交于 2019-11-29 17:40:44
Can i refresh UIMap object ? Problem is I change the location of UI element on and I again try to get the AutomationElement at that time I get AutomationELment but its BoundingRectanle is infinity. So i am assuming that it is not refreshing the UIMap object. Can anyone please help me on this ? In the UIMaps section of your test, you have probably something like: private MyTestUIMap uiMap; public MyTestUImap UIMap { get { if (this.uiMap == null) { this.uiMap = new MyTestUIMap(); } return this.uiMap; } } This creates a singleton for the UIMap object the first time it is used. To refresh it, you

Interacting with multiple instances of an application in Coded UI

霸气de小男生 提交于 2019-11-29 16:03:27
The scenario that I am facing is that I am trying to write a single test which will use Coded UI to interact with multiple instances of the same application, in this case Microsoft Excel. In other words, there will be multiple Excel workbooks open in multiple windows, and I need to be able to direct Coded UI to interact with a specific instance programatically. I initially thought this type of instance management would be a function of the ApplicationUnderTest class, but it is not obvious how this class would achieve this. The interactions will involve the same UIMap for all instances (in fact

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

☆樱花仙子☆ 提交于 2019-11-29 06:38:35
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, Microsoft's documentation on their MSDN website for anything regarding coded UI tests is practically non-existant ( see here their page for UITestControl ). Basically what I'm asking is: What is the best way to determine if a UITestControl exists on the page or not? How does the UITestControl.Exists property work? What does the UITestControl.Find()

Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515)

守給你的承諾、 提交于 2019-11-29 02:58:58
When I run CodedUI Test from a small Console tool via vstest.console.exe from a scheduled task I sometimes see this error message on different PCs: error : Could not load file or assembly 'file:///C:\foobar.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) Why/what is this not supported? Raj Right click on the Dll and unblock it. During my research I found that this may happen when you downloaded a test in a ZIP from the internet and the advice was to unblock the ZIP . But I copied the files over the network from my developer system to the test