Ask a Question

Window user logoff automatically after SessionCreator that triggered from

furkanbodur
Occasional Contributor

Window user logoff automatically after SessionCreator that triggered from

Hello.

I have a jenkins job that trigger a test execution on another remote windows machine with session creator

furkanbodur_0-1674647697538.png

When I execute this jenkins job manually, tests are executed successfully.

Also this job is triggered from nightly CI/CD jenkins pipeline.

Tests are executed successfully as well BUT Windows (10) user logoff automatically . So every morning I logon to the new user session. So I lose my recent progress.

I don't know this is related to TestComplete session creator or jenkins. 

Anyone have an idea?

 

Logoff logs

furkanbodur_1-1674648799205.png

Jenkins job start-end time

furkanbodur_2-1674648854606.png

 

 

9 REPLIES 9
rraghvani
Champion Level 3

I don't fully understand what the issue is? Are you saying that once SesssionCreator has completed the automation, it logs off?

furkanbodur
Occasional Contributor

Not right after. There are few steps after execution such as result importer. But after all pipeline has finished, it logoff

rraghvani
Champion Level 3

I'm just trying to understand the behaviour, as I also use SessionCreator in PowerShell script to run my automation. Once the automation is completed, the sessions is closed, i.e. user is logged off. 

 

I'm just wondering if there's a setting in Jenkins to wait for the process to finish, before returning back.

furkanbodur
Occasional Contributor

I checked it but I don't see any settings on jenkins side. I think sessionCreater logon and logoff automatically for windows user and eventually it stays logoff .

rraghvani
Champion Level 3

SessionCreator will log on, run the automation, and then log off. I would have assumed using parameter  /UseActiveSession will maintain the current session after finishing.

 

Would it not be best to use TestComplete commands?

 

 

furkanbodur
Occasional Contributor

Yeah,  I agree.  Also I use /UA command. But /UseActiveSession command is about current TestComplete session, isn't it? or it is about windows session?

furkanbodur_0-1674729310514.png

 

Hi,

 

or it is about windows session?

It is about existing interactive session for the specified user. TestComplete itself does not provide any session.

 

Regards,
  /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
================================
rraghvani
Champion Level 3

The "session" refers to the user (UserX) that's logged onto the machine. When using /UseActiveSession, it will run the automation on UserX session. If you omit /UseActiveSession, it will run the automation on UserY session - based on the /UserName.

 

If you see Integration With Jenkins, in the video clip, they mention about "interactive user session" - this needs to be correctly setup.

furkanbodur
Occasional Contributor

I just missed one configuration setting and I fix it now. I will try it this night.

If it wont fix the problem I will create a windows user such as tester that mentioned in the videoclip.

And If this wont fix either I will try to Jenkins TestComplete plugin.

Thank you so much

cancel
Showing results for 
Search instead for 
Did you mean: