spothu
15 years agoOccasional Contributor
TC 8.6 very slow with Sys.keys method, compared with TC7.5
Hi,
we have a performence issue with TC8.60. Executing scripts are taking double time compared with TC7.5, on different IE versions. The performence goes down wherever we use sys.keys method, we tried simulating keystrokes as well, still there is no improvement in performence.
Looking forward for any solution. as we need to upgrade our existing project suites to TC 8.6 from TC 7.5
I did not find suitable thread to post this issue, so i started new thread.
Thanks,
Sowmya
we have a performence issue with TC8.60. Executing scripts are taking double time compared with TC7.5, on different IE versions. The performence goes down wherever we use sys.keys method, we tried simulating keystrokes as well, still there is no improvement in performence.
Looking forward for any solution. as we need to upgrade our existing project suites to TC 8.6 from TC 7.5
I did not find suitable thread to post this issue, so i started new thread.
Thanks,
Sowmya
Sowmya,
This behavior is caused by certain specifics of the browser's functioning. Here is a quote from the Simulating Keystrokes in Browsers topic of the TestComplete help:
If the tested web page is shown in Internet Explorer ver. 7 and later, and you are using the Keys method to simulate text input, the method's performance will be slower than that for the page shown in Internet Explorer ver. 6, the WebBrowser control or Mozilla Firefox.
The problem is caused by some specifics of Internet Explorer version 7.0 and later. In these browsers, text controls cannot process the input at an adequate speed, so inputting some characters can be skipped. For these controls, TestComplete automatically reduces the keystroke simulation speed to ensure that all characters are entered.To work around the problem, set an element's text using the element's value property rather than the Keys method. You can find an example in the TestComplete help: Simulating Keystrokes in Browsers.