In the previous chapter, we have seen which QTP features are required to create scripts. To design a framework and its components we need to design reusable code blocks, apart from QTP features. The key features of code blocks are as follows:
Manual checkpoint: This is a reusable function that checks whether the property is matching as expected at runtime
Manual synchronization: This is a reusable function that waits up to a specified time for the property to change
Descriptive programming: This provides the object identification property in test scripts to create the object description or creates the description itself
Regular expression: This is a text string for matching a pattern and allows us to define objects that follow the pattern
Error handling with Err object and Exit statements: Also known as exception handling, it guides us on how to come out of exceptional events and gracefully exit these conditions
Functions, subroutines...