Ask a Question

computer gets locked while executing specific keyword test with Testcomplete

vvg
Occasional Contributor

computer gets locked while executing specific keyword test with Testcomplete

Yesterday I was making a keyword test which would go from a login page, to a forgot password page.

Everytime I execute this test (with testcomplete on win 10), for every browser, when I click on the "forgot password" link, my computer gets locked.

When I execute this test manually it doesn't lock my PC.

Has anyone ever had this problem before? And is this behaviour that should be expected when your application is "really safe"?

Or might there be something else going wrong?

I have added a screenshot of the test.

 

I have not found the cause of this problem, but the problem seems to be solved when I restarted the PC which was running Testcomplete.

7 REPLIES 7
tristaanogre
Community Hero

Re: computer gets locked while executing specific keyword test with Testcomplete

It depends, somewhat, on what actually happens when you click on that link.  What sort of window opens up, if any?  When you say your computer gets locked, do you mean it goes to your own login screen/lock screen?  Does it stop responding? 

 

My guess... and this is just a guess... is that clicking on that link opens a modal dialog which needs to be closed before anything else can happen.  The application does not return until the dialog is closed... if it doesn't return, TestComplete can't know what next to do. 

 

This is considered an "Unexpected Window"... you may be able to handle it via the following instructions.

 

https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/unexpected-wind...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Marsha_R
Community Hero

Re: computer gets locked while executing specific keyword test with Testcomplete

What happens when you try this test manually?  Does it still lock up?

vvg
Occasional Contributor

Re: computer gets locked while executing specific keyword test with Testcomplete

When I click on that link, I will be redirected to a new page in the same browser.

There are no models or whatsoever involved.

When I execute this test manually, that is what happens.

But when executed via Testcomplete it locks my computer as in I need to enter my windows password again, so that would be the lock screen indeed.

Because of this, testcomplete cannot continue with its test, unless I unlock the computer again.

This is only on the windows 10 pc where I logon via remote desktop btw.

 

Kraku
Occasional Contributor

Re: computer gets locked while executing specific keyword test with Testcomplete

Are you sure that you are not using key combination like WIN+L in your test?

tristaanogre
Community Hero

Re: computer gets locked while executing specific keyword test with Testcomplete

OK, so you login via remote desktop.... when your tests get to that point of your test case, how long have they been running and, when they are running, are they actually clicking via mouse, etc?

 

The reason being... it might not be the automation locking your machine but the Windows operating system doing so.  If the machine is idle for a certain period of time, does it auto-lock? Is this something you can disable?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Marsha_R
Community Hero

Re: computer gets locked while executing specific keyword test with Testcomplete

Are you trying to use TestComplete to log into the remote desktop?

vvg
Occasional Contributor

Re: computer gets locked while executing specific keyword test with Testcomplete

Thank you for all the replies.

 

I am sure that I did not use a win+l key combination in my test.

The test had been running for a few seconds, maybe a minute and then it gets locked. So I cannot imagine that it would be the windows machine locking because of idlenes. Also because that feature should be disabled (but in Windows you never know ofcourse).

I was not trying to logon to remote desktop via testcomplete, I was already logged on via remote desktop and there the test was executed, which was just testing a webpage, nothing more.

 

The weird thing is: I have logged on via a different way and restarted the computer.. and now.. it seems to work normally again. As in, when I execute this test now, my computer is not getting locked. Therefore I think I might blame Windows.. but ofcourse, you can never be sure.

 

cancel
Showing results for 
Search instead for 
Did you mean: