Hi,
I need to run a Test Script compiled as dll on a win 7 machine. I will play it on Windows Server 2008 R2 machine for automation. The test script is perfectly working on win7 machine with Infragistics 14.2 installed on it.
I install the coded ui extention on that Win2008 and it registered "Infragistics4.Win.CodedUITest.UIA.VS12.v14.2.dll" on both gac and "C:\Program Files (x86)\Infragistics\2014.2\Windows Forms\Coded UI Test"
But when I try to run the test that instantiate a UltraUiaPane, it complains about not finding its own resources.
The error says:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Infragistics.Win.CodedUITest.UIA.v14.2.strings.resources" was correctly embedded or linked to assembly "Infragistics4.Win.CodedUITest.UIA.VS12.v14.2" at compile time,...
See attached image for more details on stack trace.
Exact version of infragistics coded ui dll is v14.2.20142.2034
Please advise. Let me know why it's complaining about that resource or possibly its about license. Note that when I install Coded UI from the infragistics msi installer, it does not ask for a license.
Also, can I just put that coded ui dll side by side the test dll and run the test from there?
Thanks,
Victor
Hi Victor,
Thank you for posting in our forums.
Generally that error would mean that CodedUI is not installed properly on your machine. It would happen for example when you copy the CodeUI assembly to the test machine without installing it. In your case though, you say that you have installed the CodedUI through our installer. Did you run the same installers on both the Windows 7 and Windows Server 2008? What is the locale for your machine? If you change it to English does it still throw an error?
I am looking forward to hearing from you.
Yes, I ran the same installer on both machines. They (the machines) both have English locale. I did not change any locale so I assume they are in English.
Even though I install it on the win 2008 machine, when I deploy the test scripts, it made a side by side copy of coded ui dll apart from copies installed by the installer. Are you suggesting to delete the coded ui dll right beside the script so it relies only on installed version?
Thank you for the reply.
The CodedUI extension should be installed on your test machine. After that when you create a CodedUI test project the Infragistics CodedUI assemblies for the respective Visual Studio should be automatically included - you shouldn’t copy them. Please keep in mind that you can install only the CodedUI extension without installing the product itself.
Please let me know if you have any additional questions.
Hi Dimitar,
Thanks for you suggestion. I confirm that by not copying the dll beside the test script and just installing the coded ui on the test machine works.