NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
New Member.
323 views

Exception on clicking "Generate" button in "TestCombinationsGenerator" in UFT for GUI test

Exception on clicking "Generate" button in "TestCombinationsGenerator" in UFT for GUI test , and hence data is NOT loaded into the "Data" pane. 

 

Exception of type: System.InvalidCastException. Source: mscorlib. Occured in IntPtr GetCOMIPFromRCW(System.Object, IntPtr, IntPtr ByRef, Boolean ByRef) method
Exception message is: Unable to cast COM object of type 'System.__ComObject' to interface type 'QTP.BackEnd.Core.DocumentIfsLib.IMicTestSettingsAuto'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B53EC20B-96BC-4B24-92C9-F69E7A34133E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Exception trace is:    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
   at QTP.BackEnd.Core.DocumentIfsLib.IMicTestSettingsAuto.get_Resources()
   at HP.QTP.BackEndServices.QtpItems.TestSettingsAdapter.get_Resource()
   at HP.QTP.TCG.Services.QtpTestConfigurationGenerationService.AttachResourseToestImpl(ITestProject test, String resource)
   at HP.QTP.TCG.Services.QtpTestConfigurationGenerationService.CreateNewTestConfiguration(ITestProject test, TestConfigurationGenerationServiceSettings generateDataSetSettings)
   at HP.QTP.TCG.Services.QtpTestConfigurationGenerationService.InternalGenerate(TestConfigurationGenerationServiceSettings settings)
   at HP.UFT.TCG.Backend.Services.BaseTestConfigurationGenerationService.<>c__DisplayClass5_0.<GenerateAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

SharpDevelop Version : 4.1.3.0-00000000
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 10.0.16232.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 355672kb
GC Heap Memory       : 40793kb

 

0 Likes
0 Replies
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.