SlideShare a Scribd company logo
Quick Test Professional


                                   By
1                  Rajat Gupta
    © Copyright GlobalLogic 2008
Agenda
     •     Introduction to Automation Testing
     •     QTP Testing Process
     •     Add-in Manager
     •     QTP Script Views
     •     Object Repository
     •     Checkpoints
     •     Creating Output values
     •     Actions
     •     Results
     •     Debugging Tests
     •     User Defined Functions
     •     Regular Expressions
     •     Other Items

2
    © Copyright GlobalLogic 2008
Introduction to Automation Testing
     •     What is Automation Testing ?
     •     Benefits




3
    © Copyright GlobalLogic 2008
QTP Testing Process
     Quick Test testing process consists of 7 main phases

     3. Preparing to record
             – Test Environment
             – Test Conditions
     4. Recording a session on your application
             – Navigate according to Test Conditions
     5. Enhancing your test
             – Adding logic and conditional statements
             – Parameterization
             – Inserting checkpoints
     6. Debugging your test
             – Check that it operates smoothly and without interruption.



4
    © Copyright GlobalLogic 2008
QTP Testing Process
     1. Run Test
             – Check the behavior of your application


     2. Analyzing the test results

          Reporting defects




5
    © Copyright GlobalLogic 2008
Add-in Manager
     •     Default Add-ins
            – ActiveX
            – Visual basic
            – Web

     •     Other Add-Ins
            – Siebel
            – Java
            – SAP
            – Oracle
            – .Net and many more


           QTP’s Add-in Manager facilitates the users to select the
           technology / environment from variety of environments suitable for
           the AUT (Application Under Test)
6
    © Copyright GlobalLogic 2008
QTP Window




7
    © Copyright GlobalLogic 2008
QTP – Keyword View




8
    © Copyright GlobalLogic 2008
QTP – Expert View




9
    © Copyright GlobalLogic 2008
Object Repository
      •      Object repository dialog box displays a test tree of all objects in the
            current action or the entire application.
      •     Using Object repository we can
            a) Identify the Object
            b) View the Object
               Properties




10
     © Copyright GlobalLogic 2008
Object Spy
      •     Using the Object Spy, we can view the properties of any Object in
            the open application.
      •     We can also view Object Methods.




11
     © Copyright GlobalLogic 2008
How Quick Test Recognizes Objects
      •     For each object class, QTP has a default set of properties that it
            always learns.
            1.Mandatory Properties.
            2.Assistive properties.
            3.Ordinal Identifier.
      •     Usually, only a few properties are needed to uniquely identify an
            object.




12
     © Copyright GlobalLogic 2008
Recording Modes
      •     Normal recording
              – Records the objects in your application and the operations performed on
                them. This mode is the default and takes full advantage of Quick Test’s
                test object model.

      •     Analog Recording
              – Record the exact mouse and keyboard operations you perform in
                relation to either the screen or the application window.

      •     Low-Level Recording
              – Record on any object in your application, whether or not Quick Test
                recognizes the specific object or the specific operation.




13
     © Copyright GlobalLogic 2008
Enhancing Tests
      •     Parameterize Test
      •     Regular Expressions
      •     Creating Checkpoints
      •     Creating Output Values
      •     Dividing Tests into Multiple Actions




14
     © Copyright GlobalLogic 2008
Parameterize Tests
      To run the scenario with multiple sets of data.

      Steps for Parameterization
      • Defining a Data Table Parameter
      • Adding Parameter Values to a Data Table
      • Modifying Steps Affected by Parameterization
      • Running and Analyzing a Parameterized Test

      Demo…




15
     © Copyright GlobalLogic 2008
Regular Expressions
      •     Regular expressions enable Quick Test to identify Objects and text
            strings with varying values.


      •     User has to identify the data projected to be change, like dates, so
            to accepts any dates, user can use regular expression.
      Example :
          Actual Date format :
                                          17/08/2008 (dd/mm/yyyy)
          After Regular Expression:
                                          [0-3][0-9]/[0-1][0-9]/200[0-9]



16
     © Copyright GlobalLogic 2008
Synchronization
      •     Synchronization point enables the anticipated time problems
            between the application and QTP.
      •     A progress bar reaches 100% completion.
      •     A status message appears.
      •     A button becomes enabled.
      •     A window opens and is ready for data entry.
      •     A pop-up message appears in response to an operation.




17
     © Copyright GlobalLogic 2008
How to Synchronize the Test

      We can synchronize the test by
       1.Inserting a synchronization point
       Insert  Step  Synchronization point
            Window(“Flights”).WinButton(“Update order”).WaitProperty”enabled”,1,1000

            2.Adding Exist and Wait statements
            status=Window(“Flights”).Dialog(“Flights Table”).Exist
            Wait(10)




18
     © Copyright GlobalLogic 2008
Checkpoints
      •     A checkpoint is a verification point that compares a current value for
            a specified property with the expected value for that property.
      •     We can Insert checkpoint
            1.From Menu
            Insert  Checkpoint  Standard Checkpoint
            2.From Keyword view
            3.From the Active Screen




19
     © Copyright GlobalLogic 2008
Checkpoint Types
      Standard Checkpoint           Checks values of an object’s properties                     Check that a radio button is selected.




      Image Checkpoint              Checks the property values of                               Check that the image source file is correct.
                                    an image



      Table Checkpoint              Checks information in a table                               Check that the value in a table cell is
                                                                                                correct.



      Page checkpoint               Checks the characteristics of a Web page                    Check how long a Web page takes to load
                                                                                                or if a Web page contains broken links.




      Text /                        Checks that a text string is displayed in the appropriate   Check whether the expected text string is
      Text Area Checkpoint          place in a Web page or application window                   displayed in the expected location on a Web
                                                                                                page or dialog box




      Bitmap Checkpoint             Checks an area of a Web page                                Check that a Web page (or any portion of it)
                                    or application after capturing                              is displayed as expected.
                                    it as a bitmap



20
     © Copyright GlobalLogic 2008
Checkpoint Types Cont…
      Database Checkpoint           Checks the contents of databases accessed by an   Check that the value in a database query
                                    application or Web site                           is correct.




      Accessibility Checkpoint      Identifies areas of a Web site                    Check if the images on a Web page
                                    to check for Section 508 compliancy               include ALT properties, required by the
                                                                                      W3C Web Content Accessibility
                                                                                      Guidelines.




      XML Checkpoint                Checks the data content of                        Note: XML file checkpoints are used to
                                    XML documents                                     check a specified XML file; XML
                                                                                      application checkpoints are used to check
                                                                                      an XML document within a Web page.




21
     © Copyright GlobalLogic 2008
Text /TextArea Checkpoint
      Checks the Current Text format with the Expected Text Format in
        a Web page or application window

      Demo…




22
     © Copyright GlobalLogic 2008
Standard Checkpoint
      Checks values of an object’s properties

      Demo…




23
     © Copyright GlobalLogic 2008
Page Checkpoint
      •     Checks the characteristics of a page

      •     Check how long a Web page takes to load or if a Web page
            contains broken links.

      Demo…




24
     © Copyright GlobalLogic 2008
Bitmap Checkpoint
      •     Checks an area of a Web page or application after capturing it as a
            bitmap

      •     Check that a Web page (or any portion of it) is displayed as
            expected.

      Demo…




25
     © Copyright GlobalLogic 2008
Accessibility Checkpoint
      •     Check if the images on a Web page include ALT properties,
      •     required by the W3C Web Content Accessibility Guidelines

      Demo…




26
     © Copyright GlobalLogic 2008
Output Values
      •     An output value is a step in which one or more values are captured
            at a specific point in your test and stored for the duration of the run
            session. The values can later be used as input at a different point in
            the run session.
      •     You can output the property values of any object. You can also
            output values from text strings, table cells, databases, and XML
            documents.



      Demo for Text Output Value and Standard Output Value




27
     © Copyright GlobalLogic 2008
Actions
      •     Actions help to divide Test Script into logical units
      •     Usage :
       1)We can design more modular and efficient tests.
       2)Actions enable you to parameterize specific components of a test
       3)Two or more tests can call the same action
       4)Complex tests may have many actions and may share actions with
          other tests.




