Forum Discussion

siddhu's avatar
siddhu
Contributor
16 years ago

Can we Run TestComplete as a background process?

Hi

I want to test My Product using TestComplete.At the same time I want to do another task(Other than TestComplete task).

Can We Run TestComplete in the Background?

6 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 2 rankChampion Level 2
    Hi siddhardha,



    Yes, this is possible but only in case if your test does not interact with GUI elements (i.e. if no UI control is clicked, pressed, dragged, etc.). As TestComplete emulates user actions when clicking/pressing/etc. UI elements, you will have a racing conditions in this case. Everything should work smoothly if the test works with tested object properties only and does not require interaction with UI elements.
  • dvriesman's avatar
    dvriesman
    New Contributor


    Hello,



    We need to test some desktop applications written in delphi in a build continuous integration.

    We have the jenkins (like hudson build continuous environment) running as service at a virtual machine.



    The jenkins get the code from repository, compile it, generate some metrics, and now we'll need to make the tests.



    When we've called testExecute directly from cmd with an user with a GUI session, the test cases were executed successfully.

    But, when Local System Account (with interactive with desktop flag checked) running jenkins has called testExecute,

    the testexecute is not running right. The GUI operations over the target applicaton are lost, some times even the target application isn't starting althrought test case scripts.



    So, I need to know how to solve this problema. How could I running deskop tests with testcomplete in a Build Continuous Enviromment.



    Thank you in advance,




  • Hello,

    The reason can be different levels of user permissions. See Working With TestExecute Under a User Account.

    Try launching Jenkins manually as an application (rather than launching it as a user-interactive service) or launching the tested application from TestExecute (in this case it would have the same privilege level as TE).



    Hope this helps. Artem.
  • dvriesman's avatar
    dvriesman
    New Contributor
    Hi Artem,



    Thank you for answer.

    The issue now has changed. I achieved run testExecutor from Jenkin's service account in background (local system account/interative with desktop option checked), but when I open a MSTSC /admin to virtual machine that hosts testcomplete, I've seen that scritps aren't working correclty: It's not finding the input componentes of the login screen of my application to fill the user and password, and the script is not  fiding the OK button, for exemple. All tests has failed.

    When I've ran it from console with normal account all scripts are running right.



    Thank you so much.




  • Hello Denny,

    So you have both Jenkins and TC/TE on a virtual machine and are using Remote Desktop to control the virtual machine. Did I get it correctly?

    In this case, to perform GUI actions in TC/TE, you should not disconnect from the Remote Desktop Connection session or lock the main computer. See Running Tests via Remote Desktop - Overview. Moreover, it is recommended that you keep the Remote Desktop window visible during the entire test run. These are RDC restrictions, otherwise the virtual OS switches to the GUI-less mode. However, the latter restriction can be bypassed by editing the registry. See Running Tests in Minimized Remote Desktop Windows for details.



    Regards. Artem.
  • dvriesman's avatar
    dvriesman
    New Contributor
    Hi Artem,



    Yes, I have both Jenkins and TC/TE on the same virtual machine.

    I followed the instructions of sites you sent me and finally I've made the automatic tests.



    I change the infraestructure to put TC/TE on another virtual machine. So, now I have 2 virtual machine, the first one is with Jekins,

    and the second is with TC/TE. So, the first VM is keeping a permanent terminal server connection with the TC/TE VM.

    I've edited window register in first VM, so I can keep the mstsc session minimized.



    Thank you very much for your help and time.