Understanding Your Test QTP

Understanding Your Test 

When you create a test, QuickTest creates a graphical representation of the steps you perform on your application. These steps are displayed in the Keyword View tab.
The following is a sample test of a login procedure to the Mercury Tours site, the sample Web site.

The table below provides an explanation of each step in the Keyword View.

Step
Description
Action1 is the action name.
The browser invokes the Welcome: Mercury Tours Web site.
Welcome: Mercury Tours is the name of the Web page.
userName is the name of the edit box. Set is the method performed on the edit box. tutorial is the value of the edit box.
password is the name of the edit box. SetSecure is an encryption method performed on the edit box. 4082986e39ea469e70dbf8c5a29429fe138c6efc is the encrypted value of the password.
Sign-In is the name of the image link. Click is the method performed on the image. 2, 2 are the x- and y-coordinates where the image was clicked.

In the Expert View, these same steps are displayed using a VBScript program based on the QuickTest object model.
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "tutorial"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure
"4082986e39ea469e70dbf8c5a29429fe138c6efc"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 2,2

0 comments:

Post a Comment