28
     © Copyright GlobalLogic 2008
Types of Actions
      We can divide Test Script into multiple actions by creating
      new actions or by inserting existing actions.

      Kinds of actions:
      • Non-Reusable Action : An action that can be used only in the test
         in which it was created, and only once.

      •     Reusable Action : An action that can be called multiple times by
            the test in which it was created (the local test) as well as by other
            tests.

      •     External Action : A reusable action created in another test.
            External actions are read-only in the calling test. They can be
            modified only in the test in which they were created.

29
     © Copyright GlobalLogic 2008
Insert Call to a New Action
      •     You can add a new action during or after recording.
      •     Select Insert -> Call to New Action from the QuickTest main menu.
            The Insert New Action window appears.
      •     Or use the “Call to New Action” icon on the toolbar to insert new
            action.




30
     © Copyright GlobalLogic 2008
Splitting Actions

      We can split an existing action into two sibling actions or
       into parent-child nested actions.

      We cannot split an action and the option is disabled
      •     when an external action is selected
      •     when the first line of the action is selected
      •     while recording a test
      •     while running a test
      •     when you are working with a read-only test




31
     © Copyright GlobalLogic 2008
Splitting Actions Cont…




32
     © Copyright GlobalLogic 2008
Inserting Existing Actions

      • We can insert an existing action by

              – Inserting a copy of the action
                It copied in its entirety, including checkpoints, parameterization,
                and the corresponding action tab in the Data Table.

              – Inserting a call to the original action
                   We can insert a call (link) to a reusable action that resides in your
                   current test (local action), or in any other test (external action).




33
     © Copyright GlobalLogic 2008

More Related Content

Viewers also liked

70 433
70 43370 433
32916
3291632916
How to-segment-integrate-your-emails-fin
How to-segment-integrate-your-emails-finHow to-segment-integrate-your-emails-fin
How to-segment-integrate-your-emails-fin
Consultora de Marketing Digital
 
Social guide to_link_building
Social guide to_link_buildingSocial guide to_link_building
Social guide to_link_building
Consultora de Marketing Digital
 
A1
A1A1
70562-Dumps
70562-Dumps70562-Dumps
70562-Dumps
Pragya Rastogi
 

Viewers also liked (7)

70 433
70 43370 433
70 433
 
Index Grey (1)
Index Grey (1)Index Grey (1)
Index Grey (1)
 
32916
3291632916
32916
 
How to-segment-integrate-your-emails-fin
How to-segment-integrate-your-emails-finHow to-segment-integrate-your-emails-fin
How to-segment-integrate-your-emails-fin
 
Social guide to_link_building
Social guide to_link_buildingSocial guide to_link_building
Social guide to_link_building
 
A1
A1A1
A1
 
70562-Dumps
70562-Dumps70562-Dumps
70562-Dumps
 

Similar to Gl qtp day 1 & 2

Qtp training session III
Qtp training session IIIQtp training session III
Qtp training session III
Aisha Mazhar
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Qtp basic
Qtp basicQtp basic
Qtp basic
Sandeep
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
techgajanan
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
chandrasekhar
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
techgajanan
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
techgajanan
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
Azhar Satti
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
satyaragha
 
