SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Functional Testing with
  HP QuickTest Professional


           Company: PLANET INFOTECH




08/19/12       CREATED BY VIKASH JOSHI   1
QuickTest Pro Automation
               Benefits




08/19/12                          2
Functional Testing Overview
• Definition
• “Certify the application from a business perspective”
• Process
  • Validate application functions against the functional
  specification, i.e., functions yield the expected
  results?
  • Report and track defects
  • Measure test coverage and track application quality


08/19/12                                                    3
Functional Testing Elements
          (and Resources)




08/19/12                          4
Functional Testing Elements
        (and Resources)-2




08/19/12                          5
Test Development




08/19/12                      6
What is QTP
• QTP stands QuickTest Professional
• It is an automated testing tool provided by HP/Mercury
  Interactive
• QTP integrates with other Mercury testing solutions
  including:
   – TestDirector/Quality Center
   – WinRunner
   – LoadRunner
• Utilizes an add-in architecture for compactness and
  extensibility

08/19/12                                                   7
Types of Testing
•   Manual
     – Usage of steps defined within test cases to manually test the
       application to ensure that it functions properly
•   Automated
     – Automation of the manual testing process to all unattended
       execution and ensure repeatability




08/19/12                                                               8
Benefits of Automated Testing
• Speed
   – Automated tests are fast and can execute at a speed
     faster than a person can click
• Reliable
   – The tests can perform the exact same steps every time
     without concern about human error
• Repeatable
   – You run the same test against multiple builds/versions
     of an application
• Reusable
   – Can be reused as a sub-part of different tests

08/19/12                                                      9
What Should Be Automated
• Good candidates
   – Tests executed for each build
   – Business critical tests
   – Tests that are difficult/tedious to perform manually

• Bad candidates
   – Tests without predictable results
   – Test that require variable input/responses from the
     tester
   – Tests that perform operations in multiple environments

08/19/12                                                    10
QTP Supported
           Environment/Applications
•   Windows
     – C++, Visual Basic, Java, .NET
•   Web
     – Web Applications, Web services, Flash
•   Other technologies
     – SAP, Siebel, Oracle, Peoplesoft, ActiveX




08/19/12                                          11
Add-in Architecture
•   Enables QTP to provide support for multiple technologies.

•   Add-ins are software that need to be installed on a system that has
    QTP. It then becomes integrated with the QTP environment.

•   QTP is sold with the ability to understand a few technologies, add-ins
    provide QTP with the ability to understand additional technologies

•   Users are able to select the specific add-ins for the technologies they
    are testing thereby reducing the memory footprint of QTP




08/19/12                                                                      12
QTP Add-ins
•   When QTP is started, you should select only the add-ins for
    technologies that are used with your application.
•   Some of the available add-ins are
     – ActiveX - For testing software written using ActiveX (also known
        as COM) technology. This technology allows people to create
        objects in one language and use those objects within other
        languages/applications
     – Visual Basic - For applications written in the Visual Basic
        language
     – Web - For testing web applications written in any language. In
        web applications, we interact with the application though a web
        browser and so the web application can be written in any
        language.

08/19/12                                                              13
Testing Process
•   Create Tests
     – Record
     – Edit
         • Insert checkpoints
         • Insert synchronization points
         • Insert output values
         • Parameterize test
         • Include VBScript code
•   Debug test
•   Run tests




08/19/12                                   14
What is a QTP Test
•   It is called a test script but is actually a folder containing several files

•   Broken down into subparts known as 'Actions‘

•   Internally represented using the VBScript programming language




08/19/12                                                                           15
Actions
•   A test is broken into a series of ‘Actions’
     – Actions can be renamed to reflect what they do

     – Actions can be invoked multiple times within a test

     – Actions can be marked as reusable so they can be called from
       other tests
         • Only reusable actions can be called from other tests




08/19/12                                                              16
Overview QTP Tool
•   Menus

•   Toolbar
     – Provides easy access to items on the menus

•   Record & Run Settings

•   Test Settings

•   Tools




08/19/12                                            17
QTP Tool [Code Window]
• Provides a WYSIWYG(What You See Is What You Get)
• editor to use in writing your test script
   – Keyword view
      • Provides an icon-based representation of the code
        being written. This is often the easiest code view for
        non-programmers

     – Expert View
        • Provides a VBScript code based representation of
          the code being written. This is the most flexible
          code

08/19/12                                                      18
QTP Tool [Views]
•   Active Screen
     – Provides screenshots of all objects recorded and also supports
       object highlighting
•   Data Table
     – Shows the data file that can be used to configure the application
•   Debug Viewer
     – Provides tools to debug code and view the value of
       variable/expression during code execution




08/19/12                                                                   19
Create Object Repository
                   [STEP 1]
• Intro to Object Oriented Programming

     – Objects are a representation of every item found in an application
     – Objects are visual (e.g. Button, Textbox) and non-visual (e.g.
       Dictionary, Reporter) elements within an application. Each object
       has the following elements
        • Properties, Methods & Events
     – All objects must have a unique name and belong to a class.
     – Objects are referenced in code using dot notation
        objectName.Method()


08/19/12                                                                20
Objects
•   Properties
     – These are characteristics of the object e.g. the text
       on a button. QTP uses this to recognize the object

•   Methods
     – These are built in functionality of the object. The
       VBScript code that we write (or record) actually makes calls to the
       methods of an object e.g. Reporter.ReportEvent()
       Here ReportEvent is the method of the Reporter object

•   Events
     – These are what can be done to an object. This is used by
       programmers to determine what an object does in response to an
       action you perform. It is however unused in QTP.
08/19/12                                                                21
QTP Object Identification
                  Process
•   Object Identification
     – The tool determines what properties of objects are recorded
•   Object Spy
     – Allows users to view the property of an object without recording it
•   Object Repository
     – Holds information recorded about each object allowing the test to
       identify the object during execution




08/19/12                                                                22
Creating an Object Repository

• Per Action
     – An object repository is created for each action
     – This means that multiple object repositories can
       be created per test


• Shared
     – A single objected repository is used for
       multiple tests
08/19/12                                              23
CREATE TEST [STEP 2]
•   Record Steps
•   Edit
     – Insert synchronization points
     – Insert checkpoints
     – Insert output values
     – Parameterize values
     – Include VBScript code




08/19/12                               24
Record
• Read the outline of steps to perform
• Practice performing the steps to minimize error
• Choose record mode
   – Context Sensitive
   – Analog
   – Low level
• RECORD
• Stop, Save test, playback




08/19/12                                            25
Edit Test
•   Insert synchronization points
     – Used to slow down execution of a test script
•   Checkpoints
     – Used to check expected value of a step against the actual value at
        a specific point during execution
•   Insert output values
     – Used to retrieve values from the AUT
•   Insert Parameterization
     – Allows you to store data in the data table
•   Include VB Script code
     – Last option. Very powerful.




08/19/12                                                                26
Synchronization Point
•   Specific time
     – Uses the wait function to pause the test for a specific amount of
       time [in seconds]
•   Until an event occurs
     – Pauses until a specific property of an object has a specific value




08/19/12                                                                    27
Checkpoints
•   Standard
     – Checks multiple properties of a single object
•   Text
     – Checks part or all the text within an object
•   Text Area
     – Checks part or all the text within a text area object
•   Bitmap
     – Checks the visual layout of an entire object or a portion of the object
•   Database
     – Checks data in the database
•   Accessibility
     – Checks web content accessibility against W3C accessibility rules for the
       disabled
•   XML
     – Checks files using XML rules


08/19/12                                                                          28
Output values
•   Standard
     – Stores a single property of an object in the data table
•   Text
     – Stores part or all the text of an object in the data table
•   Text Area
     – Stores the content of a text area in the data table
•   Database
     – Retrieves content from a database [using a SQL query] and stores
        it in the data table
•   XML
     – Retrieves content from an XML file and store it in the data table


08/19/12                                                               29
Parameterize Data
• Allows your test to read data from the data table.
• The data table is an Excel spreadsheet file editable from
  using Excel or any other application that can edit a .xls
  document
• The DataTable is encapsulated in QTP in the DataTable
  object. This object contains a sheet for every action in the
  test as well as a globally accessible sheet known as the
  global sheet
• Each sheet in the DataTable contains several columns and
  rows.
• The columns can be renamed by double-clicking on the
  header of the column.

08/19/12                                                     30
VBScript Coding
• When the tools provided by QTP are not sufficient to test
  an application, VBScript coding can be used.

• VBScript was created as a web programming language by
  Microsoft and licensed by many companies for use in their
  tools.




08/19/12                                                      31
Recap
•   Checkpoints - check
•   Synchronization points - wait
•   Output values – retrieve information
•   Parameterization – configuration data
•   VBScript – adds programmable logic




08/19/12                                    32
Script Development with QTP




08/19/12                         33
Expected Result Checkpoints”




08/19/12                       34
QTP Demonstration




08/19/12                       35

Weitere ähnliche Inhalte

Andere mochten auch

Online id linbei
Online id linbeiOnline id linbei
Online id linbeilinnebei
 
Rac pray bd 20120804
Rac pray bd 20120804Rac pray bd 20120804
Rac pray bd 20120804hawkdown69
 
Approach to childhood rickets
Approach to childhood ricketsApproach to childhood rickets
Approach to childhood ricketsSingaram_Paed
 
Fuel Injector Cleaning with injectorrx.com
Fuel Injector Cleaning with injectorrx.comFuel Injector Cleaning with injectorrx.com
Fuel Injector Cleaning with injectorrx.comGeorgeDsantos
 
Weather: my report in earth science
Weather: my report in earth scienceWeather: my report in earth science
Weather: my report in earth scienceGlenda Mora
 
Rickettsial infections
Rickettsial infectionsRickettsial infections
Rickettsial infectionsSingaram_Paed
 
Pyrexia of unknown origin
Pyrexia of unknown originPyrexia of unknown origin
Pyrexia of unknown originSingaram_Paed
 
Approach to a child with failure to thrive
Approach to a child with failure to thriveApproach to a child with failure to thrive
Approach to a child with failure to thriveSingaram_Paed
 
Dengue with who guidelines
Dengue with who guidelinesDengue with who guidelines
Dengue with who guidelinesSingaram_Paed
 
3rd ed end of chapter answers
3rd ed end of chapter answers3rd ed end of chapter answers
3rd ed end of chapter answersdlee619
 

Andere mochten auch (14)

Online id linbei
Online id linbeiOnline id linbei
Online id linbei
 
Img 810120210
Img 810120210Img 810120210
Img 810120210
 
Pboard
PboardPboard
Pboard
 
Rac pray bd 20120804
Rac pray bd 20120804Rac pray bd 20120804
Rac pray bd 20120804
 
Approach to childhood rickets
Approach to childhood ricketsApproach to childhood rickets
Approach to childhood rickets
 
Fuel Injector Cleaning with injectorrx.com
Fuel Injector Cleaning with injectorrx.comFuel Injector Cleaning with injectorrx.com
Fuel Injector Cleaning with injectorrx.com
 
Weather: my report in earth science
Weather: my report in earth scienceWeather: my report in earth science
Weather: my report in earth science
 
Drama and theater
Drama and theaterDrama and theater
Drama and theater
 
Discharge plan
Discharge planDischarge plan
Discharge plan
 
Rickettsial infections
Rickettsial infectionsRickettsial infections
Rickettsial infections
 
Pyrexia of unknown origin
Pyrexia of unknown originPyrexia of unknown origin
Pyrexia of unknown origin
 
