Wednesday, 23 January 2013

QTP Other Topics



This section provides QTP Related articles and other information like, challenges in Test Automation using QTP, Migrating Test scripts from old version to New version, QTP trends, enhancements, New release information, Browser compatibility issues etc..
*************************************************************

         Overview
----------------------------------------------------------------
a) Disadvantages of Manual Testing
    1) Huge Amount of Human Resources as well as Environment (Test lab)

    2) Time taking process

    3) Less Accuracy

    4) Tideness


b) Advantages of Test Automation

    1) Fast
    2) Reliable
    3) Accurated
    4) Reusable
    5) Repeatable
    6) Comprehensive


c) Draback of Test Automation

    1) Expensive
    2) Technical expertise
    3) 100% Automation not Posible


d) Types of Test Tool

Business cla        Technical cla
--------------------------------------
Vendor Tools        Functional & Regression Test tools
Opensource        Performance/Load/stress Test tools
In-House        Test Management Tools
            Defect Management Tools
            Security
            Unit Test tools Etc...
------------------------------------------------------------------------

            I) Basic Features of QTP
-------------------------------------------------------------------------
    a) QTP Supporting Environments
        1) UI (GUI/Windows and Web)
        2) Only Windows (Clien side and Server side)
    b) Version History
        QTP derived from Astra QuickTest(1.0....5.0)

            5.6    2002 (Nov)
            6.5    2003
            8.0    2004
            8.2    2005
            9.0, 9.1 2006
            9.2    2007
            9.5    2008--------HP
            10.0    2009 (Jan)


    c) QTP License(Seat/Node Locked and Concurent/Float)
    c) QTP IDE
        1) QTP Features
            Ex: Recording, Checkpoints, Object Repository etc...
        2) Integrated Tools (HP)
            Ex: Password Encoder, Test Batch Runner, Test Result Dletion Tool etc..
        3) Integrated Tools (Others)
            Ex: Spread sheet, VB Script Engine, SQL Engine, MS Script Debugger

    d) Key elements of QTP
        1) Test Pane
        2) Active Screen
        3) Data Table
        4) Debug Viewer
        5) Information Pane
        6) Missing Resources
        7) QTP Commands

---------------------------------------------------------------------------
                II) QTP Test Process
---------------------------------------------------------------------------

Manual Test Process (STLC)        Vs         QTP Test Process
-----------------------------------------------------------------
I) Planning                    I) Planning
    a) Analyzing Requirements            a) Analyzing the AUT
    b) Test Strategy Implentation            b) selecting/Creating Test case for Automation
    c) Test estimations                c) Test Estimations & Approvals
    d) team formation                d) Automation framework Implementation
    e) Risk Analysys                e) QTP Tool Settings Configuration
    f) Configuration management
    g) Defining Test Environment
    h) Test Plan Documentation
  
--------------------------------------------------------------------------------


II) Test Design                    IIA) Creating the Basic Tests

    a) Understanding & Analyzing Reqs        a) Repository based Test creation
    b) Generating Test Scenarios                1) Recording (Local Repository)
    c) Test case Documentation                2) Keyword driven methodology (Shared Repository)
                            b) Descriptive Programming
                                1) Static Programming
                                2) Descriptive Programming
  
                        IIB) Enhancing Tests
                            a) Adding Comments
                            b) Inserting Checkpoints
                            c) Inserting Output values
                            d) Inserting Transaction points
                            e) Generating steps thru Step Generator
                            f) Inserting Flow Control Statements
                            g) Synchronization
                            h) Parameterization
                            i) Calling Functions / Actions
                            j) Using Regular expressions
                            k) Using Environment Variables
                            l) Using Automation Objects (using Object Models)
                          
----------------------------------------------------------------------------------------------------------
III) Test Execution
-------------------                IIIA) Debugging Tests (Optional)
a) Forming Test Batches/suites                a) Step by step execution
b) Test Environment setup                b) Watching Variables
c) Test Execution                    c) Locating & Isolating Errors
d) Analyzing Test Results
d) Defect Reporting                       
e) Defect Tracking                III B) Running Tests              
f) Re & Regression Testing                a) Single Test Run
g) Test status Reporing                    b) Batch Testing
h) Test Logs                         c) Executing Tests thru Framework
i) Final Regression                    d) Scheduled execution
                            e) Analyzing Results
                            f) Result Reporing
                            g) Defect Reporing
                            h) Regression Testing
-------------------------------------------------------------------------------------------
IV) Test Closure                IV) Test Closure
-----------------
a) evaluating Exit Criteria                a) Sending Test scripts & Resources to Customer
b) Collecting all facts from Test Activities        b) Maintaning Tests & Resouce files
c) sending Test Delivarables to Customer        c) Improvement Suggessions
d) Improvement Suggessions for QA Process
                      
---------------------------------------------------------------------------------------------                          
            III) Creating Tests / Test Scripts

------------------------------------------------------------------------------------------

1) Repository based Test Design
    a) Recording (Local repository)
    b) Keyword Driven methodology (Shared repository)

2) Descriptive Programming
    a) Static Programming
    b) Dynamic programming
  

Recording Tests
----------------
    a) Recording Process
    b) Recording Modes
        i) Normal Recording
        ii) Analog Recording
        iii) Low Level Recording
    c) Running Process

Object Repository:
------------------
    a) Object and Types of Object

        i) Run-time Objects
        ii) Test Object Model
        iii) Utility Objects
        iv) Automation Objects



    b) Types of Object Repository
        i) Local Repository
        ii) Shared Repository
  
    c) Operations on Object Repository
      
        i) Adding Objects
        ii) Renaming Objects
        iii) Deleting Objects
        iv) Exporting Local Objects
        v) Merging Repositories
        vi) Associating Repositories to an Action
        vii) View Options
        viii) Exporting Objects to XML/Importing Objects from XML
        iX) Defining New Test Objects
        X) Spying Objects



    d) Object Identification Configuration
      
        i) Normal identification
            1) Mandatory properties
            2) Assistive properties
      
        ii) Smart Identification (Optional)
            1) Base Filter properties
            2) Optional Filter properties
      
        iii) Ordinal Identifier
            1) Location
            2) Index
            3) Creation Time (Only for web Application)

Keyword driven methodoly:
-------------------------

    a) Creating Shared Object Repositories
    b) Associating Repositories to an Action
    c) Creating tests manually
            i) Thru Expert View
            ii) Keyword View
            iii) generate steps thru Step Generator



Descriptive programming:
------------------------

    a) Static programming

        i) identifying Unique Properties for Objects
        ii) Creating Constants
        iii)Creating Library file for constants
        iv) associating Library files / loading Library files during run-time
        v) Using Constants, generating Tests

    b) Dynamic Programming
        i) Creating Collection Objects
        ii) Entering Properties Information into Collection Objects
        iii) Using Collection Objects, generating tests
  
    c) Handling Dynamic Objects using Regular expressions

    d) Handling Duplicate/Similar Objects using Index property

    


No comments:

Post a Comment