Monday, November 9, 2015

How QTP and TestComplete Works

Suppose, we are given an application to automate. Let's start















1. Launch QTP.

2. Open Object Repository to add object (Test Time Object Property). You will see 'Agent Name" selected(Left) is a object of a WinEdit class. You can also see the "attached text" test time object property name and it's value "Agent Name:".




3. Dialog('Login").WinEdit("Agent Name:").Set "mercury"

This line says 'Enter "mercury" in "Agent Name:" exists on "Login" Dialog (Screen).

At run time QTP will search for object of WinEdit class whose run time object property is "attached text" and  value is "Agent Name:". If it finds successfully, result is 'Passed" else 'Failed".


No comments:

Post a Comment