Sunday 22 November 2015

HP UFT/QTP ReplayType importance

For few of the objects, though the objects reference available and able to recognize in applications and perform script execution without any issues, it doesn't perform expected action in the application.

Example: There is button in the application
Object is available in Object Repository and we are able to highlight it
During script execution, it executes without any issue but on clicking button it is able to move to next screen(in fact it is not clicking on button).

In order to handle such issues, UFT has an option use ReplayType which will change the execution with mouse/keyboard control(this means similar to manually taking control with hand)

Below line of the script can be used for this.

Setting.WebPackage("ReplayType") = 2

If you want to change it again then below line of script can be used.

Setting.WebPackage("ReplayType") = 1

2 comments: