Test runner exit code: -10 (Unable to create a user session)
Hi,
I am getting an error in Jenkins when trying to run/build a TestComplete project. See the full build logs including the error that appears below:
Started by user admin Running as SYSTEM Building on master in workspace C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TestCompeleteCheck [TestComplete] The test execution started (TestCompleteExampleTest). [TestComplete] Found TestComplete/TestExecute installations: Type: TC, Version: 14.80.627.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" Type: TELite, Version: 14.80.627.50, Path: "C:\Program Files (x86)\SmartBear\TestExecuteLite 14\x64\bin\TestExecuteLite.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TC, Version: 14.80.627.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestComplete 14\bin\TestCompleteService14.exe"' //LogonAndExecute //lDomain: "" //lName: "" //lPassword: ******** //lTimeout: "-1" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TestCompeleteCheck\TestCompleteExampleTest\TestCompleteExampleTest.pjs" /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TestCompeleteCheck\1618931950146.tclogx /ExportLog:C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TestCompeleteCheck\1618931950146.htmlx /ErrorLog:C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TestCompeleteCheck\1618931950146.txt /JenkinsTCPluginVersion:2.6.2"' [TestComplete] Test runner exit code: -10 (Unable to create a user session). [TestComplete] [WARNING] Unable to find the log file "1618931950146.tclogx". [TestComplete] [WARNING] Unable to find the log file "1618931950146.htmlx". [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished (TestCompleteExampleTest). Build step 'TestComplete Test' changed build result to UNSTABLE Finished: UNSTABLE
I followed the documentation: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/running-tests.html to make the tests and also followed the documentation: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/requirements-and-limitations.html so I'm unsure as to where I went wrong.
From the build config youll need to conifigure a user.
Add a user that will be used for the interactive session. (Credentials)
Whether thats a test user or your own AD user as long as its valid and has relevant permissions you should be good.Try that and let me know how it works
KR
Vinnie
Ok, just reporting that I did manage to get it working. The issue was actually a corrupted x64 installation. Couldn't do a clean uninstall either, so had to do it manually and copy over a clean install from another server, e.g. files, folders, registry settings, etc. But it works now.