Standard Checkpoint:
Standard checkpoint enables users to check object property values.
Three ways to insert standard checkpoints:
a. In expert view,
b. In keyword view,
c. In Active screen.
Steps to follow for Inserting standard checkpoint:
QTP should be in recording mode -->Cursor should be placed in desired location -->Insert Menu -->check point -->Standard checkpoint -->Show the object -->click OK ->select property and enter expected results--> click OK--> Stop Recording.
Steps to follow for Editing standard checkpoint:
Identify Checkpoint statement and right click -->Select checkpoint properties option --> Modify the value -->click OK.
Steps to follow for Deleting standard checkpoint:
Identify Checkpoint statements and right click -->choose delete option.
Inserting Standard check points through active screen:
View -->Active Screen -->Cursor should be placed in desired location -->Mouse pointer is placed on active screen--> right click-->choose insert standard checkpoint option -->click OK -->enter expected result -->click OK
Example--
total=DataTable.GetSheet("Action1").GetRowCount
msgbox total
For i= 1 to total
DataTable.SetCurrentRow(i)
a=inputbox("Enter value")
Browser("Sign in to Yahoo").Page("Sign in to Yahoo").WebEdit("login").Set a
Browser("Sign in to Yahoo").Page("Sign in to Yahoo").WebEdit("login").Check CheckPoint("login")
Next
Standard checkpoint enables users to check object property values.
Three ways to insert standard checkpoints:
a. In expert view,
b. In keyword view,
c. In Active screen.
Steps to follow for Inserting standard checkpoint:
QTP should be in recording mode -->Cursor should be placed in desired location -->Insert Menu -->check point -->Standard checkpoint -->Show the object -->click OK ->select property and enter expected results--> click OK--> Stop Recording.
Steps to follow for Editing standard checkpoint:
Identify Checkpoint statement and right click -->Select checkpoint properties option --> Modify the value -->click OK.
Steps to follow for Deleting standard checkpoint:
Identify Checkpoint statements and right click -->choose delete option.
Inserting Standard check points through active screen:
View -->Active Screen -->Cursor should be placed in desired location -->Mouse pointer is placed on active screen--> right click-->choose insert standard checkpoint option -->click OK -->enter expected result -->click OK
Example--
total=DataTable.GetSheet("Action1").GetRowCount
msgbox total
For i= 1 to total
DataTable.SetCurrentRow(i)
a=inputbox("Enter value")
Browser("Sign in to Yahoo").Page("Sign in to Yahoo").WebEdit("login").Set a
Browser("Sign in to Yahoo").Page("Sign in to Yahoo").WebEdit("login").Check CheckPoint("login")
Next
No comments:
Post a Comment