Vivek02
New Member.
84 views

system.runtime.interopservices.comexception during run in uft. Please help me out.

While running a script in UFT, I am getting an error message"Error HRESULT E_FAIL has been returned from a call to a COM component." along with exception.

Please check trace:

at QTP.BackEnd.Core.DocumentIfsLib.IScriptSetting.GetValueByName(String Key, String Attr, Object& pVal, PERSISTTYPES& pptPropType, Int32& pbReadOnly)
at HP.QTP.Backend.Entities.TestDocumentBase`1.GetValueFromGlobalSettings(String settingKeyName, String valueName)
at HP.QTP.Backend.Common.RunProperties.SetDelayBetweenLinesInRunProps(IGlobalSettingsOwner settingsProvider)
at HP.QTP.Backend.Common.RunProperties.RetrieveRunSettings(IGlobalSettingsOwner settingsOwner)
at HP.QTP.Backend.Features.ExecutionFeature.TestExecutionFeature.GetRunProperties(IArgumentMatrixProvider argMatrixProvider, Boolean pauseOnFirstStep, String pauseLocationAction, Int32 pauseLocationLine)
at HP.QTP.Backend.Features.ExecutionFeature.TestExecutionFeature.Replay()
at HP.QTP.Backend.Features.ExecutionFeature.TestExecutionFeature.RecieveCommand(TESTCOMMAND testCommand)
at HP.QTP.Backend.Features.CommandsFeature.CommandsFeature.DoCommand(TESTCOMMAND testCommand)
at HP.QTP.Backend.Entities.TestDocumentBase`1.DoCommand(TESTCOMMAND testcommand)
at HP.QTP.BackEndServices.QtpItems.ScriptedProjectBase.ExecuteRunRecordCommand(TESTCOMMAND command, String commandName)
at HP.QTP.BackEndServices.QtpItems.ScriptedProjectBase.ExecuteCommand(TESTCOMMAND command, String commandName)
at HP.QTP.Debugger.Core.Debugger.HP.QTP.Debugger.IQtpDebugger.Start(TESTCOMMAND command, String commandName)
at HP.QTP.BackEndServices.Services.RecordRun.RunRecordService.Run(RunSettings runSettings, Boolean debugRun)
at HP.QTP.ProjectSystem.DataObjects.Projects.RunnableProjectBase.Run(RunSettings runSettings)
at HP.UFT.RunDialog.Commands.RunCommand.InternalRun(RunDialog dialog, RunSettings runSettings)
at HP.UFT.RunDialog.Commands.RunCommand.InternalRun()
at HP.Utt.UttCore.UttWrappedCommand.Run()
at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)
at HP.Utt.UttCore.UttSplitButtonPersistanceCommand.InternalRun()
at HP.Utt.UttCore.UttWrappedCommand.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.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at ICSharpCode.Core.Presentation.SplitButton.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)

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.