Automation Fundamental Concepts QTP At A Glance Day

  • Slides: 30
Download presentation
Automation Fundamental Concepts & QTP At A Glance - Day 1 • Prepared By

Automation Fundamental Concepts & QTP At A Glance - Day 1 • Prepared By : Manjeet Kumar • Created On : 27 -09 -2010 © 2004 Hewlett-Packard Development Company, L. P. The information contained herein is subject to change without notice

Automation Fundamental Concepts q What is Test Automation ? § Software Test Automation is

Automation Fundamental Concepts q 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 q Automation saves time and effort which results in reduction of

Automation Fundamental Concepts q Automation saves time and effort which results in reduction of the Test life cycle… q 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 q Automation life cycle is a subset of the entire test

Automation Fundamental Concepts q Automation life cycle is a subset of the entire test life cycle… q Automation planning can be initiated in parallel to the test planning phase… q 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 q When Automation is applicable? § Regression Testing Cycles are

Regression Testing & Automation q 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

QTP At a Glance …. . Introduction to QTP (Quick. Test Professional) “The Mercury

QTP At a Glance …. . Introduction to QTP (Quick. Test Professional) “The Mercury advanced keyword-driven testing solution” Technologies Supported Default Support 1. Standard Windows applications 2. Web objects / Applications 3. Active. X controls 4. Visual Basic applications Additional Quick. Test add-ins Support, 1. Java 2. Oracle 3. SAP Solutions, 4. . NET Windows 5. Web Forms, 6. Siebel, 7. People. Soft, 8. Web services, and terminal emulator applications.

Testing Process with QTP Quick Test Pro involves 3 main stages: Creating Test scripts

Testing Process with QTP Quick Test Pro involves 3 main stages: Creating Test scripts Running Tests Analyzing Test Results

Testing Process with QTP Creating Tests • Create a test script by recording a

Testing Process with QTP Creating Tests • Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP. • Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTP’s Keyword View.

Testing Process with QTP Running Tests & Analyzing Test Results • Running Tests: Once

Testing Process with QTP Running Tests & Analyzing Test Results • Running Tests: Once the test scripts are recorded / created, next step is to execute them…While running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts)… • Debugging Test : To identify and eliminate the defects in the test scripts. • Analyzing Test Results: Once the test scripts are executed, test results and the summary can be viewed for result analysis.

Quick Quiz 1. What is Test Automation? 2. What is Testing Process in QTP

Quick Quiz 1. What is Test Automation? 2. What is Testing Process in QTP ?

Add-in Manager • Default Add-ins − Active. X − Visual basic − Web •

Add-in Manager • Default Add-ins − Active. X − 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

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 q Recording Modes − Normal −

Quick Test Professional - Record & Run Modes q Recording Modes − Normal − Analog − Low level q Run Modes − − − Normal Fast Update

Quick Test Professional - Options General q Best Practices for General Options: − Deselect

Quick Test Professional - Options General q Best Practices for General Options: − Deselect all check boxes except “Save data for integrating with performance testing …” and “Display Add-in Manager on startup” which is default setting. − Click on “Restore Layout” button to reset screens to the initial setting when Quick. Test was first installed.

Quick Test Professional - Options Run

Quick Test Professional - Options Run

Quick Test Professional - Options Run q Best Practices for Options for Run Mode:

Quick Test Professional - Options Run q 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"

Record and Run Settings

Record and Run Settings

Record and Run Settings q Best Practices for Record & Run Settings, − Set

Record and Run Settings q 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 Test Record and Run settings

Quick Quiz 1. What are the default Add-ins in Add-in manager a. Active x,

Quick Quiz 1. What are the default Add-ins in Add-in manager a. Active x, Web, Visual Basic. b. . Net, SAP, Oracle. c. Siebel.

QTP - Main Window

QTP - Main Window

QTP - Main Window

QTP - Main Window

QTP - Main Window q Test Pane: § Test Pane contains two labs to

QTP - Main Window q Test Pane: § Test Pane contains two labs to view the tests, - Keyword View - Expert View q Keyword View: § Quick Test Pro displays your test in the form of a collapsible, icon based tree… q Expert View: § Quick Test Pro displays the source code (VB Script) of the tests in this view.

QTP - Main Window

QTP - Main Window

QTP - Main Window q Data Table : Data table assists in Parameterizing the

QTP - Main Window q Data Table : Data table assists in Parameterizing the tests… q Debug Viewer Pane : It assists in debugging tests with the help of Watch Expressions, Variables, and Command.

Quick Test Pro Commands q Quick Test Pro Commands : The Quick Test Pro

Quick Test Pro Commands q Quick Test Pro Commands : The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar. q File Tool bar : test. File tool bar contains buttons for managing the

Quick Test Pro Commands q Test Tool bar : Test tool bar contains buttons

Quick Test Pro Commands q Test Tool bar : Test tool bar contains buttons for the commands used when creating or maintaining the tests…

Quick Test Pro Commands q Debug Tool Bar : It contains buttons for commands

Quick Test Pro Commands q Debug Tool Bar : It contains buttons for commands used when debugging the steps in the tests…

Quick Test Pro Commands q Action Tool Bar : To view all actions in

Quick Test Pro Commands q Action Tool Bar : To view all actions in the test flow or to view the details of a selected action…

Thank You

Thank You