We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Unable to cast object of type - GridGroupingControl

Hi,

we are in the process of estimating Syncfusion add-in to automate a 3-rd party application built in C#, .NET 2.0, and Syncfusion Win Forms 7.4. We use QTP 11.
We installed add-in and completed configured as per help files.

The code
str = SwfWindow("User: userA").SwfWindow("MultiCcy Monitor").SwfObject("gridGroupingControl1").getFormattedText (4, "State")

generates the following error:

Unable to cast object of type 'Lava.FF.OMS.Client.Monitors.MultiCcyMonitorGrid' to type 'Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl'.

However code line
SwfWindow("User: userA").SwfWindow("MultiCcy Monitor : Bank").SwfObject("gridGroupingControl1").setCurrentCell 4, "State"

does not give any error.

The configuration file looks as follows:
...
  <Control Type="Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl" MappedTo="SwfTable">
    <CustomRecord>
      <Component>
        <Context>AUT</Context>
        <DllName>C:\Program Files\Syncfusion\Essential QTP\10.3.0.43\Bin\2.0\GridGroupingControl.dll</DllName>
        <TypeName>Syncfusion.TestStudio.Grid.GridGroupingControl</TypeName>
      </Component>
    </CustomRecord>
    <CustomReplay>
      <Component>
        <Context>AUT</Context>
        <DllName>C:\Program Files\Syncfusion\Essential QTP\10.3.0.43\Bin\2.0\GridGroupingControl.dll</DllName>
        <TypeName>Syncfusion.TestStudio.Grid.GridGroupingControl</TypeName>
      </Component>
    </CustomReplay>
  </Control>
...

Please advise on how to make it work

Thanks


1 Reply

AS Athiram S Syncfusion Team November 8, 2012 01:41 PM UTC

Hi Serhiy,

Thanks for your interest in syncfusion Products.

kindly, proceed with the steps of installation one more time and check if it works.

1)Make sure that the installed essential studio version and QTP version are same.[10.2.0.75]

2) Copy the swfconfig.xml  file from the location ‘{Installed location of Essential QTP Add-On}\Config\<version-2.0, 3.5, or 4.0>\swfconfig.xml,’ to the following location <QuickTest Professional Installation Path>\dat

Restart the machine once the mentioned configuration has been done.

Please refer to the link for further details:

http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/QTP/default.htm#!documents/24configuringessentialquicktestprofessional.htm

3) Open HP QTP and record the application.

regards,
Athiram S 

Loader.
Live Chat Icon For mobile
Up arrow icon