Approach to a child with failure to thrive
Approach to a child with failure to thriveApproach to a child with failure to thrive
Approach to a child with failure to thrive
 
Dengue with who guidelines
Dengue with who guidelinesDengue with who guidelines
Dengue with who guidelines
 
3rd ed end of chapter answers
3rd ed end of chapter answers3rd ed end of chapter answers
3rd ed end of chapter answers
 

Ähnlich wie Qtpppt1

Qtp training session I
Qtp training session IQtp training session I
Qtp training session IAisha Mazhar
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2Akash Tyagi
 
Zero to ten million daily users in four weeks: sustainable speed is king
Zero to ten million daily users in four weeks: sustainable speed is kingZero to ten million daily users in four weeks: sustainable speed is king
Zero to ten million daily users in four weeks: sustainable speed is kingplumbee
 
Practical Software Testing Tools
Practical Software Testing ToolsPractical Software Testing Tools
Practical Software Testing ToolsDr Ganesh Iyer
 
New trends in testing automation
New trends in testing automationNew trends in testing automation
New trends in testing automationEran Kinsbrunner
 
Win runner testing tool
Win runner testing toolWin runner testing tool
Win runner testing toolmansirajpara
 
Functional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsFunctional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsNenad Bozic
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework DevelopementGlasdon Falcao
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestionsyoummr
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools OverviewMurageppa-QA
 
RFT Simplified Scripting- Shinoj Z
RFT Simplified Scripting- Shinoj ZRFT Simplified Scripting- Shinoj Z
RFT Simplified Scripting- Shinoj ZRoopa Nadkarni
 
Modern Web-site Development Pipeline
Modern Web-site Development PipelineModern Web-site Development Pipeline
Modern Web-site Development PipelineGlobalLogic Ukraine
 
Change management in hybrid landscapes
Change management in hybrid landscapesChange management in hybrid landscapes
Change management in hybrid landscapesChris Kernaghan
 
Automation Tool Overview
Automation Tool OverviewAutomation Tool Overview
Automation Tool OverviewANKUR-BA
 

Ähnlich wie Qtpppt1 (20)

Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
 
Qtp training session I
Qtp training session IQtp training session I
Qtp training session I
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Zero to ten million daily users in four weeks: sustainable speed is king
Zero to ten million daily users in four weeks: sustainable speed is kingZero to ten million daily users in four weeks: sustainable speed is king
Zero to ten million daily users in four weeks: sustainable speed is king
 
Qtp - Introduction to synchronization
Qtp -  Introduction to synchronizationQtp -  Introduction to synchronization
Qtp - Introduction to synchronization
 
Practical Software Testing Tools
Practical Software Testing ToolsPractical Software Testing Tools
Practical Software Testing Tools
 
New trends in testing automation
New trends in testing automationNew trends in testing automation
New trends in testing automation
 
Win runner testing tool
Win runner testing toolWin runner testing tool
Win runner testing tool
 
Qtp
QtpQtp
Qtp
 
Functional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsFunctional Testing of RESTful Applications
Functional Testing of RESTful Applications
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools Overview
 
RFT Simplified Scripting- Shinoj Z
RFT Simplified Scripting- Shinoj ZRFT Simplified Scripting- Shinoj Z
RFT Simplified Scripting- Shinoj Z
 
Modern Web-site Development Pipeline
Modern Web-site Development PipelineModern Web-site Development Pipeline
Modern Web-site Development Pipeline
 
Change management in hybrid landscapes
Change management in hybrid landscapesChange management in hybrid landscapes
Change management in hybrid landscapes
 
Automation Tool Overview
Automation Tool OverviewAutomation Tool Overview
Automation Tool Overview
 

Kürzlich hochgeladen

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Qtpppt1

  • 1. Functional Testing with HP QuickTest Professional Company: PLANET INFOTECH 08/19/12 CREATED BY VIKASH JOSHI 1
  • 2. QuickTest Pro Automation Benefits 08/19/12 2
  • 3. Functional Testing Overview • Definition • “Certify the application from a business perspective” • Process • Validate application functions against the functional specification, i.e., functions yield the expected results? • Report and track defects • Measure test coverage and track application quality 08/19/12 3
  • 4. Functional Testing Elements (and Resources) 08/19/12 4
  • 5. Functional Testing Elements (and Resources)-2 08/19/12 5
  • 7. What is QTP • QTP stands QuickTest Professional • It is an automated testing tool provided by HP/Mercury Interactive • QTP integrates with other Mercury testing solutions including: – TestDirector/Quality Center – WinRunner – LoadRunner • Utilizes an add-in architecture for compactness and extensibility 08/19/12 7
  • 8. Types of Testing • Manual – Usage of steps defined within test cases to manually test the application to ensure that it functions properly • Automated – Automation of the manual testing process to all unattended execution and ensure repeatability 08/19/12 8
  • 9. Benefits of Automated Testing • Speed – Automated tests are fast and can execute at a speed faster than a person can click • Reliable – The tests can perform the exact same steps every time without concern about human error • Repeatable – You run the same test against multiple builds/versions of an application • Reusable – Can be reused as a sub-part of different tests 08/19/12 9
  • 10. What Should Be Automated • Good candidates – Tests executed for each build – Business critical tests – Tests that are difficult/tedious to perform manually • Bad candidates – Tests without predictable results – Test that require variable input/responses from the tester – Tests that perform operations in multiple environments 08/19/12 10
  • 11. QTP Supported Environment/Applications • Windows – C++, Visual Basic, Java, .NET • Web – Web Applications, Web services, Flash • Other technologies – SAP, Siebel, Oracle, Peoplesoft, ActiveX 08/19/12 11
  • 12. Add-in Architecture • Enables QTP to provide support for multiple technologies. • Add-ins are software that need to be installed on a system that has QTP. It then becomes integrated with the QTP environment. • QTP is sold with the ability to understand a few technologies, add-ins provide QTP with the ability to understand additional technologies • Users are able to select the specific add-ins for the technologies they are testing thereby reducing the memory footprint of QTP 08/19/12 12
  • 13. QTP Add-ins • When QTP is started, you should select only the add-ins for technologies that are used with your application. • Some of the available add-ins are – ActiveX - For testing software written using ActiveX (also known as COM) technology. This technology allows people to create objects in one language and use those objects within other languages/applications – Visual Basic - For applications written in the Visual Basic language – Web - For testing web applications written in any language. In web applications, we interact with the application though a web browser and so the web application can be written in any language. 08/19/12 13
  • 14. Testing Process • Create Tests – Record – Edit • Insert checkpoints • Insert synchronization points • Insert output values • Parameterize test • Include VBScript code • Debug test • Run tests 08/19/12 14
  • 15. What is a QTP Test • It is called a test script but is actually a folder containing several files • Broken down into subparts known as 'Actions‘ • Internally represented using the VBScript programming language 08/19/12 15
  • 16. Actions • A test is broken into a series of ‘Actions’ – Actions can be renamed to reflect what they do – Actions can be invoked multiple times within a test – Actions can be marked as reusable so they can be called from other tests • Only reusable actions can be called from other tests 08/19/12 16
  • 17. Overview QTP Tool • Menus • Toolbar – Provides easy access to items on the menus • Record & Run Settings • Test Settings • Tools 08/19/12 17
  • 18. QTP Tool [Code Window] • Provides a WYSIWYG(What You See Is What You Get) • editor to use in writing your test script – Keyword view • Provides an icon-based representation of the code being written. This is often the easiest code view for non-programmers – Expert View • Provides a VBScript code based representation of the code being written. This is the most flexible code 08/19/12 18
  • 19. QTP Tool [Views] • Active Screen – Provides screenshots of all objects recorded and also supports object highlighting • Data Table – Shows the data file that can be used to configure the application • Debug Viewer – Provides tools to debug code and view the value of variable/expression during code execution 08/19/12 19
  • 20. Create Object Repository [STEP 1] • Intro to Object Oriented Programming – Objects are a representation of every item found in an application – Objects are visual (e.g. Button, Textbox) and non-visual (e.g. Dictionary, Reporter) elements within an application. Each object has the following elements • Properties, Methods & Events – All objects must have a unique name and belong to a class. – Objects are referenced in code using dot notation objectName.Method() 08/19/12 20
  • 21. Objects • Properties – These are characteristics of the object e.g. the text on a button. QTP uses this to recognize the object • Methods – These are built in functionality of the object. The VBScript code that we write (or record) actually makes calls to the methods of an object e.g. Reporter.ReportEvent() Here ReportEvent is the method of the Reporter object • Events – These are what can be done to an object. This is used by programmers to determine what an object does in response to an action you perform. It is however unused in QTP. 08/19/12 21
  • 22. QTP Object Identification Process • Object Identification – The tool determines what properties of objects are recorded • Object Spy – Allows users to view the property of an object without recording it • Object Repository – Holds information recorded about each object allowing the test to identify the object during execution 08/19/12 22
  • 23. Creating an Object Repository • Per Action – An object repository is created for each action – This means that multiple object repositories can be created per test • Shared – A single objected repository is used for multiple tests 08/19/12 23
  • 24. CREATE TEST [STEP 2] • Record Steps • Edit – Insert synchronization points – Insert checkpoints – Insert output values – Parameterize values – Include VBScript code 08/19/12 24
  • 25. Record • Read the outline of steps to perform • Practice performing the steps to minimize error • Choose record mode – Context Sensitive – Analog – Low level • RECORD • Stop, Save test, playback 08/19/12 25
  • 26. Edit Test • Insert synchronization points – Used to slow down execution of a test script • Checkpoints – Used to check expected value of a step against the actual value at a specific point during execution • Insert output values – Used to retrieve values from the AUT • Insert Parameterization – Allows you to store data in the data table • Include VB Script code – Last option. Very powerful. 08/19/12 26
  • 27. Synchronization Point • Specific time – Uses the wait function to pause the test for a specific amount of time [in seconds] • Until an event occurs – Pauses until a specific property of an object has a specific value 08/19/12 27
  • 28. Checkpoints • Standard – Checks multiple properties of a single object • Text – Checks part or all the text within an object • Text Area – Checks part or all the text within a text area object • Bitmap – Checks the visual layout of an entire object or a portion of the object • Database – Checks data in the database • Accessibility – Checks web content accessibility against W3C accessibility rules for the disabled • XML – Checks files using XML rules 08/19/12 28
  • 29. Output values • Standard – Stores a single property of an object in the data table • Text – Stores part or all the text of an object in the data table • Text Area – Stores the content of a text area in the data table • Database – Retrieves content from a database [using a SQL query] and stores it in the data table • XML – Retrieves content from an XML file and store it in the data table 08/19/12 29
  • 30. Parameterize Data • Allows your test to read data from the data table. • The data table is an Excel spreadsheet file editable from using Excel or any other application that can edit a .xls document • The DataTable is encapsulated in QTP in the DataTable object. This object contains a sheet for every action in the test as well as a globally accessible sheet known as the global sheet • Each sheet in the DataTable contains several columns and rows. • The columns can be renamed by double-clicking on the header of the column. 08/19/12 30
  • 31. VBScript Coding • When the tools provided by QTP are not sufficient to test an application, VBScript coding can be used. • VBScript was created as a web programming language by Microsoft and licensed by many companies for use in their tools. 08/19/12 31
  • 32. Recap • Checkpoints - check • Synchronization points - wait • Output values – retrieve information • Parameterization – configuration data • VBScript – adds programmable logic 08/19/12 32
  • 33. Script Development with QTP 08/19/12 33