TeamCity+Ranorex evaluation license problem

Ask general questions here.
kveremyev
Posts: 2
Joined: Mon Oct 21, 2013 1:44 pm

TeamCity+Ranorex evaluation license problem

Post by kveremyev » Mon Oct 21, 2013 2:17 pm

Hi
I have some problem with Ranorex. Before buying product for our small team, I tried to test integration Ranorex (trial-version) with TeamCity. However, build failed. There is a part of Build log:

[16:17:36][Step 3/3] Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
[16:17:36][Step 3/3] at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
[16:17:36][Step 3/3] at Infralution.Licensing.EvaluationDialog.ShowDialog()
[16:17:36][Step 3/3] at Ranorex.Core.ElementEngine.CheckLicense(Boolean showDialogs)
[16:17:36][Step 3/3] at Ranorex.Core.ElementEngine.AssertLicense()
[16:17:36][Step 3/3] at Ranorex.Core.ElementEngine..ctor()
[16:17:36][Step 3/3] at Ranorex.Core.ElementEngine.get_Instance()
[16:17:36][Step 3/3] at Ranorex.Core.InputDispatcher.EnsureReady()
[16:17:36][Step 3/3] at Ranorex.Keyboard.UpdateLowLevelKeyboardHookCallback()
[16:17:36][Step 3/3] at Ranorex.Keyboard.set_AbortKey(Keys value)
[16:17:36][Step 3/3] at Atzo.Program.Main(String[] args) in c:\RanorexTest\Atzo\Atzo\Program.cs:line 34
[16:17:43][Step 3/3] Process exited with code 255
[16:17:43][Step 3/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_3' value='8385.0']
[16:17:43][Step 3/3] Step Command Line failed

I think that this problem relates to the fact that I have evaluation license of Ranorex, how can I fix it?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: TeamCity+Ranorex evaluation license problem

Post by Support Team » Tue Oct 22, 2013 4:50 pm

Hi,

The trial version of Ranorex provides all the components and features the normal/licensed version has.
It seems to be a permission problem.
Have you started the build agent as a Windows service?
You must not start it as a service because the windows service does not have the sufficient rights to start UI-applications.
By the way, do you know our blog about "Integrating Ranorex Automation in TeamCity CI Processes"?
If not please take a loot at it, because there is described how to integrate Ranorex in TeamCity.

Regards,
Markus
.
Image

kveremyev
Posts: 2
Joined: Mon Oct 21, 2013 1:44 pm

Re: TeamCity+Ranorex evaluation license problem

Post by kveremyev » Wed Oct 23, 2013 1:12 pm

Thx for help