Forum Discussion

Loganathan's avatar
Loganathan
Occasional Contributor
9 years ago

How to fix Unable to create a user session using jenkins in TestComplete

1. Start Jenkins in Mypc.

2. Create a node successfully.

3. Take another pc to enter my jenkins with created node url (ipaddress:8080/computer/TestNode/)

4. Connect the Jenkins slave-agent

5. Create a new job and build

 

Actual Result:

 

Started by user anonymous
Building remotely on Node in workspace C:\Windows\system32\workspace\Dummy

[TestComplete] The test execution started (Local Demo).
[TestComplete] Found TestComplete/TestExecute installations:
Type: TC, Version: 11.20.1491.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
Type: TC, Version: 11.20.1491.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
[TestComplete] Launching the test runner.
$ '"C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestCompleteService11.exe"' //LogonAndExecute //lDomain: "" //lName: "ravipc" //lPassword: ******** //lTimeout: "300000" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe" "C:\Windows\system32\workspace\Dummy\Local_Demo\Local Demo.pjs" /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\Windows\system32\workspace\Dummy\5846064.tclogx /ExportLog:C:\Windows\system32\workspace\Dummy\5846064.htmlx /ErrorLog:C:\Windows\system32\workspace\Dummy\5846064.txt /ExportLog:C:\Windows\system32\workspace\Dummy\5846064.mht /Timeout:120"'
[TestComplete] Test runner exit code: -10 (Unable to create a user session).
[TestComplete] [WARNING] Unable to find the log file "5846064.tclogx".
[TestComplete] [WARNING] Unable to find the log file "5846064.htmlx".
[TestComplete] [WARNING] Unable to find the log file "5846064.mht".
[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 (Local Demo).
Build step 'TestComplete Test' changed build result to UNSTABLE
Finished: UNSTABLE

7 Replies

    • kavansays's avatar
      kavansays
      Contributor

      Tried configuring all these above listed settings still getting same error..

       

      [TestComplete] Found TestComplete/TestExecute installations:
      	Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
      [TestComplete] Selected TestComplete/TestExecute installation:
      	Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
      [TestComplete] Launching the test runner.
      $ '"C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestCompleteService11.exe"' //LogonAndExecute //lDomain: "" //lName: "vwagh" //lPassword: ******** //lTimeout: "-1" //lUseActiveSession: "false" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe" D:\AutomationDir\INDMS\Suits\InDMS\InDMS.pjs /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\jenkins_slave\workspace\INDMS_GUI_SMOKE\5901695.tclogx /ExportLog:C:\jenkins_slave\workspace\INDMS_GUI_SMOKE\5901695.htmlx /ErrorLog:C:\jenkins_slave\workspace\INDMS_GUI_SMOKE\5901695.txt /project:SMOKE"'
      [TestComplete] Test runner exit code: -10 (Unable to create a user session).
      [TestComplete] [WARNING] Unable to find the log file "5901695.tclogx".
      [TestComplete] [WARNING] Unable to find the log file "5901695.htmlx".
      [TestComplete] [WARNING] Errors occurred during the test execution.
      [TestComplete] Marking the build as UNSTABLE.
      [TestComplete] The test execution finished (InDMS/SMOKE).
      Build step 'TestComplete Test' changed build result to UNSTABLE
      Finished: UNSTABLE
      • magi-i-luften's avatar
        magi-i-luften
        Occasional Contributor

        Hi

         

        Any solution to this issue?

         

        I'm also facing the exactly same problem.

        I'm able to start TestExecute 12 (version: 12.10.602.11) and manually start my project which uses Firefox 45.0.2 - with success.

        But my job in Jenkins are still giving me the same error:

        [TestComplete] Test runner exit code: -10 (Unable to create a user session).
        [TestComplete] [WARNING] Unable to find the log file "1471179.tclogx".
        [TestComplete] [WARNING] Unable to find the log file "1471179.htmlx".
        [TestComplete] [WARNING] Unable to find the log file "1471179.mht".
        [TestComplete] [WARNING] Errors occurred during the test execution.
        [TestComplete] Marking the build as FAILED.
        [TestComplete] [WARNING] Unable to publish test results (xml data is empty).

         

        I'm using Jenkins version 2.32.1 and TestComplete support plug-in version 1.6.

         

        Anybody help out there?

         

        Best regards

        Jens