SlideShare a Scribd company logo
Automation Fundamental Concepts and  Intro. about QTP 9.2 --Chandra Sekhar
Automation Fundamental Concepts What is Test Automation ?   Software Test Automation is the process of automating the steps of manual test cases using an automation tool Or utility to shorten the testing life cycle with respect to time… When application undergoes regression, some of the steps might be missed out or skipped which can be avoided in Automation… Automation helps to avoid human errors and also expedite the testing process… To implement the Test Automation detailed planning and effort is required
Automation Fundamental Concepts Automation saves time and effort which results in reduction of the Test life cycle… Benefits of Automation - Consistency of Test Execution - Reducing cycle time of regression test cycles - Data driven testing - Repeatability - Coverage - Reliability - Reusability of test wares
Automation Fundamental Concepts Automation life cycle is a subset of the entire test life cycle… Automation planning can be initiated in parallel to the test planning phase… Factors to be considered in automation planning, Stability of AUT (Application under test) No of regression cycles to be performed Compatibility of App platform with testing tools Cost benefit analysis (ROI) Availability of skilled resources
Regression Testing & Automation When Automation is applicable? Regression Testing Cycles are long and iterative. If the application is planned to have multiple releases / builds If it’s a long running application where in small enhancements  / Bug Fixes keeps happening Test Repeatability is required
Technologies Supported Default Support   1. Standard Windows applications   2. Web objects / Applications   3. ActiveX controls   4. Visual Basic applications Supported Add-ins   QuickTest Professional Java Add-in 9.1  QuickTest Professional .NET Add-in 9.2  QuickTest Professional Oracle Add-in 8.2  QuickTest Professional PeopleSoft Add-in 8.2* QuickTest Professional Add-in 8.2 for SAP Solutions QuickTest Professional Siebel Add-in 8.0* QuickTest Professional Stingray Add-in 8.2 QuickTest Professional Terminal Emulator Add-in 8.0* QuickTest Professional VisualAge Smalltalk Add-in 8.2 QuickTest Professional Web Services Add-in 9.2
Supported Browsers Microsoft Internet Explorer 6.0 Service Pack 1 Microsoft Internet Explorer 7.0 Netscape Browser 8.1.2 Mozilla Firefox 1.5  Mozilla Firefox 2.0
Add-in Manager Default Add-ins ActiveX Visual basic Web Other Add-Ins Siebel Java SAP Oracle  .Net and many more
Add-in Manager Cont… QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) Once an add-in is loaded, users can record that application in its supported environment and thus QTP recognizes the objects specific to the application under test (AUT) as loaded through Add-in Manager. It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro.
Quick Test Professional - Record & Run Modes Recording Modes Normal Analog Low level Run Modes Normal Fast Update
Quick Test Professional  -Tools    Options    General Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed.
Quick Test Professional  - Tools    Options    Run
Quick Test Professional  - Options    Run Best Practices for Options for Run Mode: Run Mode as Normal:  This ensures that the execution arrow appears to help with trouble shooting the tests. Synchronization becomes better for the AUT (Application Under Test) Test Results:  Deselect the option “View Results when run session ends”  Mercury Tool Integration:  Select "Allow other Mercury products to run tests and components“ Screen Capture:  Save step screen capture to results "On error and warnings"
Automation    Record and Run Settings
Record and Run Settings Best Practices for Record & Run Settings Set the options to configure QTP to "Record and run test on any open Windows- based application“ Set the option - This window will appear the first time you click on the Record button in the new test. Manually recall this window by selecting Automation  Record and Run settings
QTP - Main Window
QTP - Main Window Test Pane: Test Pane contains two labs to view the tests,  - Keyword View  - Expert View Keyword View:  Quick Test Pro displays your test in the form of a collapsible, icon based tree… Expert View: Quick Test Pro displays the source code (VB Script) of the tests in this view.
Resources    Object Repository Can add a New Object to the repository More properties for recognizing the object can be added to the list. The value of property can be edited here.
Resources    Object Repository Manager
Resources    Associate Repositories Add shared Repository
Resources    Object Repository Associate repository is added to the Filter option.
Object Repository    Merging tool Secondary Repository Primary Repository .
Object Repository    Comparison Tool Comparing two repositories'
VB Script basics – Data Types
VB Script basics – Variables & Constants Declaring Variables Naming Restrictions  Scope and Lifetime of Variables Assigning Values to Variables Scalar Variables and Array Variables  Creating Constants
VB Script basics - Operators
VB Script basics – Conditions & Looping Conditional Statements If...Then...Else statement  Select Case statement  Looping Do...Loop: Loops while or until a condition is true.  While...Wend: Loops while a condition is true.  For...Next: Uses a counter to run statements a specified number of times. For each...Next: Repeats a group of statements for each item in a collection or each element of an array.
VB Script basics – Functions
Key areas in QTP About the script structure Actions (Simple, Nested, External, Re-usable) Parameterization (Different Types) Checkpoints (Programmatic Methodology) Descriptive programming Adv. Synchronization points Exception Handling
About the script structure
Actions (Simple, Nested, External, Re-usable) Standalone Actions Nested Actions Integration of Actions (Call from One Action to other) Driver Action (Main Action) Re-usable Actions External Call for Actions
Parameterization Classifications of Parameterization Test and Action Parameters Data Table (Global & Action Specific) Environment variables Random Number
Types of Checkpoints Check that a Web page (or any portion of it) is displayed as expected.  Checks an area of a Web page  or application after capturing  it as a bitmap  Bitmap Checkpoint  Check whether the expected text string is displayed in the expected location on a Web page or dialog box  Checks that a text string is displayed in the appropriate place in a Web page or application window  Text /  Text Area Checkpoint  Check how long a Web page takes to load or if a Web page contains broken links.  Checks the characteristics of a Web page  Page checkpoint  Check that the value in a table cell is correct.  Checks information in a table  Table Checkpoint  Check that the image source file is correct.  Checks the property values of  an image  Image Checkpoint  Check that a radio button is selected.  Checks values of an object’s properties  Standard Checkpoint
Types of Checkpoints Note:  XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page.  Checks the data content of  XML documents  XML Checkpoint  Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines.  Identifies areas of a Web site  to check for Section 508 compliancy  Accessibility Checkpoint  Check that the value in a database query is correct.  Checks the contents of databases accessed by an application or Web site  Database Checkpoint
Descriptive Programming Samples Descriptive programming Entering Programmatic Descriptions Directly into Statements Browser("Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set "Mark Twain "  Using Description Objects for Programmatic Descriptions   Set MyDescription = Description.Create() MyDescription("text").Value = "OK" MyDescription("width").Value = 50 Window("Error").WinButton(MyDescription).Click
Adv. Synchronization Points Using tool menu options Wait property Programmatically Wait & exist
Exception Handling Recovery Scenario Concepts Recovery Process  Trigger Events Recovery Operation Post-recovery Operation
Sample Script – QTP Functions 'sample 1 - Getting all the items from the combobox My_Cnt = Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount msgbox My_Cnt For i = 1 to My_Cnt ' the combobox item index will start from zero. My_item = Window("Flight Reservation").WinComboBox("Fly From:").GetItem(i-1) Msgbox My_item Next 'sample 2 - Getting the entire content of the combobox Var_Content = Window("Flight Reservation").WinComboBox("Fly From:").GetContent Msgbox Var_Content
Sample Script – QTP Functions 'sample 3 - Selecting an item from the combo -  Using Index Window("Flight Reservation").WinComboBox("Fly From:").Select(5) 'sample 4 - Selecting an item from the combo -  Using Value Window("Flight Reservation").WinComboBox("Fly From:").Select("London") 'sample 5 - Selecting an item from the combo -  Using Variable Var_Item = "Zurich" Window("Flight Reservation").WinComboBox("Fly From:").Select(Var_Item) 'sample 6 - Getting the value of selected item Var_Sel = Window("Flight Reservation").WinComboBox("Fly From:").GetSelection Msgbox Var_Sel
Sample Script – QTP Functions ' Some FUM's (Frequently Used Methods)  'GetROProperty Var_Text = Window("Flight Reservation").WinEdit("Name:").GetROProperty("AttachedText") Msgbox Var_Text Var_Enab = Window("Flight Reservation").WinEdit("Name:").GetROProperty("Enabled") Msgbox Var_Enab 'Exist If Window("Flight Reservation").WinEdit("Name:").Exist(5) Then Msgbox "The Editbox exists" Else Msgbox "The Editbox does not exist" End if
Thank You

More Related Content

PPT
Qtp 92 Tutorial
PPT
Hp Quick Test Professional
PPT
First QTP Tutorial
PPT
Qtp Training
PPT
QTP Training by INFOTECH
PPT
QTP with Descriptive programming
PPT
Qtp Basics
PPT
QTP Slides Presentation.
Qtp 92 Tutorial
Hp Quick Test Professional
First QTP Tutorial
Qtp Training
QTP Training by INFOTECH
QTP with Descriptive programming
Qtp Basics
QTP Slides Presentation.

What's hot (17)

PPT
Ppt Qtp
PPTX
QTP Power Point Presentation
PDF
What is UFT? HP's unified functional testing.
DOC
Qtp questions and answers
PPT
Copy of qtp presentation
PPTX
Keyword-driven Test Automation Framework
PPT
Test automation process
PPT
Qtp Training Deepti 1 Of 4187
PPT
Qtp Training Deepti 3 Of 44256
PPT
Keyword Driven Automation
DOC
Qtp interview questions3
DOC
Qtp interview questions and answers
DOC
What are the features in qtp
PPTX
UFT Automation Framework Introduction
PPTX
Web service testing using QTP (UFT)
PPT
QTP Online Training
PPTX
Uft Basics
Ppt Qtp
QTP Power Point Presentation
What is UFT? HP's unified functional testing.
Qtp questions and answers
Copy of qtp presentation
Keyword-driven Test Automation Framework
Test automation process
Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 3 Of 44256
Keyword Driven Automation
Qtp interview questions3
Qtp interview questions and answers
What are the features in qtp
UFT Automation Framework Introduction
Web service testing using QTP (UFT)
QTP Online Training
Uft Basics
Ad

Viewers also liked (20)

PPTX
Vision Based Expressway Management Information System - Mid review presentation
PDF
Ruimte voor de Tussenmaat mei2011
PPT
Ccss training of the trainers
PPT
Carbon footprint and its application to cities
PPT
La Provincia di Venezia verso gli obiettivi del 202020
PPTX
La Mobilità sostenibile nel territorio
PDF
Guida a Città Sostenibile 2011
PPT
نسخ من بشار مهم
PPS
Barbacoa
PDF
Demo 03.04.13
PPT
RUSPRODIMPORT
PPT
ADERIRE AL PATTO DEI SINDACI Attività e scadenze per i Comuni Firmatari
PPT
茂华集团财务集中管理项目实施工作汇报
PDF
I risultati del progetto Green Site
PDF
PDF
Due binari per lo sviluppo del Porto: efficienza e salvaguardia ambientale
PDF
MODALITA’ DI PRESENTAZIONE DELLE PROPOSTE INERENTI LE ATTIVITA’ SPERIMENTALI ...
PDF
WORKSHOPeA: "DUE DILIGENCE: accertamento delle passività ambientali nei contr...
PDF
Controlli e autocontrolli dei gestori: le modalità operative
PPT
Le associazioni di categoria e lo sviluppo sostenibile del diporto
Vision Based Expressway Management Information System - Mid review presentation
Ruimte voor de Tussenmaat mei2011
Ccss training of the trainers
Carbon footprint and its application to cities
La Provincia di Venezia verso gli obiettivi del 202020
La Mobilità sostenibile nel territorio
Guida a Città Sostenibile 2011
نسخ من بشار مهم
Barbacoa
Demo 03.04.13
RUSPRODIMPORT
ADERIRE AL PATTO DEI SINDACI Attività e scadenze per i Comuni Firmatari
茂华集团财务集中管理项目实施工作汇报
I risultati del progetto Green Site
Due binari per lo sviluppo del Porto: efficienza e salvaguardia ambientale
MODALITA’ DI PRESENTAZIONE DELLE PROPOSTE INERENTI LE ATTIVITA’ SPERIMENTALI ...
WORKSHOPeA: "DUE DILIGENCE: accertamento delle passività ambientali nei contr...
Controlli e autocontrolli dei gestori: le modalità operative
Le associazioni di categoria e lo sviluppo sostenibile del diporto
Ad

Similar to About Qtp 92 (20)

PPT
Qtp 9.2 tutorials
PPT
PPT
Qtp with descriptive programming
PPT
Qtp With Descriptive Programming
PPT
PPT
Qtp - Introduction to automation basics
DOC
Qtp Summary
PPT
QTP 10.0_Kalyan Chakravarthy.ppt
PPT
Qtp92 Presentation
PDF
Qtp online training
PPT
Qtp Presentation
PPT
HP Quick Test Professional
PPT
Qtp presentation
PPT
Qtp presentation
PPT
Qtp - Introduction to synchronization
PPT
Copyofqtppresentation 101229032428-phpapp01
DOC
Qtp (basics to advanced)
PPT
Qtp presentation
PDF
Qtp Interview Questions
DOC
Qtp syllabus
Qtp 9.2 tutorials
Qtp with descriptive programming
Qtp With Descriptive Programming
Qtp - Introduction to automation basics
Qtp Summary
QTP 10.0_Kalyan Chakravarthy.ppt
Qtp92 Presentation
Qtp online training
Qtp Presentation
HP Quick Test Professional
Qtp presentation
Qtp presentation
Qtp - Introduction to synchronization
Copyofqtppresentation 101229032428-phpapp01
Qtp (basics to advanced)
Qtp presentation
Qtp Interview Questions
Qtp syllabus

More from techgajanan (9)

PPT
PerformanceTestingWithLoadrunner
PPS
About Qtp_1 92
PPT
Qtp Mgl Presentation
PPT
Qtp Descriptive Programming 11200
PPT
Qtp Training
PPT
Qtp Tutorials
PPT
Qtp Tutorials
DOCX
Graphical User Interface Testing
DOCX
General Information About Information Technologies
PerformanceTestingWithLoadrunner
About Qtp_1 92
Qtp Mgl Presentation
Qtp Descriptive Programming 11200
Qtp Training
Qtp Tutorials
Qtp Tutorials
Graphical User Interface Testing
General Information About Information Technologies

About Qtp 92

  • 1. Automation Fundamental Concepts and Intro. about QTP 9.2 --Chandra Sekhar
  • 2. Automation Fundamental Concepts What is Test Automation ? Software Test Automation is the process of automating the steps of manual test cases using an automation tool Or utility to shorten the testing life cycle with respect to time… When application undergoes regression, some of the steps might be missed out or skipped which can be avoided in Automation… Automation helps to avoid human errors and also expedite the testing process… To implement the Test Automation detailed planning and effort is required
  • 3. Automation Fundamental Concepts Automation saves time and effort which results in reduction of the Test life cycle… Benefits of Automation - Consistency of Test Execution - Reducing cycle time of regression test cycles - Data driven testing - Repeatability - Coverage - Reliability - Reusability of test wares
  • 4. Automation Fundamental Concepts Automation life cycle is a subset of the entire test life cycle… Automation planning can be initiated in parallel to the test planning phase… Factors to be considered in automation planning, Stability of AUT (Application under test) No of regression cycles to be performed Compatibility of App platform with testing tools Cost benefit analysis (ROI) Availability of skilled resources
  • 5. Regression Testing & Automation When Automation is applicable? Regression Testing Cycles are long and iterative. If the application is planned to have multiple releases / builds If it’s a long running application where in small enhancements / Bug Fixes keeps happening Test Repeatability is required
  • 6. Technologies Supported Default Support 1. Standard Windows applications 2. Web objects / Applications 3. ActiveX controls 4. Visual Basic applications Supported Add-ins QuickTest Professional Java Add-in 9.1 QuickTest Professional .NET Add-in 9.2 QuickTest Professional Oracle Add-in 8.2 QuickTest Professional PeopleSoft Add-in 8.2* QuickTest Professional Add-in 8.2 for SAP Solutions QuickTest Professional Siebel Add-in 8.0* QuickTest Professional Stingray Add-in 8.2 QuickTest Professional Terminal Emulator Add-in 8.0* QuickTest Professional VisualAge Smalltalk Add-in 8.2 QuickTest Professional Web Services Add-in 9.2
  • 7. Supported Browsers Microsoft Internet Explorer 6.0 Service Pack 1 Microsoft Internet Explorer 7.0 Netscape Browser 8.1.2 Mozilla Firefox 1.5 Mozilla Firefox 2.0
  • 8. Add-in Manager Default Add-ins ActiveX Visual basic Web Other Add-Ins Siebel Java SAP Oracle .Net and many more
  • 9. Add-in Manager Cont… QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) Once an add-in is loaded, users can record that application in its supported environment and thus QTP recognizes the objects specific to the application under test (AUT) as loaded through Add-in Manager. It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro.
  • 10. Quick Test Professional - Record & Run Modes Recording Modes Normal Analog Low level Run Modes Normal Fast Update
  • 11. Quick Test Professional -Tools  Options  General Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed.
  • 12. Quick Test Professional - Tools  Options  Run
  • 13. Quick Test Professional - Options  Run Best Practices for Options for Run Mode: Run Mode as Normal: This ensures that the execution arrow appears to help with trouble shooting the tests. Synchronization becomes better for the AUT (Application Under Test) Test Results: Deselect the option “View Results when run session ends” Mercury Tool Integration: Select "Allow other Mercury products to run tests and components“ Screen Capture: Save step screen capture to results "On error and warnings"
  • 14. Automation  Record and Run Settings
  • 15. Record and Run Settings Best Practices for Record & Run Settings Set the options to configure QTP to "Record and run test on any open Windows- based application“ Set the option - This window will appear the first time you click on the Record button in the new test. Manually recall this window by selecting Automation  Record and Run settings
  • 16. QTP - Main Window
  • 17. QTP - Main Window Test Pane: Test Pane contains two labs to view the tests, - Keyword View - Expert View Keyword View: Quick Test Pro displays your test in the form of a collapsible, icon based tree… Expert View: Quick Test Pro displays the source code (VB Script) of the tests in this view.
  • 18. Resources  Object Repository Can add a New Object to the repository More properties for recognizing the object can be added to the list. The value of property can be edited here.
  • 19. Resources  Object Repository Manager
  • 20. Resources  Associate Repositories Add shared Repository
  • 21. Resources  Object Repository Associate repository is added to the Filter option.
  • 22. Object Repository  Merging tool Secondary Repository Primary Repository .
  • 23. Object Repository  Comparison Tool Comparing two repositories'
  • 24. VB Script basics – Data Types
  • 25. VB Script basics – Variables & Constants Declaring Variables Naming Restrictions Scope and Lifetime of Variables Assigning Values to Variables Scalar Variables and Array Variables Creating Constants
  • 26. VB Script basics - Operators
  • 27. VB Script basics – Conditions & Looping Conditional Statements If...Then...Else statement Select Case statement Looping Do...Loop: Loops while or until a condition is true. While...Wend: Loops while a condition is true. For...Next: Uses a counter to run statements a specified number of times. For each...Next: Repeats a group of statements for each item in a collection or each element of an array.
  • 28. VB Script basics – Functions
  • 29. Key areas in QTP About the script structure Actions (Simple, Nested, External, Re-usable) Parameterization (Different Types) Checkpoints (Programmatic Methodology) Descriptive programming Adv. Synchronization points Exception Handling
  • 30. About the script structure
  • 31. Actions (Simple, Nested, External, Re-usable) Standalone Actions Nested Actions Integration of Actions (Call from One Action to other) Driver Action (Main Action) Re-usable Actions External Call for Actions
  • 32. Parameterization Classifications of Parameterization Test and Action Parameters Data Table (Global & Action Specific) Environment variables Random Number
  • 33. Types of Checkpoints Check that a Web page (or any portion of it) is displayed as expected. Checks an area of a Web page or application after capturing it as a bitmap Bitmap Checkpoint Check whether the expected text string is displayed in the expected location on a Web page or dialog box Checks that a text string is displayed in the appropriate place in a Web page or application window Text / Text Area Checkpoint Check how long a Web page takes to load or if a Web page contains broken links. Checks the characteristics of a Web page Page checkpoint Check that the value in a table cell is correct. Checks information in a table Table Checkpoint Check that the image source file is correct. Checks the property values of an image Image Checkpoint Check that a radio button is selected. Checks values of an object’s properties Standard Checkpoint
  • 34. Types of Checkpoints Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page. Checks the data content of XML documents XML Checkpoint Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines. Identifies areas of a Web site to check for Section 508 compliancy Accessibility Checkpoint Check that the value in a database query is correct. Checks the contents of databases accessed by an application or Web site Database Checkpoint
  • 35. Descriptive Programming Samples Descriptive programming Entering Programmatic Descriptions Directly into Statements Browser("Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set "Mark Twain " Using Description Objects for Programmatic Descriptions Set MyDescription = Description.Create() MyDescription("text").Value = "OK" MyDescription("width").Value = 50 Window("Error").WinButton(MyDescription).Click
  • 36. Adv. Synchronization Points Using tool menu options Wait property Programmatically Wait & exist
  • 37. Exception Handling Recovery Scenario Concepts Recovery Process Trigger Events Recovery Operation Post-recovery Operation
  • 38. Sample Script – QTP Functions 'sample 1 - Getting all the items from the combobox My_Cnt = Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount msgbox My_Cnt For i = 1 to My_Cnt ' the combobox item index will start from zero. My_item = Window("Flight Reservation").WinComboBox("Fly From:").GetItem(i-1) Msgbox My_item Next 'sample 2 - Getting the entire content of the combobox Var_Content = Window("Flight Reservation").WinComboBox("Fly From:").GetContent Msgbox Var_Content
  • 39. Sample Script – QTP Functions 'sample 3 - Selecting an item from the combo - Using Index Window("Flight Reservation").WinComboBox("Fly From:").Select(5) 'sample 4 - Selecting an item from the combo - Using Value Window("Flight Reservation").WinComboBox("Fly From:").Select("London") 'sample 5 - Selecting an item from the combo - Using Variable Var_Item = "Zurich" Window("Flight Reservation").WinComboBox("Fly From:").Select(Var_Item) 'sample 6 - Getting the value of selected item Var_Sel = Window("Flight Reservation").WinComboBox("Fly From:").GetSelection Msgbox Var_Sel
  • 40. Sample Script – QTP Functions ' Some FUM's (Frequently Used Methods) 'GetROProperty Var_Text = Window("Flight Reservation").WinEdit("Name:").GetROProperty("AttachedText") Msgbox Var_Text Var_Enab = Window("Flight Reservation").WinEdit("Name:").GetROProperty("Enabled") Msgbox Var_Enab 'Exist If Window("Flight Reservation").WinEdit("Name:").Exist(5) Then Msgbox "The Editbox exists" Else Msgbox "The Editbox does not exist" End if