Hi,
I am trying to run coded-ui tests from a test agent (http://msdn.microsoft.com/en-us/library/vstudio/dd648127.aspx). This allows a machine to not have visual studio on it and be able to run the coded-ui tests. We want it set up this way to simulate a standard user of the application, who would not necessarily have VS installed on their machine.
It seems to me that in order to run these coded-ui tests though I still have to have infragistics installed on the Test-Agent machine. Is there a way to not have infragistics installed on the Test-Agent machine and still be able to run my coded-ui tests?
If it needs to be installed on the Test-Agent machine I have another problem. I tried installing infragistics on the machine and it installs all of the dlls except for the coded-ui ones. Both "C:\Program Files (x86)\Infragistics\NetAdvantage 2012.2\Windows Forms\Coded UI Test" and "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Infragistics4.Win.CodedUITest.UIA.VS10.v12.2" do not exist as paths on the Test-Agent machine after performing the install. It seems like based on this I need to have VS installed on the machine. Is there any workaround that doesn't involve me installing VS?
Thanks
I managed to install the dll into the GAC on the test agent machine using GAC util but I still get the following error:
Initialization method *.*.SetUp threw exception. System.TypeLoadException: System.TypeLoadException: Method 'GetValidSearchProperties' on type 'Infragistics.Win.CodedUITest.UIA.v12_2.TestControls.UltraUiaButton' from assembly 'Infragistics4.Win.CodedUITest.UIA.VS10.v12.2, Version=12.2.20122.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' is overriding a method that is not visible from that assembly
So just to recap I have VS and Infragistics installed on the Test Contoller machine and just infragistics installed on the the Test agent machine and I still can't run the tests. I have been able to run the coded-ui tests on the Test Controller's machine through VS.
Hello Jeremy,
You do not need NetAdvantage installed on the test agent machine. You will need to follow the steps below in the order they are given.
I just finished saying that without Infragistics installed it was giving me the exception that it was missing the licence. I only uninstalled it to test since I was told that I don't need it installed in order to run the test agent.
And sorry when I updated accross the Team City server, the build agent machine, and the repository I got a similar exception not the exact same one. This is the other exception, "Initialization method CodedUIBase.OpenCloseWindowsTest.SetUp threw exception. System.ArgumentException: System.ArgumentException: The following is not a valid technology name: Infragistics.UIA.v12.2. To search for a control, you must specify a valid technology name."
As mentioned in Jose's previous post, you will need to update the UIMap file in order to resolve the exception you mentioned in your latest post.
Everything is updated and was updated and it still doesn't work
So where do things stand in regards to what is installed on the machine? What error are you receiving in its current configuration?
In this thread, there are a number of responses listing items being installed and uninstalled with different errors each situation. Let’s figure out how things are currently setup and what the current problem is, and resolve the issues as they are encountered.
The following information will be a recap of most of the information from previous posts to assist in putting together a “what is necessary” list.
Should be installed on the test machine:
Breaking Change introduced in Service Release:
The initial 12.2 version of our CUIT Framework uses the TechnologyName of “Infragistics.UIA”. However, once development began on our 13.1 cycle, we found that in order to support side-by-side installations of the plugin, the TechnologyName must be unique so we changed the TechnologyName to “Infragistics.UIA.v12.2” in the next service release.
Unfortunately, this means that if a test was recorded in the initial release of 12.2, it was recorded with the old TechnologyName, and therefore the CUIT framework cannot find the matching plugin once the service release is installed.
To fix this:
Let start from here.
Chris
I seem to have the same problem.
I have followed the steps listed, but my test still seems to fail, not knowing Infragistics.UIA as a valid "Technology Name"
If I install Visual Studio instead of the "Microsoft Test Agent" the very same test run and pass as expected
Per