how to RECORD A SESSION in QTP?
Quick Test records the operations we perform, displays them as steps in theKeyword View, and generates scripts in the expert view. Each test in Quick testincludes a single action. Multiple actions can be included when needed.
• Before recording a test see to that all other browsers are closed. Choose howto open the application. This can be done as follows:
Go to Test->Record & Run Settings->web.
If the page is already open select the ‘Record and run on any open web browser’ option. If you want to open the page automatically select the ‘Open the following browser when record and run session begins’ option and set the Url of the page you want to record.
• Click the Record button or choose Test > Record.
• Navigate through the application or Web site. QuickTest records each step performed and displays it in the Keyword View and Expert View.
• When you complete your recording, click the Stop button or choose Test > Stop.
• Click the Save button to save the test.
Example:
While recording the home page of Google the following code is
generated.
Browser("Google").Page("Google").WebEdit("Search").Set "QTP "
Browser("Google ").Page("Google").WebEdit("Search").Submit
Browser("Google").Page("GoogleSearch: QTP").Link("QTP").Click
Browser("Google ").Page("QTP").Sync
No comments:
Post a Comment
Note: only a member of this blog may post a comment.