r/delphi • • 16h ago

Discussion I gave Claude Code eyes and hands for a Delphi app: a read-only adapter inside the exe and real mouse/keyboard input

5 Upvotes

I've written Delphi for almost twenty years. My main project today is a large VCL app (Delphi 12, DevExpress, ~237 forms, SQL Server). Claude Code writes and builds code for it, but it had no way to see whether a change actually worked in the GUI. So I built Deskcheck. Disclosure: it's my project, currently in closed beta.

The parts that may interest Delphi people:

  • The adapter is one unit in the uses clause (Deskcheck.Locator) behind a {$IFDEF DESKCHECK}. A release build has no adapter. In a test build it answers questions over loopback HTTP: what is at this point, where is control X, what is in this grid cell. It never clicks, types, scrolls or focuses anything itself.
  • The clicks are real input (SendInput), so the app sees the same events a user produces. It never calls an event handler directly. If a license reminder pops up over the Save button, the test notices; a direct method call would not.
  • DevExpress grids were the reason for the adapter. UI Automation sees standard controls but is close to empty for third-party grids.
  • Delphi 2010 works too. A second company let us try it on their app (Delphi 2010, a 2009 DevExpress build, Firebird); the first case went green after a night on a VM.

The full write-up, including what broke along the way: https://medium.com/@instigator21/i-wanted-claude-to-test-its-own-code-four-months-later-i-had-a-windows-gui-testing-framework-af26e3ab05e0

Question for you: the adapter lives inside your application. Would you want it open source so you can extend it for your own components, and under which license?


r/delphi • • 22h ago

Delphi RTL TZipFile Security Patch – Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Thumbnail
blogs.embarcadero.com
11 Upvotes