QTP is a functional testing tool and product of HP. It contains several features for automating the testing. It is divided into five parts- Test pane, Active screen, Data table, Debug viewer pane, Tool option. Add-in manager is special feature in QTP. Vbscript, Active X, Web are the default add-ins. There are 3 types of recording modes - Normal recording, Analog recording and Low level recording. Normal recording mode records the objects in your application and the operations performed on them. This is the default recording mode. It only recognize the objects in application not their location of object on the screen. Analog recording mode is used to record the exact mouse and keyboard operations. You can record in Analog Recording mode relative to the screen or relative to a specific window.
[...] Call to copy of action: It is used make modification in the called action. But the modifications affect only in copy of action not in original action. Call to existing action: It also used to make modification in the called action. But the modifications affects in original action. Action template: Action template used to add default comment for all actions in the test. For example you can add the author name and version no of the application in all the action. [...]
[...] Matching Any Single Character in a List Square brackets used for matching any single character within a list of characters. For example, if you want to matches the year like you can use Matching Any Single Character Not in a List The caret is used as the first character inside the square brackets to matches any character except for the specified letters in the brackets. For example, matches any character except y and z. Matching Any Single Character within a Range To match a single character within a range, you can use square brackets with the hyphen character. [...]
[...] Static programming: In static programming you can set the property and its value as string arguments. Syntax: objectname (“propertyname: =property propertyname: =property value” ) Dynamic programming: In dynamic programming you can create description for object. Syntax: dim descriptionname Set descriptionname=description.create descriptionname(“propertyname”).value=”propertyvalue” example: dim ex_name set ex_name=description.create Some useful shortcuts: Creates a new test( Ctrl+n Creates a new function library( Shift+Alt+n Opens an existing test( Ctrl+o Opens an existing function library( Shift+Alt+o Saves the active document( Ctrl+s Changes the name of an action( Shift+F2 Comments out the current row, or selected rows( Ctrl+m [...]
[...] Types: Standard Checkpoint: Standard checkpoint is used to verify the property value of an object. It supported for all add-in environments. For example, you can check the option buttons are enabled or not. Image Checkpoint: Image checkpoint verify the value of an image in the application. It supported for the Web add-in environment. For example, you can check the logo image of an application. Bitmap Checkpoint: Bitmap checkpoint used to verify the maps in the applications. Bitmap checkpoints are supported for all add-in environments. [...]
[...] Page Checkpoint: Page checkpoints verify the characteristics of a Web page. For example, we can check broken links, time taken to load the page by using page checkpoint. It supported for the Web add-in environment. Page checkpoint can be created by inserting standard check point on the page. Database Checkpoint: Database checkpoint verify the contents of a database which is used by the application. It supported for all add-in environments. XML Checkpoint: XML checkpoints verify the data content of XML files of application. [...]
Online readingwith our online reader
Content validatedby our reading committee