dshriver
11 years agoOccasional Contributor
Problems recording tests
A coworker was showing me how she records tests in TestComplete. I was shocked when it came time to playback the recorded tests because she was doing a lot of patching work on the recorded test (that I would have thought would be unnecessary).
For instance, there were steps that were put into the recorded test that she routinely disabled because they seemed to be spurious and cause problems (bogus clicks, drag operations, hover mouse operation (those always seemed to be bogus)). Some made a bit of sense to me, for instance when entering a text value, TestComplete would sometimes capture partial results before capturing the entire value; but many of these patching steps seemed like we really shouldn't need to do them.
Worse yet, there are some rather inscrutable errors that crop up. For instance, a user clicks a "NEXT" button on a form and for some reason in the recorded test the object clicked on is not the "NEXT" button but a bogus object reference. Or the form is submitted and (for unknown reasons) the test times out before the reply happens (this seems to happen a lot inside the recorded tests, even if we increase the wait times to 30-40 seconds; which seems very odd because when we run the forms outside TC the reply times are typically less than 2 seconds).
What I'm wondering is if there is something about our setup/configuration of TestComplete that is generating bogus steps during test recording, and if so how can I fix it.
The patching of recorded tests currently represents the bulk of the workload (the time to patch the tests takes quite a while because sometimes patching a broken step doesn't work properly the first, second, third, ... tenth time....). A form can be recorded in about 5-10 minutes or less, but the patching work can take in excess of one hour.
Some system details:
TestComplete: v 10.10 build 752
running on Windows 7 Enterprise 64 bit
machine has 8GB ram and 2 Xeon CPUs
Not sure that it matters, but I don't directly work on the box where I am using TestComplete. I use a RemoteDesktop connection from my machine to the machine where TC is on. This can't really be avoided (but if there are other better ways of connecting, or ways of setting up RemoteDesktop better let me know) since the machine running TC is likely in some back room full of servers, and people working on it (like me and my coworker) are physically located in non-adjacent states.
For instance, there were steps that were put into the recorded test that she routinely disabled because they seemed to be spurious and cause problems (bogus clicks, drag operations, hover mouse operation (those always seemed to be bogus)). Some made a bit of sense to me, for instance when entering a text value, TestComplete would sometimes capture partial results before capturing the entire value; but many of these patching steps seemed like we really shouldn't need to do them.
Worse yet, there are some rather inscrutable errors that crop up. For instance, a user clicks a "NEXT" button on a form and for some reason in the recorded test the object clicked on is not the "NEXT" button but a bogus object reference. Or the form is submitted and (for unknown reasons) the test times out before the reply happens (this seems to happen a lot inside the recorded tests, even if we increase the wait times to 30-40 seconds; which seems very odd because when we run the forms outside TC the reply times are typically less than 2 seconds).
What I'm wondering is if there is something about our setup/configuration of TestComplete that is generating bogus steps during test recording, and if so how can I fix it.
The patching of recorded tests currently represents the bulk of the workload (the time to patch the tests takes quite a while because sometimes patching a broken step doesn't work properly the first, second, third, ... tenth time....). A form can be recorded in about 5-10 minutes or less, but the patching work can take in excess of one hour.
Some system details:
TestComplete: v 10.10 build 752
running on Windows 7 Enterprise 64 bit
machine has 8GB ram and 2 Xeon CPUs
Not sure that it matters, but I don't directly work on the box where I am using TestComplete. I use a RemoteDesktop connection from my machine to the machine where TC is on. This can't really be avoided (but if there are other better ways of connecting, or ways of setting up RemoteDesktop better let me know) since the machine running TC is likely in some back room full of servers, and people working on it (like me and my coworker) are physically located in non-adjacent states.