UFT/QTP crashes while interacting with certain .NET objects
Tags:
Question ID: 107870
0
0

Here is the stack trace:

Source:HP.QTP.Backend.Entities
Target:QTP.BackEnd.Core.DocumentIfsLib.IScriptSetting get_ApplicationSettings()

at HP.QTP.Backend.Entities.TestDocument.get_ApplicationSettings()
at HP.QTP.Backend.Entities.TestDocumentBase`1.SetValueByNameInGlobalSettings(String key, String attr, Object& newVal, Int32 changeDefault, Int32 setDirtyBit, Int32 changeProp, PERSISTTYPES ptPropType, Int32 bReadOnly)
at HP.QTP.Backend.Features.RecoveryScenariosFeature.RecoveryScenariosFeature.RestartRun(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Message:Object reference not set to an instance of an object.

Additional Information

SharpDevelop Version : 4.1.3.0-00000000
.NET Version : 4.0.30319.34209
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Terminal Server Session
Working Set Memory : 183968kb
GC Heap Memory : 39457kb

An unexpected error occurred.

Click 'OK' to close this message. You may be able to continue working,
but note that this workflow may cause the error to occur again.
Click 'Details' to display technical details on this error which may help
you solve the problem, or can be used when contacting customer support.

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on September 25, 2017 1:20 pm
94 views
Answers (1)
0
Private answer

There is not enough detail in the stack to find issue. I have found simlar problem with other customers that are using 'On Error Resume Next' and calling object that do not exit. I do not recommend using On Error unless there might be an issue and just for the couple of lines of code not all lines.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on September 25, 2017 1:21 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top