Qtp (basics to advanced)


Published on

QTP online training

Published in: Education
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Qtp (basics to advanced)

  1. 1. gcreddy@gcreddy.com QuickTest Professional I) Introduction 1) Test Automation 2) Disadvantages of Manual Testing 3) Advantages of Test Automation 4) Drawbacks of Test Automation 5) Types of Test Automation 6) Functional Test Automation 7) Types of Test Tool 8) Functional & Regression Testing Tools 9) History of QTP 10)Basic Features of QTP 11) Installation process of QTP II) QuickTest Window / Key Elements of QTP 1) Test Pane 2) Active Screen 3) Data Table 4) Debug viewer 5) Information pane 6) Missing Resources pane 7) QTP Tool bars 8) QTP Menu items / QTP commands 9) Tool Settings III) Object Repository 1) Software objects 2) Types of object in QTP a) Runtime Objects b) Test Objects c) Utility Objects d) Automation Objects G.C.Reddy, Test Consultant & Trainer 1
  2. 2. gcreddy@gcreddy.com 3) Object Repository a) Local Repository b) Shared Repository 4) Operations on Object Repository a) Adding Objects b) Renaming Objects c) Deleting Objects d) Associating Object Repositories to an Action e) Exporting Local Objects f) Merging Repositories g) View Options h) Spying Objects i) Importing and Exporting Repositories using XML IV) QTP Testing Process 5) Planning a) Analyzing the AUT b) Implementing Automation Framework c) Creating/Selecting Test cases d) Collecting Test Data e) Object Identification Configuration Normal Identification Mandatory Properties Assertive Properties Smart Identification Base filter Properties Option filter properties Ordinal Identifier Making Tool Settings Global 6) Generating the basic Test a) Recording i. Normal Recording ii. Analog Recording iii. Low Level Recording G.C.Reddy, Test Consultant & Trainer 2
  3. 3. gcreddy@gcreddy.com iv. Record and Run Settings b) Keyword driven methodology/Shared object repository method/Preparing the script manually c) Descriptive programming/Programmatic Descriptions Entering Programmatic Descriptions Directly into Statements Using Description Objects for Programmatic Descriptions Retrieving Child Objects Using the Index Property in Programmatic Descriptions Creating Checkpoints Programmatically 7) Enhancing the Test a) Inserting Check points i. Standard Checkpoint ii. Text Checkpoint iii. Text Area Checkpoint iv. Bitmap Checkpoint v. Database Checkpoint vi. Accessibility Checkpoint vii. XML Checkpoint (From Application) viii. XML Checkpoint (From Resource) ix. Page Checkpoint x. Image Checkpoint xi. Table Checkpoint b) Inserting Output values i. Standard Output value ii. Text Output value iii. Text Area Output value iv. Database Output value v. XML Output value (From Resource) c) Adding Comments d) Synchronization i. Inserting Wait Statement ii. Inserting Synchronization Point iii. Increasing Tool Default Synchronization Time iv. Sync method (only for web) v. Selecting appropriate method G.C.Reddy, Test Consultant & Trainer 3
  4. 4. gcreddy@gcreddy.com e) Parameterization i. Data Driven Testing through Loop statements ii. Dynamic Test Data Submission through Looping iii. Data Driven Testing through Data Table iv. Importing Test Data from External files v. Creating a Database, Tables and Entering Data vi. Creating DSN vii. Importing Test Data from Databases f) Inserting Programmatic statements i. Inserting Conditional Statements ii. Inserting Loop statements iii. Using VB Script Built-in Functions g) Generating steps through Step Generator h) Inserting Transaction points Start Transaction End Transaction i) Enhancing Tests with the windows API 8) Debugging the Test a) Debug Commands Step Into Step Over Step Out b) Inserting/Removing Brake Points c) Watching variables d) Changing Variable values 9) Running the Test a) Normal execution b) Test Batch execution Test batch formation Batch execution Partial Batch execution 10)Analyzing the Test Results a) Test Result Viewer b) Analyzing Test Results c) Exporting Test Results G.C.Reddy, Test Consultant & Trainer 4
  5. 5. gcreddy@gcreddy.com d) Test Results Deletion 11)Reporting Defects a) Manual Defect Reporting b) Tool based Defect Reporting c) Integration with Quality Center V) QTP Other Features 1) Regular expressions 2) Environment Variables Built-in Variables User Defined Variables Defining, modifying and associating environment variables 3) Methods a) QTP Methods b) VB Script Methods 4) Actions Types of actions Non-reusable Actions Re-Usable actions External Actions Creating an Action Splitting Actions Renaming an Action Deleting an Action Making an Reusable/Non-Reusable Calling an existing Action Copying an Actions Action Parameters 5) Functions Preparing Procedures Associating Procedures to QTP tests Modifying Procedures Calling Procedures 6) Dynamic Handling of Object Repositories Loading Repositories directly through Utility Object G.C.Reddy, Test Consultant & Trainer 5
  6. 6. gcreddy@gcreddy.com Finding Repository Position Removing Repositories 7) Data Driven Testing through Scripting Importing Data from Flat files Importing Data from spread sheets Importing Data from Databases Ms Access SQL Server Oracle 8) File System Operations File system Object Creating Files Reading Data Writing Data Creating Folders Creating Drives 9) Recovery Scenarios Trigger events Pop-Up window Object State Test Run Error Application Crash Recovery Operations Keyboard or Mouse Operation Close Application Process Function Call Restart Microsoft Windows Creating Recovery Scenarios Associating Recovery Scenarios 10)Virtual Object Configuration Virtual Object Manager Defining a Virtual Object Removing or Disabling Virtual Object Definitions 11)Test Automation Frameworks Automation Framework G.C.Reddy, Test Consultant & Trainer 6
  7. 7. gcreddy@gcreddy.com Record & Playback or Linear Framework Modular Driven framework Keyword Driven framework Hybrid driven Framework 12)Automation Object Model VI) VB Script for QTP 1) Introduction a) Introducing VB Script b) Windows Script Host (WSH) c) Crating a script with Note pad d) Hosting Environments & Script engines e) Available Script engines 2) Comments a) Purpose of Comments b) Syntax c) Comment/Uncomment a block of statements 3) VB Script Variables a) Declaring Variables b) Option Explicit Statement c) Naming restrictions for Variables d) Scope of Variables e) Life time of Variables f) Assigning values to Variables g) Scalar Variables and Array Variables h) Dimensional Arrays i) Dynamic Arrays 4) VB Script Data Types a) Variant Sub types 5) VB Script Operators a) Operator precedence b) Arithmetic Operators c) Comparison Operators d) Concatenation Operators e) Logical Operators G.C.Reddy, Test Consultant & Trainer 7
  8. 8. gcreddy@gcreddy.com 6) Input/Output Operations a) Inputbox Function b) Msgbox Function 7) Constants a) Creating Constants b) Using Constants c) Modifying Constants 12)Conditional Statements a) If…Then…Else Statement b) Select Case Statement c) Making Decisions Using If...Then...Else d) Running a Statement if a Condition is True (single statement) e) Running Statements if a Condition is True (multiple statements) f) Running Certain Statements if a Condition is True and Running Others if a Condition is False g) Deciding Between Several Alternatives h) Executing a certain block of statements when two / more conditions are True (Nested If...) i) Making Decisions with Select Case j) Other Examples 13)Looping Through Code a) Loop statements b) Do Loops c) While…wend statement d) For…Next statement e) For Each…Next statement 14)Other Statements 15)Procedures a) Sub Procedures b) Function Procedures c) Getting Data into and out of procedures d) Using Sub and Function procedures in code 16)VB Script Built-in Functions a) Conversions b) Dates/Times c) Formatting Strings G.C.Reddy, Test Consultant & Trainer 8
  9. 9. gcreddy@gcreddy.com d) Input/Output e) Math f) Miscellaneous g) Rounding h) Strings i) Variants 17)Methods 18)Objects ADODB connection Dictionary Excel Application File system Object Network Shell Word Application XML Document 19)Classes 20)Keywords 21)Errors VB Script Runtime Errors VB script Syntax Errors 1) VBScript syntax rules and guidelines G.C.Reddy, Test Consultant & Trainer 9