make recording more reliable
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
make recording more reliable
I recorded some keyword test cases from about a month ago and they were working fine. Today when playback the recording, it complains that it cannot find objects. Nothing was change to application. How can I record test cases so that it's more reliable? Any suggestions is greatly appreciated.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will likely have to make some adjustments to your recordings. Everyone's software is different and runs on different machines and TestComplete can get you really close to what you need but some of the fine tuning you have to do on your own.
If you are getting object not found messages and nothing has changed in the application, then it might be a timing issue. Try putting a Delay right before a line that fails and see if waiting a little will help the object be found. You can do that in a keyword test.
If this is happening in many places, instead of adding many Delays, you can also change the time between all events in Project Properties -> Playback and all your test steps will run a little slower. I've had to do that to accommodate the timing between running on my laptop and running on a vm.
Later on, if you get comfortable with adding Code Snippets or creating scripts, you can use the Wait functions to fine tune things even more:
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
@Marsha_R's response is spot on.
The only other thing I'd add is that, if you want to tweak the timing for specific operations and not just the global value, you can right click on any operation in your keyword test and select "Set Auto-Wait Timeout for Operations" to override that project default value for the specific operation.
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
And, in case you prefer to record your tests, the recommended practice is to consider what UI objects the test will interact with, manually namemap them beforehand to ensure that the mapping uses stable and reliable identification parameters and only then record the test.
/Alex [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
================================
