Forum Discussion

junblood's avatar
junblood
New Contributor
14 years ago

How to use TestComplete with Jenkins?

Hello!



I want to use Jenkins to trigger TestComplete, and TestComplete will launch a .Net application for UI Autotamtion testing.The application which launched by TC runs as 'SYSTEM' user.The issue is, TC cannot find the .Net object when it runs as 'SYSTEM' user.



For example:

If I launch the application manually , the object’s fullname will be:


“Sys.Process("NewConsole").WinFormsObject("Console Manager")”




If I use Jenkins to trigger TestComplete and launch the application, I found the fullname of the application’s
object was changed like:


“Sys.Process("NewConsole").Window("WindowsForms10.Window.8.app.0.33c0d9d",
"Console Manager", 2)”


 


Is there any solution?





Thanks.

3 Replies

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



    > The application which launched by TC runs as 'SYSTEM' user.

    I think that the main idea of the thread referenced by Jared was that when testing applications with UI, both TestComplete and tested application must be started under the user account that have active desktop session. This is not TestComplete's requirement, but the feature of the Windows OS - the case is that the OS does not provide application with the desktop if application is started non-interactively and without desktop there is no place where UI can be displayed. TestComplete can run and execute test scripts without any problem when started from the command line even in non-interactive mode, but the test code fails to interact with the UI simply because there is no UI at all.

    The solution for this problem is to start TestComplete (and, subsequently, the tested application) in the user session of the logged-on user with the desktop not been locked.