cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create a user session - Error in Jenkins

New Contributor

Unable to create a user session - Error in Jenkins

I am trying to run Test Complete projects as a Freestyle Project on Windows server using Jenkins that is installed on the same sever.

Getting below Jenkins error –

 

Console Output

Started by user Shehnaz Patanwala

Running as SYSTEM

Building in workspace C:\Program Files (x86)\Jenkins\workspace\Test Complete

 

[TestComplete] The test execution started (PITA_Internal/C:\Users\Public\Install\pita-ui-automation-projects\PITA_Internal\A-Account_Reset_Project\A-Account_Reset_Project.mds).

[TestComplete] Found TestComplete/TestExecute installations:

        Type: TE, Version: 14.10.1042.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"

[TestComplete] Selected TestComplete/TestExecute installation:

        Type: TE, Version: 14.10.1042.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"

[TestComplete] Launching the test runner.

$ '"C:\Program Files (x86)\SmartBear\TestExecute 14\bin\TestCompleteService14.exe"' //LogonAndExecute //lDomain: "" //lName: "" //lPassword: ******** //lTimeout: "-1" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" C:\Users\Public\Install\pita-ui-automation-projects\PITA_Internal\PITA_Internal.pjs /run /SilentMode /ForceConversion /ns /exit "/ExportLog:C:\Program Files (x86)\Jenkins\workspace\Test Complete\1571766356292.tclogx" "/ExportLog:C:\Program Files (x86)\Jenkins\workspace\Test Complete\1571766356292.htmlx" "/ErrorLog:C:\Program Files (x86)\Jenkins\workspace\Test Complete\1571766356292.txt" /project:C:\Users\Public\Install\pita-ui-automation-projects\PITA_Internal\A-Account_Reset_Project\A-Account_Reset_Project.mds /DoNotShowLog /JenkinsTCPluginVersion:2.3"'

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

[TestComplete] [WARNING] Unable to find the log file "1571766356292.tclogx".

[TestComplete] [WARNING] Unable to find the log file "1571766356292.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 (PITA_Internal/C:\Users\Public\Install\pita-ui-automation-projects\PITA_Internal\A-Account_Reset_Project\A-Account_Reset_Project.mds).

Build step 'TestComplete Test' changed build result to UNSTABLE

Finished: UNSTABLE

 

 

Looks like it’s failing because of not creating a User Session. I have configured my workstation accordingly. Only thing that's missing in Jenkin step is creating a node and cofiguring Jenkins slave agent runs as a service. 

Is this a required step to run freestyle job on the server locally?

3 REPLIES 3
Community Leader

Re: Unable to create a user session - Error in Jenkins

Hi,


Yesterday i had the same error working with Jenkins and we notice that we needed to configure Jenkins slave exactly on the user You are trying to use with Jenkins slave service.


So, did you configure the Jenkins slave on the user which You are trying to use with Jenkins?

 

Ore there is a few configure checboxes to set up before run slave job, like "use active session" etc.

Community Hero

Re: Unable to create a user session - Error in Jenkins

Hi,

 

https://support.smartbear.com/testcomplete/docs/working-with/automating/session-creator/index.html might help as well.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Manager

Re: Unable to create a user session - Error in Jenkins

Thanks for your suggestions, AlexKaras, Wamboo.

 

@Shehnaz, do the suggestions help you resolve the issue?

 

 

 

 

 
---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors