computer gets locked while executing specific keyword test with Testcomplete
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What happens when you try this test manually? Does it still lock up?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure that you are not using key combination like WIN+L in your test?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you trying to use TestComplete to log into the remote desktop?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
