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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unable to cast object of type - GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

105506 Oct 31,2012 09:13 PM UTC Nov 8,2012 01:41 PM UTC WinForms 1
loading
Tags: GridControl
Serhiy
Asked On October 31, 2012 09:13 PM UTC

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


Athiram S [Syncfusion]
Replied On 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 

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;