cancel
Showing results for 
Search instead for 
Did you mean: 

The operation cannot be performed, because the user session is disconnected.

SOLVED
Highlighted
New Contributor

The operation cannot be performed, because the user session is disconnected.

I'm running Test Complete tests using Jenkins from master to slave node. When i RDP to the slave machine and run the job test will succeeds. But if the RDP is closed and when i try to exectute tests it shows an error in every test cases:

 

The operation cannot be performed, because the user session is disconnected.

 

 I need to run Test Complete test from master node unattended. I configure slave node as Java web start. Jenkins runs as User in slave. I configured Test complete job to run an interactive session and i specified username and password for the interactive session. Is there anything i'm missing or is it must to have a slave RDP connection opened during the tests.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Thanks for the solutions. My requirement was to run TestComplete tests in Jenkins slave unattended without having any RDP connection. I found out the issue which was happening to me. That is basically my jenkins slave was running as JNLP application. Therefore TestComplete can't run an interactive session. For running an interactive session from jenkins from TestComplete we need to start jenkins slave as a service. And after that there's an option in jenkins TestComplete module to run the test in an active session or not. If you want to run the tests in an unattended mode we need to uncheck the option. Then TestComplete will create a new session and runs the tests.

View solution in original post

6 REPLIES 6
Highlighted
Community Hero

TestComplete has to be able to "see" the application being tested, just like a human tester would.  You're going to need that RDP connection.

Tags (1)
Highlighted
Occasional Contributor

Did you check this? https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...
EDIT: You can couple that with batch command which starts Testcomplete and initializes tests https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/... 
On the other hand I don't know wheter this is going to work, since I've never had the opportunity to use Jenkins... It works with regular remote connections though. 

Tags (1)
Highlighted
Frequent Contributor

it seems recent version of TC allows us to run test on Remote desktop been disconnected

Just you have to pass the cmd line to disconnect RDP and keep Test Running.

Below is the link

 
Highlighted
Community Manager

Thank you everyone for the advice!

@afnanashraf10 Which one solved the issue for you? Please mark it as a Solution🙂


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
New Contributor

Thanks for the solutions. My requirement was to run TestComplete tests in Jenkins slave unattended without having any RDP connection. I found out the issue which was happening to me. That is basically my jenkins slave was running as JNLP application. Therefore TestComplete can't run an interactive session. For running an interactive session from jenkins from TestComplete we need to start jenkins slave as a service. And after that there's an option in jenkins TestComplete module to run the test in an active session or not. If you want to run the tests in an unattended mode we need to uncheck the option. Then TestComplete will create a new session and runs the tests.

View solution in original post

Highlighted
Community Manager

Thank you for sharing the Solution @bach_ls 🙂


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

Participate!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors