Thursday, 12 May 2011

Free QTP E Books worth 10$

If you are interested to download free QTP Interview Questions and Study Material of QTP , Open the link provided below:


http://sharecash.org/download.php?file=1972715

http://sharecash.org/download.php?file=1972706


If you are interested to get ebook of "QTP Complete" free ,

Refer this site i.e. http://testingzeal.blogspot.com  to atleast 20 friends and send me the proof to my email address given below:
anujbatta2011@gmail.com

and copy worth 10$ "QTP Complete"  will be mailed to you after getting proof at my email address.

Note:Email Address you should be valid one.

Friday, 22 April 2011

Checkpoints in QTP

A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property.

TYPES OF CHECKPOINTS

  1. Standard Checkpoint
  2. Bitmap checkpoint
  3. Text checkpoint
  4. Text Area checkpoint
  5. Database checkpoint
  6. XML Checkpoint
 TYPES AND THEIR USE

1. STANDARD CHECKPOINT : Checks the property value of the object in an application or  Webpage. It checks buttons,Radiobuttons,Comboboxes etc.

2. BITMAP CHECKPOINT : Checks the value of an image in the application.

3. TEXT CHECKPOINT : Checks whether the text string is displayed in the appropriate place in your application or on a Web page.

4. DATABASE CHECKPOINT : Checks the contents of a database accessed by the application.

5. XML CHECKPOINT : Checks the data content of XML documents in the application.



WHEN TO USE CHECKPOINTS 


  1. Before creating checkpoints on web objects we have to select web-test option in ADD-IN Manager.
  2. If the objects developed in HTML we can use Standard Check point.
  3. If the Objects developed in XML we can use XML Check point.
HOW TO ADD CHECKPOINTS








 














Synchronization in QTP

WHAT IS SYNCHRONIZATION ?
    Synchronization refers to adding a step in the script that instructs Quick Test to wait for a particular object before proceeding to the next step during playback.
   
When do you need SYNCHRONIZATION ?
       When you observe that the application takes a longer time to process information sent or respond to a client request, add a synchronization step while recording. For example:
    - A progress bar to reach 100%.
    - A button to become enabled.
    - A window or pop-up message to open.

HOW TO ADD SYNCHRONIZATION

  1. Synchronization can be added ONLY during recording.
  2. Identify the object to be synchronized.
  3. Navigate to the window where the object is located.
  4. Locate the step in the test that corresponds to the object.
  5. Start recording and add the synchronization point. 
TWO WAYS TO SET SYNCHRONIZATION

1. Global synchronization value for all Objects.  
Instructs Quick Test to wait for all the objects for a specific amount of time.

 2. Synchronization of a specific Object.
 Instructs Quick Test to wait for a specific object only.


GLOBAL SYNCHRONIZATION VALUE FOR ALL OBJECTS

















Menu -> Test-> Settings-> Run

For every object in the test, Quick Test can wait a maximum number of milliseconds specified in the settings.

SYNCHRONIZATION OF SPECIFIC OBJECT




























Menu -> Insert -> Step -> Synchronization Point
Quick Test shall pause the test until the object property achieves the value specified here (or until the specific timeout amount is exceeded).
Quick Test uses one of the object’s properties as the waiting criteria. E.g. ‘Text’ property for window, ‘Label’ property for buttons etc.

   


Object Spy & Object Identification

  • Object Spy can be used to view the properties and values of an object in any open application.
  • Click the pointing hand to select the object in the application. 
  • The object’s properties (Test object properties and Run-Time object properties) and methods can be identified. The object’s hierarchy tree is also displayed.
  • To perform other events such as mouse clicks or window focus hold the CTRL key.





















OBJECT IDENTIFICATION









Tuesday, 19 April 2011

How Quick Test works with Objects?

What are Object Properties?
A set of characteristics that defines an object’s appearance, values, state and identity in an application.
QTP captures these object properties during recording.

Logical Name – Logical name is a value QuickTest usually takes from one of the object properties (like TEXT) to refer to the object in the recorded script.

Object Repository


What is Object Repository?

Object Repository is a location within the test structure where QuickTest stores object information captured during recording.

The Object Repository can be used to:
  • Rename logical names for readability.
  • Add a new object in the repository.
  • Configure the object properties used to identify an object.

Screenshot of Object Repository



















  • The Object Repository can be Per Action or Shared.
  • The shared repository can be used by multiple actions of the same test or by actions from different tests. Test object properties are prone to frequent updation.
  • Per Action object repository is used by one or very few tests.Test object properties are modified less frequently.



Viewing the Test Results


Test results can be stored in their own location (for documentation) or in a temporary location that is overwritten each time the test is run (debugging).   


Running a Session

  1. The Run option can be used to run the test from start to end.
  2. The Run from Step option in the Test menu is used to run the test from a selected step to the end of the current action, if running from the Expert View, or to the end of the test , if running from the Keyword View. Thus it enables us to check a specific part of the application or to confirm that a certain part of the test runs correctly.
  3. The Update Run option in the Test menu is used to update the Active screens, Checkpoints and the test object descriptions.