ckim
11 years agoOccasional Contributor
Scripting without Aliases
Hey All,
I'm currently testing an application where I can record scripts and the name mapping will work. However, when I quit the application and try to rerun the scripts I recorded, most of them produce the "Ambiguous recognition of the tested object" warning which then leads to the "Object does not exist" error. I read in a separate thread (http://smartbear.com/forums/f74/t90568/what-is-the-best-approach-for-scripting-with-na/) that you can find objects dynamically by using Find, FindChild, etc. with object properties. This seems like what I'm looking for because I'm pretty sure that everytime I close and reopen my application the properties of various objects change and in turn breaks the name mapping of my test project. Could someone help clarify how the Find methods work in getting objects during testing?
Thank You,
Chris
I'm currently testing an application where I can record scripts and the name mapping will work. However, when I quit the application and try to rerun the scripts I recorded, most of them produce the "Ambiguous recognition of the tested object" warning which then leads to the "Object does not exist" error. I read in a separate thread (http://smartbear.com/forums/f74/t90568/what-is-the-best-approach-for-scripting-with-na/) that you can find objects dynamically by using Find, FindChild, etc. with object properties. This seems like what I'm looking for because I'm pretty sure that everytime I close and reopen my application the properties of various objects change and in turn breaks the name mapping of my test project. Could someone help clarify how the Find methods work in getting objects during testing?
Thank You,
Chris
Automated screenshot capture (aka Test Visualizer) is currently not supported by TestLeft, but feel free to submit a feature request here.
You can log the screenshots manually by using the Log.Screenshot method. You can also have a screenshot logged on error if you use Driver.Options.General.PostImageOnError = true.
This feature is already implemented and will be available in the upcoming release of TestLeft.