Forum Discussion

newbie23's avatar
newbie23
Occasional Contributor
14 years ago

TestComplete problem in Automated Build Studio

Hello,



I have a macro in Automated Build Studio that first builds a vb6 program and then runs a test on it in TestComplete.



When I run this macro in Automated Build Studio, all is well.  However, if I set up a Continuous Integration task to run this same macro, TestComplete fails to find the initial object.  It appears (based on some of the debugging I did in TestComplete) that TestComplete and the program it is opening are both running invisible.



To try and work around it, I also tried to have Automated Build Studio open the program and then have TestComplete take it from there.  Automated Build Studio also opened the program invisibly and although TestComplete was still running invisible as well, it gave me the error I was looking for: "The window is invisible and thus cannot be actived".



So it appears the problem is that either way I go, my program opens invisibly.  I don't see any options in the CI Task scheduler to change this, so how can I fix this?



I have CI task set to run whenever there is a svn update so ideally it will do a build and then run regression tests along with new unit tests that get added to the script.



Any idea's?

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Scott,



    The case is that when you run ABS interactively (i.e. from your desktop), the tested application and TestComplete start in your user session as well (as a processes spawned by ABS). The tested application can draw its UI and TestComplete can access and interact with it.

    When the ABS macro is executed as CI task, it is started by ABS service running (by default) under the system account. System account does not have either its own desktop or access to your one so that OS can draw application's UI. That is why TestComplete cannot find the tested objects.

    I would recommend you to search ABS (http://community.smartbear.com/forum/?mode=singleForum&forum=0331ec96-8718-4144-be56-82bc5f49888d) or this section of the forum as there were a few discussions on exactly the same question.

    The possible solutions are either to start ABS service on behalf of dedicated user or use the RunInteractive utility provided with the ABS. Note, that regardless of the approach you select, it will be required to have an unlocked system with the logged-in user to start TestComplete and tested application on.