Forum Discussion
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
Hi Jens - If you are trying to run batch in remote system(Node) then try with Checkbox {Run interactive user session & Use active session} enabled and also pass system credentials..
Thanks,
Kavan
- magi-i-luften8 years agoOccasional Contributor
Hi Kavan
Thank you for answering me - I appreciate any kind for help :o)
I think it's a rather "simple" setup I have:
Windows Server 12 R2 - my Jenkins-master.
On the server I also installed TestExecute 12.
I don't have any nodes but the master itself - shouldn't it be possible to run the TestComplete job in such a constellation?
Attached you find my Jenkins-settings for the TestComplete-job.
As you can see on the settings, I use a service-account for the Test Runner - this user is domain-user and member of the administrator-group.
The Jenkins-service on the server is marked with "Allow service to interact with desktop".
What have I done wrong?
Best regards
Jens
- AlexKaras8 years agoChampion Level 3
Hi Jens,
The most easy and reliable solution is to have a dedicated user account, specify this account for the test settings and guarantee that this given user is logged-in interactively before the test is started.
Actually, this has been discussed here a lot of times and the problem is not TestComplete-specific, but rather specific to the most of CI servers running non-interactively and tests that closely emulate end-user actions.
In a nutshell:
-- CI software usually runs non-interactively and do not interact with the desktop;
-- The fact that some account is allowed to interact with the desktop does not mean that account will be able and will be allowed to do this: account must have a permission to logon interactively; the user session for this account (the one that it will interact with) must already exist; etc.
-- Tests that interact with the UI require active interactive user session with the desktop - this is because otherwise the tested application will not be able to display its UI and tests will fail because the UI will actually be absent.
https://community.smartbear.com/t5/TestComplete-Desktop-Testing/TestComplete-with-Jenkins/m-p/126539#M7186 is a sample of the relevant discussion.
- kavansays8 years agoContributor
All looks good; can you try with adding domain name before username you entered?
Eg: Domain\svc_p_jenkins
Thanks - Kavan
Related Content
- 5 years agoganeshsonar
- 7 months agosohailalam2696
- 4 years agoPadovani
Recent Discussions
- 19 hours agodhundley