Automated Testing Tool QTP

  • Upload
    vapaps

  • View
    212

  • Download
    0

Embed Size (px)

Citation preview

  • 8/4/2019 Automated Testing Tool QTP

    1/2

    Automated testing tool QTP (Quick Test Professional)

    Automated testing is performed by using automation tool which is able to playback pre-recorded

    scripts and predefined actions to compare the results to the expected output to report pass or fail.

    Once automated tests are created they can be used to retest the application again.

    What is QTP?

    QTP is an automated functional Graphical User Interface testing tool that allows the automation

    of user events on an application. It uses VB Scripting language to specify the test procedure, and

    to direct the objects and controls of the application. It works by identifying the objects in the

    application and performing the desired operations on them, it can also be used to capture object

    properties like name or Text ID etc. Framework of QTP is designed mainly for Windows and

    Web-based applications. QTP is primarily used for regression testing

    Few distinct advantages QTP offers over other Testing tools.

    QTP uses VB scripting language which is more user friendly and easy to understand. Better Support for VB, Java based applications due to inbuilt add-ins. Able to split a single test into various actions for making debugging easier and better

    maintainability.

    Enhancement of existing QTP scripts without the application being available; by usingthe Active Screen.

    Ability to set up Property Recognition Order and Prioritization using ObjectIdentification menu.

    Working with Object Repository in terms of Object Repository Comparison, ExportingLocal objects etc. in advance manner.

    Easy integration of external function files in terms of creating Libraries.

  • 8/4/2019 Automated Testing Tool QTP

    2/2

    Basic settings to be done in QTP before recording test scripts

    1. Open a blank QTP script with appropriate Add-ins.2. Navigate to Automation->Record and Run settings3. Under Web tab Select the First radio button which states Record and run test on any open

    browser

    4. Click on Window Applications tab and select the First Radio button which states Recordand run test on any open Windows-based application

    5. Click on Apply button and then click on OK button6. Navigate to File->Settings7. Select Run on left side window8. Under Data Table iterations select the First radio button which states Run one iteration

    only

    9. Enter 60 in Object synchronization timeout field10.Selectboth the check boxes which states Disable Smart Identification during the run

    session and Save image of desktop when error occurs

    11.Click on Apply button and then click on OK button

    What is keyword view and Expert view in QTP?

    Keyword View: In keyword view actions which are performed by the user are shown in treeformat along with the input data. Window and object details are also shown.

    Expert View: In Expert View script which is automatically generated by QTP in VBScript

    language during recording is displayed. Any changes made in the Expert View are automatically

    synchronized with the Keyword View.

    In our next blog we will discuss about the three types of recordings (Normal, Analog and Low-

    Level) and also the different types of checkpoints used in QTP