Working in the Expert View (Preview). USINGQTP65-STUDENT-01A. Lesson Objectives. In this lesson, you will: Translate the Tree View into the script form of the test Identify QuickTest functions from VBScript operations and functions
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Expert View (Preview)
In this lesson, you will:
Browser("Welcome: Mercury").Page("Welcome: Mercury").WebEdit(“userName").Set "jojo"Test Steps in the Expert View
Browser object .
Page object .
WebEdit object .
The edit fieldis contained in the page that is inside the browser.
An action performed on an objectThe Expert View Object Model
An object can set a property or perform a function.
Dialog("Login").WinEdit("Agent Name:").Set "jojo"Dialog("Login").WinEdit("Password:").SetSecure "3e149bbfd87db5058f903d"Dialog("Login").WinButton("OK").ClickWindow("Flight Reservation").Close
The object used to send information to the Test Results
Instructs QuickTest to pause between these two steps (in seconds)
Reporter.ReportEvent micGeneral, "Calculated Date","The date calculated was: "&NewDateImportant Utility Functions
Add VBScript to the test to perform the following actions:
What do I need to test?
What are the objects I need to investigate?
What QuickTest methods or properties can I use to handle the objects (import data, iterate the test, report the results)?
What programming conventions will best meet the requirement (loop, a conditional statement, a counter)?
What variables do I need to define?
Write the code to meet test requirements.
Adhere to VBScript syntax and programming conventions.
Use comments to add documentation in the script.
Use the online QuickTest and VBScript references to help you with functions and syntax.QuickTest for Scripting Process