[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing
Carles Farré
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
QTP Training
QTP TrainingQTP Training
QTP Training
G.C Reddy
 
QTP Online Training
QTP Online Training QTP Online Training
QTP Online Training
G Chandra Reddy
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
pingkapil
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
Ramu Palanki
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
QualityPoint Technologies
 
Qtp training in hyderabad
Qtp training in hyderabadQtp training in hyderabad
Qtp training in hyderabad
G.C Reddy
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
Vitaliy Ganzha
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
CIVEL Benoit
 
Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
CIVEL Benoit
 

Similar to Gl qtp day 1 & 2 (20)

Qtp training session III
Qtp training session IIIQtp training session III
Qtp training session III
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
QTP Training
QTP TrainingQTP Training
QTP Training
 
QTP Online Training
QTP Online Training QTP Online Training
QTP Online Training
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
 
Qtp training in hyderabad
Qtp training in hyderabadQtp training in hyderabad
Qtp training in hyderabad
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
 
Cerberus_Presentation1
Cerberus_Presentation1Cerberus_Presentation1
Cerberus_Presentation1
 

More from Pragya Rastogi

Gl android platform
Gl android platformGl android platform
Gl android platform
Pragya Rastogi
 
Qtp questions
Qtp questionsQtp questions
Qtp questions
Pragya Rastogi
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
Pragya Rastogi
 
Qtp tutorial
Qtp tutorialQtp tutorial
Qtp tutorial
Pragya Rastogi
 
Qtp4 bpt
Qtp4 bptQtp4 bpt
Qtp4 bpt
Pragya Rastogi
 
Get ro property outputting value
Get ro property outputting valueGet ro property outputting value
Get ro property outputting value
Pragya Rastogi
 
Bp ttutorial
Bp ttutorialBp ttutorial
Bp ttutorial
Pragya Rastogi
 
Gl istqb testing fundamentals
Gl istqb testing fundamentalsGl istqb testing fundamentals
Gl istqb testing fundamentals
Pragya Rastogi
 
Gl scrum testing_models
Gl scrum testing_modelsGl scrum testing_models
Gl scrum testing_models
Pragya Rastogi
 
My Sql concepts
My Sql conceptsMy Sql concepts
My Sql concepts
Pragya Rastogi
 
Oops
OopsOops
Java programming basics
Java programming basicsJava programming basics
Java programming basics
Pragya Rastogi
 
70433 Dumps DB
70433 Dumps DB70433 Dumps DB
70433 Dumps DB
Pragya Rastogi
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
Pragya Rastogi
 
70 562
70 56270 562
Mobile testingartifacts
Mobile testingartifactsMobile testingartifacts
Mobile testingartifacts
Pragya Rastogi
 
GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
Pragya Rastogi
 
Gl qtp day 3 1
Gl qtp day 3   1Gl qtp day 3   1
Gl qtp day 3 1
Pragya Rastogi
 
Gl qtp day 3 2
Gl qtp day 3   2Gl qtp day 3   2
Gl qtp day 3 2
Pragya Rastogi
 

More from Pragya Rastogi (19)

Gl android platform
Gl android platformGl android platform
Gl android platform
 
Qtp questions
Qtp questionsQtp questions
Qtp questions
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
 
Qtp tutorial
Qtp tutorialQtp tutorial
Qtp tutorial
 
Qtp4 bpt
Qtp4 bptQtp4 bpt
Qtp4 bpt
 
Get ro property outputting value
Get ro property outputting valueGet ro property outputting value
Get ro property outputting value
 
Bp ttutorial
Bp ttutorialBp ttutorial
Bp ttutorial
 
Gl istqb testing fundamentals
Gl istqb testing fundamentalsGl istqb testing fundamentals
Gl istqb testing fundamentals
 
Gl scrum testing_models
Gl scrum testing_modelsGl scrum testing_models
Gl scrum testing_models
 
My Sql concepts
My Sql conceptsMy Sql concepts
My Sql concepts
 
Oops
OopsOops
Oops
 
Java programming basics
Java programming basicsJava programming basics
Java programming basics
 
70433 Dumps DB
70433 Dumps DB70433 Dumps DB
70433 Dumps DB
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
 
70 562
70 56270 562
70 562
 
Mobile testingartifacts
Mobile testingartifactsMobile testingartifacts
Mobile testingartifacts
 
GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
 
Gl qtp day 3 1
Gl qtp day 3   1Gl qtp day 3   1
Gl qtp day 3 1
 
Gl qtp day 3 2
Gl qtp day 3   2Gl qtp day 3   2
Gl qtp day 3 2
 

Recently uploaded

Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 

Recently uploaded (20)

Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 

Gl qtp day 1 & 2

  • 1. Quick Test Professional By 1 Rajat Gupta © Copyright GlobalLogic 2008
  • 2. Agenda • Introduction to Automation Testing • QTP Testing Process • Add-in Manager • QTP Script Views • Object Repository • Checkpoints • Creating Output values • Actions • Results • Debugging Tests • User Defined Functions • Regular Expressions • Other Items 2 © Copyright GlobalLogic 2008
  • 3. Introduction to Automation Testing • What is Automation Testing ? • Benefits 3 © Copyright GlobalLogic 2008
  • 4. QTP Testing Process Quick Test testing process consists of 7 main phases 3. Preparing to record – Test Environment – Test Conditions 4. Recording a session on your application – Navigate according to Test Conditions 5. Enhancing your test – Adding logic and conditional statements – Parameterization – Inserting checkpoints 6. Debugging your test – Check that it operates smoothly and without interruption. 4 © Copyright GlobalLogic 2008
  • 5. QTP Testing Process 1. Run Test – Check the behavior of your application 2. Analyzing the test results  Reporting defects 5 © Copyright GlobalLogic 2008
  • 6. Add-in Manager • Default Add-ins – ActiveX – Visual basic – Web • Other Add-Ins – Siebel – Java – SAP – Oracle – .Net and many more QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) 6 © Copyright GlobalLogic 2008
  • 7. QTP Window 7 © Copyright GlobalLogic 2008
  • 8. QTP – Keyword View 8 © Copyright GlobalLogic 2008
  • 9. QTP – Expert View 9 © Copyright GlobalLogic 2008
  • 10. Object Repository • Object repository dialog box displays a test tree of all objects in the current action or the entire application. • Using Object repository we can a) Identify the Object b) View the Object Properties 10 © Copyright GlobalLogic 2008
  • 11. Object Spy • Using the Object Spy, we can view the properties of any Object in the open application. • We can also view Object Methods. 11 © Copyright GlobalLogic 2008
  • 12. How Quick Test Recognizes Objects • For each object class, QTP has a default set of properties that it always learns. 1.Mandatory Properties. 2.Assistive properties. 3.Ordinal Identifier. • Usually, only a few properties are needed to uniquely identify an object. 12 © Copyright GlobalLogic 2008
  • 13. Recording Modes • Normal recording – Records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of Quick Test’s test object model. • Analog Recording – Record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. • Low-Level Recording – Record on any object in your application, whether or not Quick Test recognizes the specific object or the specific operation. 13 © Copyright GlobalLogic 2008
  • 14. Enhancing Tests • Parameterize Test • Regular Expressions • Creating Checkpoints • Creating Output Values • Dividing Tests into Multiple Actions 14 © Copyright GlobalLogic 2008
  • 15. Parameterize Tests To run the scenario with multiple sets of data. Steps for Parameterization • Defining a Data Table Parameter • Adding Parameter Values to a Data Table • Modifying Steps Affected by Parameterization • Running and Analyzing a Parameterized Test Demo… 15 © Copyright GlobalLogic 2008
  • 16. Regular Expressions • Regular expressions enable Quick Test to identify Objects and text strings with varying values. • User has to identify the data projected to be change, like dates, so to accepts any dates, user can use regular expression. Example : Actual Date format : 17/08/2008 (dd/mm/yyyy) After Regular Expression: [0-3][0-9]/[0-1][0-9]/200[0-9] 16 © Copyright GlobalLogic 2008
  • 17. Synchronization • Synchronization point enables the anticipated time problems between the application and QTP. • A progress bar reaches 100% completion. • A status message appears. • A button becomes enabled. • A window opens and is ready for data entry. • A pop-up message appears in response to an operation. 17 © Copyright GlobalLogic 2008
  • 18. How to Synchronize the Test We can synchronize the test by 1.Inserting a synchronization point Insert  Step  Synchronization point Window(“Flights”).WinButton(“Update order”).WaitProperty”enabled”,1,1000 2.Adding Exist and Wait statements status=Window(“Flights”).Dialog(“Flights Table”).Exist Wait(10) 18 © Copyright GlobalLogic 2008
  • 19. Checkpoints • A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. • We can Insert checkpoint 1.From Menu Insert  Checkpoint  Standard Checkpoint 2.From Keyword view 3.From the Active Screen 19 © Copyright GlobalLogic 2008
  • 20. Checkpoint Types Standard Checkpoint Checks values of an object’s properties Check that a radio button is selected. Image Checkpoint Checks the property values of Check that the image source file is correct. an image Table Checkpoint Checks information in a table Check that the value in a table cell is correct. Page checkpoint Checks the characteristics of a Web page Check how long a Web page takes to load or if a Web page contains broken links. Text / Checks that a text string is displayed in the appropriate Check whether the expected text string is Text Area Checkpoint place in a Web page or application window displayed in the expected location on a Web page or dialog box Bitmap Checkpoint Checks an area of a Web page Check that a Web page (or any portion of it) or application after capturing is displayed as expected. it as a bitmap 20 © Copyright GlobalLogic 2008
  • 21. Checkpoint Types Cont… Database Checkpoint Checks the contents of databases accessed by an Check that the value in a database query application or Web site is correct. Accessibility Checkpoint Identifies areas of a Web site Check if the images on a Web page to check for Section 508 compliancy include ALT properties, required by the W3C Web Content Accessibility Guidelines. XML Checkpoint Checks the data content of Note: XML file checkpoints are used to XML documents check a specified XML file; XML application checkpoints are used to check an XML document within a Web page. 21 © Copyright GlobalLogic 2008
  • 22. Text /TextArea Checkpoint Checks the Current Text format with the Expected Text Format in a Web page or application window Demo… 22 © Copyright GlobalLogic 2008
  • 23. Standard Checkpoint Checks values of an object’s properties Demo… 23 © Copyright GlobalLogic 2008
  • 24. Page Checkpoint • Checks the characteristics of a page • Check how long a Web page takes to load or if a Web page contains broken links. Demo… 24 © Copyright GlobalLogic 2008
  • 25. Bitmap Checkpoint • Checks an area of a Web page or application after capturing it as a bitmap • Check that a Web page (or any portion of it) is displayed as expected. Demo… 25 © Copyright GlobalLogic 2008
  • 26. Accessibility Checkpoint • Check if the images on a Web page include ALT properties, • required by the W3C Web Content Accessibility Guidelines Demo… 26 © Copyright GlobalLogic 2008
  • 27. Output Values • An output value is a step in which one or more values are captured at a specific point in your test and stored for the duration of the run session. The values can later be used as input at a different point in the run session. • You can output the property values of any object. You can also output values from text strings, table cells, databases, and XML documents. Demo for Text Output Value and Standard Output Value 27 © Copyright GlobalLogic 2008
  • 28. Actions • Actions help to divide Test Script into logical units • Usage : 1)We can design more modular and efficient tests. 2)Actions enable you to parameterize specific components of a test 3)Two or more tests can call the same action 4)Complex tests may have many actions and may share actions with other tests. 28 © Copyright GlobalLogic 2008
  • 29. Types of Actions We can divide Test Script into multiple actions by creating new actions or by inserting existing actions. Kinds of actions: • Non-Reusable Action : An action that can be used only in the test in which it was created, and only once. • Reusable Action : An action that can be called multiple times by the test in which it was created (the local test) as well as by other tests. • External Action : A reusable action created in another test. External actions are read-only in the calling test. They can be modified only in the test in which they were created. 29 © Copyright GlobalLogic 2008
  • 30. Insert Call to a New Action • You can add a new action during or after recording. • Select Insert -> Call to New Action from the QuickTest main menu. The Insert New Action window appears. • Or use the “Call to New Action” icon on the toolbar to insert new action. 30 © Copyright GlobalLogic 2008
  • 31. Splitting Actions We can split an existing action into two sibling actions or into parent-child nested actions. We cannot split an action and the option is disabled • when an external action is selected • when the first line of the action is selected • while recording a test • while running a test • when you are working with a read-only test 31 © Copyright GlobalLogic 2008
  • 32. Splitting Actions Cont… 32 © Copyright GlobalLogic 2008
  • 33. Inserting Existing Actions • We can insert an existing action by – Inserting a copy of the action It copied in its entirety, including checkpoints, parameterization, and the corresponding action tab in the Data Table. – Inserting a call to the original action We can insert a call (link) to a reusable action that resides in your current test (local action), or in any other test (external action). 33 © Copyright GlobalLogic 2008

Editor's Notes

  1. File->Settings>Modify
  2. Create a Text Point on the
  3. status = Window("Flight Reservation").WinRadioButton("Economy").Check (CheckPoint("Economy")) msgbox status