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?
TeamCity+Ranorex evaluation license problem
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: TeamCity+Ranorex evaluation license problem
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
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
Re: TeamCity+Ranorex evaluation license problem
Thx for help