expert training program - miracleindia.com training program [qtp/alm] course overview ... setup...

10

Upload: phamkhanh

Post on 10-Apr-2018

229 views

Category:

Documents


3 download

TRANSCRIPT

EXPERT TRAINING PROGRAM [QTP/ALM]

COURSE OVERVIEW

Automation and Automation Concepts ● Introduction to Test Automation ● Test Automation Truths or Myths ● Where to use Test Automation and Where Not ● Test Automation Process ● What is HP-QTP

Preparing to Record ● Information About Add ins, Licenses ● Review Documented User Steps ● Prepare the Test Environment ● Identify the Application Under Test (AUT) ● QTP’s Recording Process ● QTP’s Replay Process ● Normal Recording, Low Level Recording & Analog Recording

Working with Objects ● Identify Objects and their Properties ● Describe Test Object Model

● Mandatory & Assistive Properties ● Smart Identification – Base & Optional Filter Properties ● Ordinal Identifier

● Understanding Virtual Objects

● Virtual Object Manager ● Creating Virtual Object ● Deleting and Disabling Virtual Objects

Creating Basic Test ● Create and Execute Basic Tests ● Understand QuickTest Results

Solving Object Recognition Problems ● Use Analog Recording ● Use Low-level Recording ● Use a Bitmap Checkpoint ● Work with Virtual Objects

Working With Object Repository (O.R)

● Concept & Components ● Test & Run Time Objects ● TO & RO properties ● Object Spy ● Describe Local Versus Shared Object Repositories ● Associate Repository to an Action ● Use the Object Repository Manager ● Limitation of O.R

Descriptive Programming ● What is descriptive programming? ● Benefits of descriptive programming

Use Of ● Child Objects

Using Object Repository Manager (ORM) ● Working With Shared Objects ● Working With Local Object ● Working with Merge Tool ● Working With Object Properties

Adding Synchronization

● Add synchronization steps ● Set Global Synchronization Timeout ● Method 1 – Using the Sync method ● Method 2 – Using the Wait statement ● Method 3 – WaitProperty method ● Checking Object Existence ● Difference between Browser & Page Sync

Adding Steps without Recording ● Add Steps Using Keyword View ● Add Steps Using the Step Generator

Creating Tests on a Web Application, discuss differences in: ● Setup ● Add-Ins ● Object Recognition ● Synchronization

Using Data Table Object ● Design & Run Time DataTable ● Global & Local DataTable ● Controlling Global & Local DataTable Iterations ● Data table object Methods & Properties ● DataTable Formatting ● Using External datasheets

Checkpoints

Types of Checkpoints with Real Example Checkpoints Availability at Recording and Editing Time Controlling Web Checkpoints Limitation of Inbuilt Checkpoints Create a Custom Checkpoint Compare Captured Values with Expected Values Use Debugging Tools Report the Step Outcome with a Reporter Updating Checkpoints Parameterize Checkpoint Expected Value Use Regular Expression in Checkpoint

Using Database Checkpoints ● Define Database Checkpoints ● Create SQL Queries ● Insert a Database Checkpoint ● Parameterize a Database Query

Using Parameters

● Use Test & Action Parameters ● Use Data Driver ● Random Numbers ● Environment Variables ● Controlling DataTable Iterations Without Setting

QTP Environment Variables ● Types of Environment Variables ● Environment Object ● Defining, modifying and Associating Environment Variables ● Loading Environment File During Run-time (dynamic handling) ● Environment Variable using (.ini Ext. and .xml) through Script

Active Screen ● Adding Checkpoint ● Output Values

Actions

● What are Actions ● Types of Actions ● Inserting Calls to Actions

● Insert Call to New ● Insert Call to Existing ● Insert Call to Copy

● Creating an Action ● Splitting Actions ● Renaming an Action ● Deleting an Action ● Making an Reusable/Non-Reusable ● Copying an Actions ● Action Parameters

Recover Scenarios ● When to use recovery scenarios? ● Limitations of Recovery Scenario ● Default Recovery Scenarios ● Associate a recovery scenario with a test ● The Recovery object ● Recovery Function Calls ● Error Handling ● Use Of Regular Expression

Debugging the Script

● Watch ● Variable ● Command ● Breakpoints ● Step Into, Step Out, Step Over

ADVANCED CONTENT – QTP Descriptive Programming

● Benefits ● Static DP & Dynamic DP ● Using Collection Objects ● Dynamic Object Handling ● Child Object ● Use Of Regular Expression

Usage of JavaScript

● Interpret HTML DOM of Web Page ● Understanding Document Object ● Understanding Element Object & Its Collection ● Retrieving Elements Using Its DOM

Dictionary Objects

● Concepts ● Need ● Create & Implement Dictionary Object for Application Object ● Methods & Properties ● How Dictionary Object is Different Then Array

Function Libraries

● Creation of Library File ● Associating Library With Test ● Dynamically Loading Libraries Locally At Run Time ● Dynamically Loading Libraries Globally At Run Time ● Using Option Explicit Statement ● Creating General Functional Libraries ● Creating Project Specific Functional Libraries

WebTables

● What is WebTable ● Reaching To WebTable ● Finding Cells in WebTable ● Exporting WebTable into DataTable ● Clicking Any Cell ● Create Specific Functions To Work With WebTable

Automation Object Model (AOM)

● What is AOM ● Automate QTP at Run Time By Scripting ● Setting of Action Setting At Run Time ● Setting of Test Setting AT Run Time ● Passing Arguments in Test Cases

Databases

● Connecting to a Database ● Building Connection Strings ● Fetching a Recordset ● Exporting the Results of a Query to Data Table ● Using Stored DB procedure

Database Object Model

● ActiveX Data Objects ● ADODB Connection Object & Recordset Object ● Test Database Creation & Collecting Test Data ● Databases Connections (Ms-Access, SQL Server and Oracle) ● Data Driven Testing by fetching Data from a Database

Working with Microsoft Excel

● MS-Excel Automation Object Model ● MS-Excel’s Objects and their Properties ● Available Methods ● Use Excel Sheet as Database ● Create an Excel File ● Read an Excel spread sheet ● Write data to an Excel spread sheet ● Add formatted data to a spread sheet ● Sort Excel worksheet ● Data Driven Testing by fetching Test data from an Excel file ● Compare Two Excel files ● Using Macro Programming

Other Topics

● Cross Browser Testing ● How To Launch Browsers ● Handling of Pop Up’s ● Identify Broken Links & Images in Web Page ● Creating Snapshots

Working With HP-QC

● Understanding QC ● Connecting QTP and QC ● Creating Automation script from QC ● Executing Automation script/suite from QC ● Analysing result from QC ● QC Paths ● Relative Paths in QC ● Using QC Util Object ● Understanding Open Test Architecture ● Understanding TD Connection, Command & Recordset Objects ● Downloading Files from QC At Run Time ● Navigating All Tests in Test Lab ● Searching & Execute Specific Test in Test Lab

ADVANCED CONTENT – VBScript VBScript

● What is VBScript and how to run VBScript? ● Scripting Languages vs. Programming Languages ● Basic Features of VBScript ● Hosting Environments & Script Engines ● Creating & Running a Script

Data Types, Variables in VBScript ● VBScript data types ● Declaring Variables and Option Explicit Statement ● Assigning Values to Variables ● Scalar Variables and Array Variables

Arrays

● Dynamic Arrays ● Working with Arrays, Fixed length arrays, Dynamic Arrays with examples ● Single & Multi-Dimensional Arrays

Conditions & Looping

● Use Conditional Statements Like Select Case, If-Else ● User Looping Statements Like For, While. ● Optional arguments in VBScript

VBScript Procedures

● Types of Procedures ● Internal & External Functions ● Creating Library files ● Creating Sub Procedures ● Creating Function Procedures

VBScript Objects

● Err Objects with Methods and Properties ● Match Object with Methods and Properties ● Regular Expression Object with Methods and Properties ● File System Object – Working With Files ● Using ADODB objects ● Using WSH & WScript

VBScript Statements Call, Dim, Do Loop, Execute, Exit, If then Else, For Next, Set , While Wend, With, option explicit, On Error Resume Next, On Error Go To 0, Dim, Redim, Public, Select Case, Methods VBScript Functions Is array, is numeric, is date, is empty, Now, Ltrim, Rtrim, Trim, Mid, Split, LBound, UBound, Lcase, Ucase, Array, Date, Instr, Cint, Cdbl, Cdate, Csng, LBound, UBound, Cstr etc.

ADVANCED CONTENT – AUTOMATION FRAMEWORK

Automation Frameworks

● Data Driven ● Script Modularity ● Keyword Driven ● Hybrid

Automation Framework Concepts ● Benefits ● How to Approach ● Implement Framework ● Automate scenarios using Framework

Note: Practical implementation of all above concepts will be done by automating an application with self-created Automation framework.