Unable to create a user session - Error in Jenkins
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reply @AlexKaras
Yep!
That's it... That is exactly the issues I Have :
No user session >>> .... so no interactives actions in my application !
I just send to smartbear's support team the traces they requested.
Maybe you are familiar with them. You seems to well-know Testcomplete.
I also check with my Local IT system team
It seems there are some fails informations for them , and they'll have a look too ;
2020-06-16 13:38:54.915 14164 SetAllAppPackagesPermissionsForProductDirectory: RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\SmartBear\TestComplete\14.0\Setup) failed with error = 0x00000002.
2020-06-16 13:39:54.168 2420 RDP control thread started
2020-06-16 13:39:54.187 2420 RDP window: OnCreate
2020-06-16 13:39:54.188 2420 parent=0x005301B6, rdp=0x000D025E
2020-06-16 13:40:00.236 2420 RDP control created, hwnd=0x005301B6
2020-06-16 13:40:00.239 2420 RDP: RemoteDesktopSizeChange, width = 1920, height = 1080
2020-06-16 13:40:00.243 2420 RDP: Connecting
2020-06-16 13:40:00.252 2420 RDP: Disconnected, reason = 2825
2020-06-16 13:40:00.252 2420 reason_ex = 0
2020-06-16 13:40:00.252 2420 description = L’ordinateur distant nécessite une authentification au niveau du réseau, qui n’est pas prise en charge par votre ordinateur. Pour obtenir de l’assistance, contactez votre administrateur système ou le support technique.
2020-06-16 13:40:00.253 2420 RDP window closing
2020-06-16 13:40:00.253 2420 RDP window destroying
2020-06-16 13:40:00.265 2420 RDP control thread exit
2020-06-16 13:40:00.266 1648 CtcStationRDPSession::Initialize: LogOn failed with error Application exception: The user 'GPSI\assqual' failed to log in to this host using Remote Desktop. L’ordinateur distant nécessite une authentification au niveau du réseau, qui n’est pas prise en charge par votre ordinateur. Pour obtenir de l’assistance, contactez votre administrateur système ou le support technique.
2020-06-16 13:40:00.266 1648 CtcStationRDPSession::FinalRelease
2020-06-16 13:40:00.266 1648 RDP session finalizing, hwnd=0x00000000
Thank you for help.
Regards
Nicolas
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I believe that Support will provide you with better answer than I. From the messages sequence that you have posted, I can see that there was an attempt to open the RDP session and this attempt failed. It is not clear to me what these messages originate from. From TestComplete, Jenkins or some other application.
Also, I am not sure about the RDP session itself. To my knowledge (and to the experience I've got with Jenkins), I would expect the following scenario:
-- TestComplete is installed on the Jenkins slave;
-- Jenkins slave box has an active not locked user session with Jenkins slave running within this session as a regular Windows application;
-- Now Jenkins master contacts this given slave box, deploys tested application and test code to it (if required) and provides slave application with command line to start TestComplete;
-- Slave application starts TestComplete and provides it with command line arguments to start tests execution;
-- Jenkins master waits until TestComplete exits and reports the result.
The key above is that the user session already exists and there is no need for new RDP session. The only case when TestComplete opened RDP session by design was for Network Suite mode, but this seems to be not our case.
BTW, when there is an attempt to automatically open RDP session, nothing should prevent this on the client side. For example, display of Legal Notice screen ('You are accessing computer that is the property of...') requires user action and prevents automated creation of the RDP session if not manually assisted.
/Alex [Community Champion]
____
[Community Champions] 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. Posts made by [Community Champions]
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.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Alex, this is a great detailed answer.
@Nikolayev I checked your support case and see that the tests are running normally for you. Here's the article with requirements that need to be met:
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes
This case is solved now.
Thank you

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »