Forum Discussion
Cool... thanks for the code...
To clarify... this issue started happening a couple of weeks ago? Or has it been happening all the time and has been going on for a couple of weeks?
Because, if it started happening, then the relevent question is: what changed. If it's not your code, and it's not TestComplete, then something changed in the application that is having TestComplete take time to click the check box.
Something that is not apparent in this code... do you have any event handlers that are triggered on logging? For example, do you have anything assgined to OnLogEvent? The reason being is that event handler processing on logging occurs before the log entry is written... so, if there is an event handler on OnLogEvent, that is going to process before the log record for the "click" shows up.... so, those 70+ seconds could be accounted for by the event handler, if it exists.
As for the web table refresh, I wondering if that could, honestly, be part of it. Here's why... objects are passed by reference in JScript, JavaScript... so, that checkBox object is a "found" object. If the web page is refreshed, then attempting to "click" on the item means that TC may need to re-find that object.... This is just a theory...
In any case, I don't see anything specific here that would cause TestComplete to run slow so that leads me in the direction of wondering what's going on in the application. Have you observed the test executing? Can you observe the 70+ second delays? What happens when you step through the code? Does the delay happen on the click when you step through?
Kool..Thanks for quick reply...
Here is the things listed...
1) Manual operations on application resulting page load within .5 to 1 sec.
2) If you observe my log snapshot...Name mapping or object identification is not as issue...why because almost other 25 objects identified and validated in 2 to 3 sec duration.
3)I am able to see the delay after "Identifying obj"(highlight or hover or cursor moves to selected check box) and click.
4)I didn't use any event handlers in this proj...(Planning to implement in future).
5) within these couple weeks, there may be new development happened to add some new features in overall application, but it is not related to current code,then why this one effected? Code is executing correctly....
6) Checkbox is identified by "find child "mechanism..offcourse all +ve checked boxes also identified by same loop.
- tristaanogre9 years agoEsteemed Contributor
rndasa wrote:
3)I am able to see the delay after "Identifying obj"(highlight or hover or cursor moves to selected check box) and click.
This statement... plus your comment that there was the possibility development done... indicates that there is something going on behind the scenes that, when a click is executed, there's some processing going on that is requiring TestComplete to wait before it can execute the click. When the mouse moves to the component to click it, stuff must be happening that makes TestComplete wait... are there tool-tips that show, other code processing that is happening, etc?
So... my recommendation would be to go to your developers and figure out what changed that would cause this. It's most likely not a problem with your script code or with TestComplete but with some processing going on behind the scenes... if they can clean that stuff up, this might work better.- rndasa9 years agoOccasional Contributor
First:I checked with my dev team and there is no development on this specific gadget .
Second: I am able to see working fine while performing Manually
Third:In the above logic..Only else part is having click operation, and entire loop is not consuming much time except "else" part.
Fourth: After click...is there any process to see what threads are in process for TESTCOMPLETE?
Fifth: Is testcomplete is compatible with CHROME52??
Sixth:Is there any debugging mechanism to see what system performing while doing that (76 sec) time? like any server/test complete process monitor logs? or any extension for analytics??
Finally..Problem is not resolved and still that code snippet is still irritating.
- tristaanogre9 years agoEsteemed Contributor
At this point, I'm at a loss. My suggestion would be to contact support and see if they can give you some insight.
https://support.smartbear.com/message/?prod=TestComplete