Documente Academic
Documente Profesional
Documente Cultură
Benefits
1. Preparing to record
Test Environment Test Conditions
Applicati on Layer3
Object Spy
It is used to view object properties and Methods Displays
Object hierarchy tree Run-time object methods or test object methods
Object Repository
Interface between QTP Script and the Application Locate Contains Logical Name and physical object in Description repository Find data-dependant
property
Recording Modes
1. Normal recording
Records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of Quick Tests test object model.
2. Analog Recording
Record the exact mouse and keyboard operations you perform in relation to either the screen or the application window.
3. Low-Level Recording
Record on any object in your application, whether or not Quick Test recognizes the specific object or the specific operation.
Enhancing Tests
1. Parameterizing Test
2. Regular Expressions
3. Creating Checkpoints 4. Creating Output Values 5. Dividing Tests into Multiple Actions
Parameterizing Tests
To run the scenario with multiple sets of data.
Demo..
Demo..
How to provide the data to the respective Parameter through Tree View
Demo..
How to provide the data to the respective Parameter through Expert View
Regular Expressions
Regular expressions enable Quick Test to identify Objects and text strings with varying values. User has to identify the data projected to be change, like dates, so to accepts any dates, user can use regular expression. Example : Actual Date format : 05/19/2004 (mm/dd/yyyy)
Demo
Demo..
Click icon
Checkpoints
Used to check the current behavior of the application with the expected behavior. Text /Text Area Checkpoint Standard Checkpoint Page checkpoint Database Checkpoint Bitmap Checkpoint XML Checkpoint
Table Checkpoint
Checks information in a table
Page checkpoint
Checks the characteristics of a page
Check how long a Web page takes to load or if a Web page contains broken links.
Page checkpoint
Database Checkpoint
Used to check current Database data with the Expected Database data. Check that the value in a database query is correct.
Bitmap Checkpoint
Checks an area of a Web page or application after capturing it as a bitmap Check that a Web page (or any portion of it) is displayed as expected. Demo.
Bitmap Checkpoint
XML Checkpoint
Checks the data content of XML documents XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page.
Demo.
XML Checkpoint
Creating Output Values
This is just reverse to the Parameterization, In this case QTP takes the data from the application and displays the same in the Data Table.
XMLFile("Poem.xsl").Check CheckPoint("Poem.xsl_2")