Forum Discussion

G-wagon's avatar
G-wagon
Regular Contributor
8 years ago

wViewCount Error

Hi

 

I have attached the screenshot in question who's class name is TomGridSite. Now, when I spy on the object properties I get the below error for wViewCount property:

Error: Error
An error occurred.
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete/TestExecute.

Technical information:
97 0x80020006 (Unknown name.) Levels

 

I also mapped this class in object mapping under VCL, Borland & QuantumGrid but no joy unfortunately. Its there anything else we can do to make sure this error does not crop up ?

19 Replies

  • Hi gdave,

     

    Your grid seems to be a customized DevExpress QuantumGrid (TcsGrid). To test DevExpress controls, your app must be built with debug information:

    https://support.smartbear.com/testcomplete/docs/app-testing/desktop/delphi/preparing/index.html

     

    Since your grid has a custom class name, configure Object Mapping as follows:

    • Under DevExpress Controls > VCL > QuantumGrid, add the VCLClass value of the parent object, VCLObject(cxGridProduct)
    • Under DevExpress Controls > VCL > QuantumGrid > Site, add TomGridSite

    There's no need to change Borland mappings.

     

    Let us know if this helps.

    • G-wagon's avatar
      G-wagon
      Regular Contributor

      HKosova wrote:

      Hi gdave,

       

      Your grid seems to be a customized DevExpress QuantumGrid (TcsGrid). To test DevExpress controls, your app must be built with debug information:

      https://support.smartbear.com/testcomplete/docs/app-testing/desktop/delphi/preparing/index.html

       

      Since your grid has a custom class name, configure Object Mapping as follows:

      • Under DevExpress Controls > VCL > QuantumGrid, add the VCLClass value of the parent object, VCLObject(cxGridProduct)
      • Under DevExpress Controls > VCL > QuantumGrid > Site, add TomGridSite

      There's no need to change Borland mappings.

       

      Let us know if this helps.



      Hi

       

      I did what you advised but I get the below error for wColumnCount & wRowCount:

      'No debug information was found for VCL control.'

      • HKosova's avatar
        HKosova
        Icon for Alumni rankAlumni

        Is your tested app built with debug information? Could you please confirm this with with your developers?

         

        Also, please let us know

        • your TestComplete version
        • Delphi compiler version
        • version of DevExpress controls used in your app
  • m_essaid's avatar
    m_essaid
    Valued Contributor

    hi,

    I would never open xlxs documents especialy on office computers... sorry.

    • G-wagon's avatar
      G-wagon
      Regular Contributor

      m_essaid wrote:

      hi,

      I would never open xlxs documents especialy on office computers... sorry.


      Is there any other way of attaching the screenshot then ?

      • m_essaid's avatar
        m_essaid
        Valued Contributor

        just make screen shot with the Capture tool of Windows and attach them to your post...

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    The thing about the error you're getting is that you're mapping the class to an object that doesn't 100% support the particular property.  So, wViewCount will display that error.

     

    If you don't attempt to use that property in your tests, then I don't think it's a big issue.  The alternative is to remove the custom object mapping and attempt to use the component using native properties and methods to manipulate it.

    • G-wagon's avatar
      G-wagon
      Regular Contributor

      I dont necessarily want to use viewcount property but then there are other issues too.

       

      TC doesnt recognise the the data within that grids. The only thing it recognises is object text which is not very helpful. Even when I try and record anything in that grid it says  'Missing debug info. The control cannot be recorded properly, because no debug symbols were found for it'. This causes issues if I have to use property checkpoints etc. Is there any solution to this ? Thanks

      • m_essaid's avatar
        m_essaid
        Valued Contributor

        try the following :

          - Get the object type

          - go to project properties and go to "Open Application" . In the MSAA list add the type of this object.

         

        it may gives you access into the grid.

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    otherwise, you could ask the dev team to gives you a version with debug infos. but that's not really a clue because from this moment you stop testing release version.