Highlighted
Valued Contributor.
Valued Contributor.
668 views

Impossible to use UFT -TCG

Hello everyone,

 

In our company, we use UFT 14.0 using floating HP Unified Functional Testing Licenses. We do not have licenses for BPT because it is not required.

According to the new features offered/listed by UFT14.0, it should be possible for GUI tests to use the test combinations generator feature; however, everytime we click on the TCG icon we get error1 (see below). If we click a second time on the icon, we get a different error message (see error2). Any idea what the problem could be?

 

First errorFirst errorSecond errorSecond error

The problem is reproducible in more than 1 PC having the same version of UFT (14.0).

The steps performed:

1. Open UFT 14.0 as administrator

2. Create a new GUI test

3. Enter some parameter values in the General sheet of the datatable

4. Enter some code using the paramters

5. Open the Test Flow view (to visualize the icon of TCG; other way, not visible)

6. Click on the TCG icon

Result:

The error1 visible above

7. Click again on TCG icon

Result:

The error2 visible above

 

Any hint, help is appreciated. Thanks!

0 Likes
10 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Re: Impossible to use UFT -TCG

 Can you please click on the Stack Trace and send us the stack trace info? which will help us to find out the root cause of the issue.

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Impossible to use UFT -TCG

Hello Jerry,

thank you for taking the time to analyze the problem. Attached, you find the Stack trace info after the first click.

ErrorAfterFirstClickErrorAfterFirstClick

In a second click, following info is dispalyed in the stack trace: 

ErrorAfter2ndClickErrorAfter2ndClick

"...

 at HP.QTP.TCG.QtpTcgContainer..ctor(String containerName)
   at HP.QTP.TCG.Commands.OpenTCGDialog.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)

..."

Regards

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Impossible to use UFT -TCG

Looks like some file is missing or addin file is broken. Have you tried to re-install UFT?

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Impossible to use UFT -TCG

Hello Jerry,

Yes, we already tried a re-installation but no change.

As mentioned before, the effect is not visible in a single machine whereas in 6 different ones!

You mentioned a missing add-in. What kind of add-in is required for the feature?

During the installation procedure, we have not installed all add-ins whereas just web, Visual Basic and Java. Are we missing something?

Thanks.

 

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Impossible to use UFT -TCG

I have tried the same to install the UFT with only the same addins you selected. Cannot reproduce this.


As the step you described in your first post, before step 6, did you save the script? If not, you may save the script before clicking the TCG button.

Please let me know the result.

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Impossible to use UFT -TCG

Yes. I have included also the step of saving the script before clicking on the "Save" button but teh behavior is the same.

Could it be related to the kind of license we use (Unified Functional Testing- Floating without Lean or BP)?

In internet I found that  Prism errors might be related belongs to WPF / .NET 4.0. We have installed .NET 4.7 in our machines. Could this one be another reason?

Thank you!

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Impossible to use UFT -TCG

Thanks for the info, we'll try to reproduce this with .net4.7.

Can you specify the machine info? like windows version, 32/64bit, CPU core? Which may helps the reproduce.

You may also try a machine of .net 4.6, which is the .net version I'm using.

Anyway, I think this is a defect in our product and please open a case to our support, and we'll need the dev team to give hotfix for this. And sorry for the inconvenience.

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Impossible to use UFT -TCG

Hi Jerry,

thank you for your reply!

question: how to open a HP-support case? Any special web-link?

The specs about the PCs are as follows:

OS:  Win7 or 10 Pro 64 Bits

Processor: Intel Xeon W3530 @ 2.80 Ghz, 2799Mhz, 4 Core

Language Settings: English (US)

.NET Framework: 4.7

UFT version: 14.0

 

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Impossible to use UFT -TCG

This is where you can raise a support case:

https://softwaresupport.hpe.com/group/softwaresupport/web-submission

Please choose product technical issue as the request type.

Best regards,

Heming

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Impossible to use UFT -TCG

Did you open a case?

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.