I have the following setup when using ranonex:
* ranorex used to automate a WPF Windows Client
* test written in .Net
* test suite managed via TeamCity
* running tests on a dedicated VM
So; while I am connected to the VM, I 'Run' my tests via TeamCity. I can watch my WPF client launch and see these tests successfully pass.
But; when I disconnect from the VM and 'Run' via TeamCity, my tests fail as it seems ranorex and the WPF cannot interact whie the session is disconnected.
Some thoughts:
* when testing web sites with selenium / webdriver it is possible to Run tests while disconnected to a VM.
* is there some Service on the VM that Ranorex interacts with, that requires the properties setting 'Allow service to interact with desktop' ticked?
* I dont think any options in the TroubleShooting file relate to this:
http://www.ranorex.com/support/user-gui ... html#c3250
The logs dont give me mich info, just point me towards the trouble shooting page:
[RanorexTest0001] [Test Error Output]
[2013/01/18 15:42:13.291][Debug ][Logger]: Console logger starting.
[2013/01/18 15:42:13.303][Warn ][Automation]: The apartment state of the current thread is not set to STA. Please make sure that all threads accessing Ranorex methods have their apartment state set to STA.
[2013/01/18 15:42:20.180][Warn ][WinForms]: Failed to load the assemblies containing the definition of this control. UI element identification capabilities for this control are limited. Failed assemblies:
C:\Users\joeblogs\Downloads\NUnit-2.6.0.12051\NUnit-2.6.0.12051\bin\lib\nunit-gui-runner.dll
The following website provides more information on this technology limitation:
http://www.ranorex.com/support/user-gui ... html#c3250
(This message is only shown once per report.)
Any guidance or thoughts from the community would be greatly appreciated
