Ranorex / Testrail - NullReferenceException GetCurrentlyOpenRxSolution

Bug reports.
teehtrinker
Posts: 2
Joined: Thu Apr 25, 2019 11:29 pm

Ranorex / Testrail - NullReferenceException GetCurrentlyOpenRxSolution

Post by teehtrinker » Wed Aug 19, 2020 7:43 am

When trying to import Testcases from Testrail, syncing Ranorex with Testrail oder trying to start automated tests and sending reports to testrail I´m getting the following exception:

Code: Select all

[language=][language=]System.NullReferenceException: Object reference not set to an instance of an object.
---STACKTRACE---
System.NullReferenceException: Object reference not set to an instance of an object.
  Ranorex.Addins.Integrations.IntegrationStudioService.GetCurrentlyOpenRxSolution() +0xf6
  Ranorex.Integrations.TestRail.Controls.ViewModels.TestRun.ConfigurationDialogViewModel..ctor(ISynchronizationService synchronizationLogic,Credentials credential) +0x27
  Ranorex.Integrations.TestRail.Controls.TestRailControls.ShowTestRunConfigDialog(Window owner) +0x19
  Ranorex.Integrations.TestRail.Service.IntegrationsTestRailServiceImpl.ShowTestRunConfigDialog(Window owner) +0x0
  Ranorex.Addins.Integrations.RunTestWithTestRailCommand.Run() +0x3c
  ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter) +0x47
  MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource,Boolean userInitiated) +0x4a
  System.Windows.Controls.Primitives.ButtonBase.OnClick() +0x13
  System.Windows.Controls.Button.OnClick() +0x1a
  ICSharpCode.Core.Presentation.ToolBarButton.OnClick() +0x1b
  System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) +0x46
  System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender,MouseButtonEventArgs e) +0x1d
  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler,Object genericTarget) +0x7
  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler,Object target) +0x7
  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target,RoutedEventArgs routedEventArgs) +0x30
  System.Windows.EventRoute.InvokeHandlersImpl(Object source,RoutedEventArgs args,Boolean reRaised) +0xe6
  System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender,RoutedEventArgs args,RoutedEvent newEvent) +0x65
  System.Windows.UIElement.OnMouseUpThunk(Object sender,MouseButtonEventArgs e) +0x3a
  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler,Object genericTarget) +0x7
  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler,Object target) +0x7
  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target,RoutedEventArgs routedEventArgs) +0x30
  System.Windows.EventRoute.InvokeHandlersImpl(Object source,RoutedEventArgs args,Boolean reRaised) +0xe6
  System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,RoutedEventArgs args) +0x57
  System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) +0x14
  System.Windows.UIElement.RaiseEvent(RoutedEventArgs args,Boolean trusted) +0x11
  System.Windows.Input.InputManager.ProcessStagingArea() +0x1ef
  System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) +0x24
  System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) +0x35
  System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd,InputMode mode,Int32 timestamp,RawMouseActions actions,Int32 x,Int32 y,Int32 wheel) +0x210
  System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd,WindowMessage msg,IntPtr wParam,IntPtr lParam,Boolean& handled) +0x0
  System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean& handled) +0x4a
  MS.Win32.HwndWrapper.WndProc(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean& handled) +0x30
  MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) +0x36
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Object args,Int32 numArgs) +0x77
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Object args,Int32 numArgs,Delegate catchHandler) +0x2

---ORIGINAL STACKTRACE---
System.NullReferenceException: Object reference not set to an instance of an object.
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetCurrentlyOpenRxSolution()
   at Ranorex.Integrations.TestRail.Controls.ViewModels.TestRun.ConfigurationDialogViewModel..ctor(ISynchronizationService synchronizationLogic, Credentials credential)
   at Ranorex.Integrations.TestRail.Controls.TestRailControls.ShowTestRunConfigDialog(Window owner)
   at Ranorex.Integrations.TestRail.Service.IntegrationsTestRailServiceImpl.ShowTestRunConfigDialog(Window owner)
   at Ranorex.Addins.Integrations.RunTestWithTestRailCommand.Run()
   at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)[/language][/language]
Maybe someone can help me out or point me in the right direction

Thank you

Benjamin Schäfer

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

Re: Ranorex / Testrail - NullReferenceException GetCurrentlyOpenRxSolution

Post by Support Team » Mon Sep 14, 2020 6:59 pm

Hi!

Please contact us via the links below and we will be more than happy to further assist you with this!

Existing Customer: https://www.ranorex.com/support-query
Evaluation Customer: https://www.ranorex.com/prices/contact/

Kind Regards,
Ranorex Team
.
Image