Friday, December 18, 2009

Learn QTP Keyword

Sponsored Ad

QTP (QuickTest Professional) keyword view

In QTP (QuickTest Professional) they first of all record a check, then run a check & then analyze the results, but before jogging the check they can also enhance it with checkpoints & parameters.

First of all let's talk a tiny about keyword view in QTP and then they will talk about recording in QTP and then they will move on to other things. After recording all the operations, QuickTest displays them as steps in the Keyword View, and generates them in a script (in an Expert View).

In the keyword view there are 4 visible columns –

Item- The item on which they require to perform the step and it can be a check object, utility object, function call, or statement. This column shows a hierarchical icon-based tree. The highest level of the tree is actions, and all steps are contained within the relevant branch of the tree.

Operation- The operation (methods or functions) to be performed on the item chosen in the Item column, for example, Click or Select.

Value- The argument values for the selected operation, for example, the mouse button to use when clicking the picture.

Documentation- is a read-only such documentation that the move is not in an easy to understand sentence, for example, click "findFlights" image.

Assignment-The assignment of a value or variable for example, stored in cCols will store the return value of the current stage in a variable called cCols so you can use the value later in the check. This column is not visible by default.

Comment- Any textual information you require to add regarding the step. This column is also not visible by default.

Continue reading...

How to Use Checkpoint in QTP

Sponsored Ad

A checkpoint allows you to identify if the Web site or application is functioning properly controlled or not by comparing a current value of a particular property with the expected value for that property.

By default, the control point name of the object is called to verify that the checkpoint is being performed. They can alter the name of the checkpoint if necessary. After adding a checkpoint, QuickTest adds a checkpoint in the current row in the view of keywords and adds a checkpoint Time statement at the hearing of experts.

Types of Checkpoints:

  • Standard checkpoint.
  • Image checkpoints.
  • Bitmap Checkpoint.
  • Bitmap Checkpoint.
  • Accessibility Checkpoint.
  • Text Checkpoint.
  • Page Checkpoint.
  • XML checkpoints.

Standard checkpoints permit checking the object property values in the Website or application under check. Standard checkpoints evaluate (compare) the expected values of object properties captured during recording to the object's current values during a run session. For example they can check that a radio
button is activated after it is selected. Standard checkpoints are supported for all add-in environments.
Standard checkpoints can be used to perform checks on

Images,

Tables,
Other objects within your application or Web site.

Standard checkpoints can be created for all supported testing environments (as long as the appropriate add-in(s) are loaded).
Image checkpoints let you check the properties of an picture in the application or Web page. For example, you can check that a selected image's source file is correct or not. An picture checkpoint can also be created by inserting a standard checkpoint on an picture object. Picture checkpoints are supported for the Web add-in environment.
With Bitmap Checkpoint they can check an area of a Web page or application as a bitmap. While generating a check, they must specify the area to check by selecting an object. An entire object or any area within an object can be checked. Bitmap checkpoints are supported for all add-in environments.
By adding table checkpoints to the check, they can check the content of tables displayed in the application. For example, they can check that a specified value is displayed in a positive cell. Positive environments also support checking the properties of the table object. For example, a check that a table has the expected number of rows & columns. A table checkpoint can also be created by inserting a standard checkpoint on a table object.
Accessibility Checkpoint recognizes areas of your Web-site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines. For example, check if the images on a Web page include ALT properties, necessary by the W3C Web Content Accessibility Guidelines.
Accessibility checkpoints are supported for the Web add-in environment        
Checkpoint control page features a Web page. For example, you can check the time a web page takes to load or if a Web page contains broken links. A page checkpoint can also be created by inserting a standard checkpoint on the page object. Page checkpoints are supported for the Web add-in environment.
QuickTest can check that a string is displayed in the appropriate place in an application or a Web page with text Checkpoint. The text checkpoints are compatible with the Web add-in environment, and some Web-based add-in environments.
The contents of a database to access your application may be verified by the Checkpoint database. The checkpoint database is compatible with all the add-in settings
By adding XML checkpoints for verification, you can check the contents of individual files or XML data documents that are part of the Web application. Checkpoint XML option is compatible with all the add-in settings.

Continue reading...

Work VBScript in QTP

Sponsored Ad

VBScript (short for Visual Basic Scripting Edition) is a scripting language interpreted by Live Microsoft Windows Script Host.

VBScript has lots of powerful functions & provides excellent support for variables, information types, & error handling.

Two engines VBScript-Vbscript.dll can interpret, it is invoked by asp.dll is used in the web environment and Wscript.exe & Cscript.exe in Windows graphical environment using Windows Script Host (WSH, VBScript often used WSH to automate systems management tasks. WSH is the process module that converts a VBScript file in a Windows executable file). Wscript.exe is used to display output and obtain an entry in the Windows graphical format, such as dialog and input boxes. Cscript.exe is used in a command line environment. When VBScript source code is contained in separate files with the extension. Vbs

Continue reading...

Website Updates