UFT / QTP System.InvalidCastException错误

时间:2018-09-18 09:56:42

标签: testing automated-tests qtp hp-uft uft14

请需要帮助。我正在尝试通过jenkins管道通过vb脚本执行UFT测试。该测试可以执行并正常运行3/4次,在没有运行的情况下,我会收到以下警告错误,要求用户按继续运行该测试。

 Exception of type: System.Windows.Media.Animation.AnimationException. Source: PresentationCore. Occured in Void OnCurrentTimeInvalidated(System.Object, System.EventArgs) method
Exception message is: Cannot animate the 'Location' property on a 'System.Windows.Controls.Grid' using a 'System.Windows.Media.Animation.PointAnimation'. For details see the inner exception.
Exception trace is:    at System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)
   at System.Windows.Media.Animation.Clock.FireEvent(EventPrivateKey key)
   at System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents()
   at System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents()
   at System.Windows.Media.Animation.TimeManager.Tick()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   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)

Exception of type: System.InvalidCastException. Source: Northwoods.GoWPF. Occured in System.Collections.Generic.IEnumerable`1[System.Object] #an(System.Object) method
Exception message is: Unable to cast object of type 'Northwoods.GoXam.Group' to type 'HP.Utt.Controls.FlowCanvas.FlowCanvas.FlowCanvasItem`1[HP.QTP.BackEndServices.QtpItemsIfs.IActionCallGraph]'.
Exception trace is:    at Northwoods.GoXam.Model.GraphLinksModel`4.#an(Object #Y7)
   at Northwoods.GoXam.Group.get_MemberNodes()
   at Northwoods.GoXam.Group.#zt()
   at Northwoods.GoXam.Group.#Dj(Boolean #36)
   at Northwoods.GoXam.Part.InvalidateRelationships(String #I5, Boolean #36)
   at Northwoods.GoXam.Node.#Wj()
   at Northwoods.GoXam.Node.#0j(DependencyObject #73, DependencyPropertyChangedEventArgs #0Y)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)

SharpDevelop Version : 4.1.3.0-UFT_14-00000000
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 10.0.14393.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Terminal Server Session
Working Set Memory   : 377436kb
GC Heap Memory       : 49019kb


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.

完整日志;

{{1}}

任何帮助将不胜感激!

0 个答案:

没有答案