- Test Script Synchronization
- Placing a Generic Delay in Your Script
- Waiting for Test Objects to Come into Existence
- Timing How Long Something Takes to Execute in a Script
- Working with Test Objects
- Working with the Clipboard Object
- Viewing an Objects Properties
- Retrieving All Properties of a Test Object
- Retrieving the Value of a Single Property
- Programmatically Retrieving Data from an Object in My Application
- Determining a Test Objects Valid Test Data Type Arguments to getTestData()
- Using getTestData to Extract Data from a Text Field
- Using getTestData to Extract Data from a List
- Using getTestData() to Read Data in a Table
- Using getTestData() to Extract Data from a Tree
- Obtaining Data from a Test Object That the Rational Functional Tester Verification Point Wizard Does Not Capture
- Creating a Custom Verification Point
- Changing the Value of a Test Objects Property
- Evolving Custom Scripting into Reusable Methods
- Summary
Summary
This chapter provides you with the knowledge necessary to expand your skill set outside of the realm of record and playback test automation. You should now have the knowledge necessary to handle such tasks as synchronizing your script playback with any latency issues your application might face, acquiring data from the Windows Clipboard, manipulating data in test objects, and so on. Further, you should now possess the ability to turn your custom scripting into methods that can be reused across your project.
You should also note that this chapter provides some building blocks for more advanced code-oriented testing. The ability to create reusable methods is a commonplace task for many scripting activities you might find yourself performing in Rational Functional Tester. Further, you might find that creating custom verification points is more valuable, at times, than using the built-in ones. In any case, you should now have the level of comfort to move onto more advanced scripting tasks.