coded-ui-tests

Is it possible to run CodedUI test without installing VS? How?

核能气质少年 提交于 2019-12-02 03:37:05
I want to run my coded UI test on a testing machine, but I wish If I can escape from installing VS2012 on my Test machine. Is there any any way to do it? According to this blog you only need to install the test controller software on a machine: http://blogs.microsoft.co.il/shair/2015/04/08/automation-runner-running-tests-without-visual-studio/ Also there is a tool that wraps around VSTEST.Console to simplify running tests without VS: Automation Runner only Requires Test Controller to be installed on the running machine – No MTM or Visual Studio Required. I used VS Test Agent and it ran the

How do I run tests remotely with VS2015?

让人想犯罪 __ 提交于 2019-12-02 01:08:36
问题 I've got some CodedUI tests I'd like to run on a remote machine from visual studio. Now it used to be that you'd install a test controller somewhere, a test agent on the box you want to run on, get them talking, then use a test settings file that was pointed to that controller. I was going through this and installed agents for 2015 update 3 on my run box. I noticed that there is no controller configuration option. After some googling I found this: https://vstfsalm.wordpress.com/2015/08/18/tfs

How to I inject programmatic text into my Coded UI test (as opposed to recorded text) in Visual Studio?

。_饼干妹妹 提交于 2019-12-02 01:02:43
The recorder works fine for quickly getting some steps thrown down, but I need to be able to store and set arbitrary text. Let's say I generated a new admin user called Admin001. I want to be able to set the text for the control to be "Admin001", not whatever was recorded when I first used the builder. I know you can do data bindings to CSV and the like, but that's too burdensome. I want to be able to write C# code to change which text is typed. Screenshot: Code attempt: var loginElement = new UILoginInternetExploreWindow().UILoginDocument.UIUserNameorEmailAddreEdit.Text; So I'm able to get

Testing an WPF app with CodedUI tests, should the coded ui test project share a solution or not?

和自甴很熟 提交于 2019-12-01 13:31:38
First some context; we are developing a large desktop WPF application in .NET 4.5 targeting 64 bit Windows 7 and 8. We are using Visual Studio 2012.2 (soon to be .3 then probably 2013!) and TFS 2012 (again .2 soon to be .3 then 2013). Currently this product is all in a single large solution (just over 50 projects) yielding a WPF exe, a load of dlls and a nice MSI to install it. We use TFS (gated and scheduled) to build the solution, its installer (WiX) and run its tests (SpecFlow for BDD and MSTest unit tests) and this is working very well. I have a separate scheduled TFS build that deploys

The playback failed to find the control with the given search properties in Coded UI

谁说胖子不能爱 提交于 2019-12-01 12:42:59
I'm new in Coded UI test, so here's a "simple" question: Trying to navigate through the options of a menu, i've recorded actions nad tried to playback. I got the following message: The playback failed to find the control with the given search properties Here's the code generated by recording tool: public void NavegarSituacao() { #region Variable Declarations HtmlCustom uINotíciasCustom = this.UIHttpcmshomepsafecomIWindow.UIHttpcmshomepsafecomDocument.UINotíciasCustom; HtmlCustom uIEntretenimentoCustom = this.UIHttpcmshomepsafecomIWindow.UIHttpcmshomepsafecomDocument.UIEntretenimentoCustom;

Testing an WPF app with CodedUI tests, should the coded ui test project share a solution or not?

自闭症网瘾萝莉.ら 提交于 2019-12-01 11:09:10
问题 First some context; we are developing a large desktop WPF application in .NET 4.5 targeting 64 bit Windows 7 and 8. We are using Visual Studio 2012.2 (soon to be .3 then probably 2013!) and TFS 2012 (again .2 soon to be .3 then 2013). Currently this product is all in a single large solution (just over 50 projects) yielding a WPF exe, a load of dlls and a nice MSI to install it. We use TFS (gated and scheduled) to build the solution, its installer (WiX) and run its tests (SpecFlow for BDD and

Coded UI error: The following element is not longer availabe

十年热恋 提交于 2019-12-01 08:03:36
I recorded some test cases with CUIT in VS2010. Everything worked fine the day before. So, today I run again, all the test failed, with the warning: The following element is no longer available ... and I got the exception : Can't perform "Click" on the hidden control, which is not true because all the controls are not hidden. I tried on the other machine, and they failed as well. Does anyone know why it happens? Is it because of the web application for something else? Please help, thanks. PS: So I tried to record a new test with the same controls that said "hidden controls", and the new test

Coded UI error: The following element is not longer availabe

試著忘記壹切 提交于 2019-12-01 06:11:08
问题 I recorded some test cases with CUIT in VS2010. Everything worked fine the day before. So, today I run again, all the test failed, with the warning: The following element is no longer available ... and I got the exception : Can't perform "Click" on the hidden control, which is not true because all the controls are not hidden. I tried on the other machine, and they failed as well. Does anyone know why it happens? Is it because of the web application for something else? Please help, thanks. PS:

Coded UI Testing Without UIMAP

泪湿孤枕 提交于 2019-12-01 01:48:28
I have working in coded ui project. I have trying to coded ui test without UIMAP.In this requirement using following code in c#. [TestMethod] public void CodedUITestMethod1() { var app = ApplicationUnderTest.Launch("C:\\Windows\\System32\\calc.exe", "%windir%\\System32\\calc.exe"); WinWindow calWindow = app.SearchFor<WinWindow>(new { Name = "Calculator" },new { ClassName = "CalcFrame" }); WinButton buttonAdd = calWindow.Container.SearchFor<WinButton>(new { Name = "Add" }); WinButton buttonEqual = calWindow.Container.SearchFor<WinButton>(new { Name = "Equals" }); WinButton button1 = calWindow

Coded UI Testing Without UIMAP

邮差的信 提交于 2019-11-30 21:17:51
问题 I have working in coded ui project. I have trying to coded ui test without UIMAP.In this requirement using following code in c#. [TestMethod] public void CodedUITestMethod1() { var app = ApplicationUnderTest.Launch("C:\\Windows\\System32\\calc.exe", "%windir%\\System32\\calc.exe"); WinWindow calWindow = app.SearchFor<WinWindow>(new { Name = "Calculator" },new { ClassName = "CalcFrame" }); WinButton buttonAdd = calWindow.Container.SearchFor<WinButton>(new { Name = "Add" }); WinButton