Sending any input via keys dramatically slows down testing
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sending any input via keys dramatically slows down testing
Hello, I've noticed that when testing web login on my application, that either sending [Enter] via keys() or click/clickbutton() dramatically slows down my testing. There is always a 5 second delay, even after reducing the default wait/delay in the project options. Is there a way to force the input any faster?
I am using 12.0.122
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What message do you see in the indicator box when this is happening?
Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, let us know:
- what browser you are using
- if you can reproduce this behavior on a common page, say google.com
Also, make sure that you've installed patches for the latest browser versions:
https://support.smartbear.com/downloads/testcomplete/
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that you can also, for many objects, use the method "SetText" to send text data to a data entry field. Unless you specifically need to detect keyboard events, I prefer this method.
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
Wow I restarted the application after the machine had been hibernating for some time and now it is flying.
To answer the question, it was indeed independent of the application (tested on nytimes.com / browser bar input) and browser(edge/firefox/chrome), but only seemed to affect those three methods (click/clickbutton/keys). setText and all other code executed when expected. The playback description was simply 'playback' when it manifested.
Changes to project options and active extensions were made but it apparently had no effect until restarting the application a couple times. I am not certain of all of the changes I made otherwise I would list them here.
Thanks for the suggestions with setText, I do use that for most keyboard input.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And yet we use Keys for everything with no problem and SetText has been slow and inaccurate for us! 🙂
Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SetText is a less valid test as you're performing an operation that a user would not do. Keys uses actual Windows events to perform the operation which is much more realistic.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
