cancel
Showing results for 
Search instead for 
Did you mean: 

Delphi, FireMonkey and debug infos

Highlighted
Valued Contributor

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 5
Highlighted
Community Manager

Re: Delphi, FireMonkey and debug infos

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/

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Valued Contributor

Re: Delphi, FireMonkey and debug infos

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

Highlighted
Valued Contributor

Re: Delphi, FireMonkey and debug infos

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

Highlighted
Valued Contributor

Re: Delphi, FireMonkey and debug infos

see this

Valued Contributor

Re: Delphi, FireMonkey and debug infos

hi,

thank you but i'm the one who posted a reply the 7/16/2015

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors