Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
9 years ago

Delphi, FireMonkey and debug infos

Hi,

 

We have Delphi apps. But some parts are coded in FireMonkey.

How could I debug this ?

Am I forced to use mouse coordinates and SetText ?

 

Ty for any response,

 

Mehdi

5 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi,

     

    I have never tried FireMonkey – how does TestComplete recognize the objects inside? You can check it in TestComplete’s Object Browser. If TestComplete considers them as an image, you would need to investigate the Image Comparison provided by TestComplete: http://smartbear.com/viewarticle/57039/

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    Hi,

     

    The FireMonkey window is like a black box, I cannot debug its controls with TC's object spy.

     

    What I've done : I put the mouse on a point I want to click or change text. I use theses commands to get X and Y relative mouse coordinates :

     

    Log.Message('Relative X coordinates : '
    + IntToStr(Aliases.PROGRAM.wndFMTForm.ScreenToWindow(Sys.Desktop.MouseX, Sys.Desktop.MouseY).X));

     

    Log.Message('Relative Y coordinates : '
    + IntToStr(Aliases.PROGRAM.wndFMTForm.ScreenToWindow(Sys.Desktop.MouseX, Sys.Desktop.MouseY).Y));

     

    And I use theses coordinates to click, dblclick, Keys('blabla') and so.

     

    Mehdi

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    Hi,

     

    Finaly I need to access to FireMonkey controls in a better way.

    I've installed the MSAA plugin in Delphi.

    I have, now, when I put in the TestCOmplete's options the name of my FireMonkey form a list of all the controls of this form.

    But at each time I try I have this message "Waiting until the window is activated" when I want to check a checkbox.

     

    Any help please ?

     

    Mehdi