Delphi project testing via TestComplete 7 on FinalBuilder
Asked Answered
G

3

6

We've been using FinalBuilder as a continuous integration server for our Delphi project.

Currently, we have our builds automatically triggered from subversion check-ins, dUnit tests run after the unit test executable is built and AQtime generating test coverage statistics while the unit test executable is run.

Our next goal is to get our regression suite (developed in TestComplete 7) running as a nightly process. We have tried both a vbs script to start TestComplete via COM and the TestComplete task that comes with FinalBuilder itself. Both methods start TestComplete, and the application successfully when running the FinalBuilder project interactively.

But when we submit the job to the FinalBuilder server, the TestComplete script crashes because TestComplete doesn't appear to be able to read the application screens. We thought this might be resolved by allowing each of the services (TestComplete and FinalBuilder) to interact with the desktop, but that didn't work.

Has anybody been able to get a TestComplete 7 project to work correctly in FinalBuilder?

Grimsley answered 4/3, 2010 at 22:8 Comment(2)
yes! So there is hope, however it wasn't me that did it so I won't post an answer. It was something to do with the screen saver or the computer being locked or something like thatAdhamh
It certainly isn't the screen saver or the computer being locked. I was testing this while logged into the VM that FinalBuilder runs on. It works fine interactively, but not when submitting the job to the FinalBuilder server.Grimsley
U
1

I have had the same problem with automatically making screenshots from my application from a FinalBuilder project run by FinalBuilder Server. The solution that worked was the VMWare - Execute Guest Command action with the command set to Run a program interactively in Guest OS. You have to set the Guest Credentials to the interactive user of the VM.

If your build server itself is running inside a VM you must set the Host Name to the machine where VMWare is installed to make this work. I didn't try that though, as my FB server is running on a physical machine.

Unbearable answered 3/4, 2012 at 10:36 Comment(0)
C
0

Shameless plug from my answer to a similar question here

  • Set up a virtual machine on your build server. Your builds execute in the virtual machine. You can lock the host (aka your buildserver) keeping things secure.
  • Keep someone logged on all the time. This could create a security problem. You can alleviate this problem a by removing the mouse, keyboard and the screen and only access the buildserver through RDP or something similar.

Take a look at the Testcomplete FAQ: Can TestComplete execute scripts when the computer is locked?

Clobber answered 8/3, 2010 at 8:8 Comment(1)
The build server and test complete are running on a VM already.Grimsley
G
0

It turns out the FinalBuilder server can't run test complete projects that interact with the GUI.

To get around this, I created a scheduled task to run a VBS script that runs the TestComplete project. The script then copies the HTML output to another folder which FinalBuilder watches.

A FinalBuilder project parses the HTML and sends an e-mail out with the summary results and the HTML attached.

Grimsley answered 10/3, 2010 at 1:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.