Forum Discussion

Michael_B's avatar
Michael_B
Contributor
1 day ago

TestComplete cannot create sessions from Jenkins

Whenever we attempt to run a job against Windows 11 from Jenkins, we get this error:

Test runner exit code: -10 (Unable to create a user session).

We have several different set of credentials we use for various jobs, so our VMs are not logged on with a single account all the time. We have been using TestComplete's Jenkins plugin for several years and switching between accounts using the plugin and TestExecute's functionality has worked fine. Now it does not. 

When will this be fixed? I would prefer to continue to use the product we pay for and not a separate companies product or even worse storing the credentials in the registry.

Has anyone else seen this behavior and do you know of a fix?

Thanks for any tips to get this feature working again!

1 Reply

  • scot1967's avatar
    scot1967
    Icon for Champion Level 3 rankChampion Level 3

    Hello Michael_B,

    We here in the community don't know about time lines for fixes or if this is something that has been reported as a bug.  Have you checked with Support?  The easiest way to open a support ticket is through TestComplete directly from Help| Contact Support Team...

    However, basic questions,

    • Which version of TestComplete are you running.
    • What changed? — Did anything update around the time both issues started: Jenkins, the TC plugin, TestExecute, or Windows?
    • How is the Jenkins agent connected on the Windows 11 VM? — Windows service, JNLP, or something else?
    • Is there an active, unlocked interactive session on the Windows 11 VM when the job runs? — Not just logged in, but unlocked and at the desktop.


    My instinct is this is an upgrade or configuration change rather than a bug — either something updated in Jenkins, the TC plugin, or TestExecute, or Windows 11 tightened a remote session policy either through an OS update or a direct configuration change.

    ... If you find my posts helpful drop me a Like👍 Be sure to mark the post as the Solution✅ when you get one to help others out and to credit the one who helped you. 😎