What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.

Slides:



Advertisements
Similar presentations
Auto-test Tools: Sahi and Rational Robot Ting Yu Xia Liu University of Ottawa.
Advertisements

Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Tutorial 8: Developing an Excel Application
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Key-word Driven Automation Framework Shiva Kumar Soumya Dalvi May 25, 2007.
Automation Testing Presentation Phil Hunter Phil Hunter - Automation Presentation 1.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Tests Creation. Using the following QuickTest components  Designing Tests  Keyword View  Test Objects  Active Screen  Checkpoints  Object Property.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to OBIEE: Learning to Access, Navigate, and Find Data in the SWIFT Data Warehouse Lesson 8: Printing and Exporting an OBIEE Analysis This.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Understanding of Automation Framework A Storehouse of Vast Knowledge on Software Testing and Quality Assurance.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automation Fundamental Concepts &
Some Basic Database Terminology
Automation Testing- QTP Rajesh Charles Batch No: Date: jan
Microsoft Access Intro Class 1 Database Concepts.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Classroom User Training June 29, 2005 Presented by:
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to QTPIVS-TRAINING Ground Rules Mute the mobile phones Stick to timelines Help each other in learning Speak out as much as possible.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
QTP 9.2 Material Prepared by Sriraman K. 2 Objectives Automation – Need for automation, Rules of automation Exposure to the Automation Concepts and Kick.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Winrunner Usage - Best Practices S.A.Christopher.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Using QuickTest Professional USINGQTP65-STUDENT-01A.
CHAPTER TEN AUTHORING.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
PHP Features. Features Clean syntax. Object-oriented fundamentals. An extensible architecture that encourages innovation. Support for both current and.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
What is WinRunner ► WinRunner is Mercury’s legacy automated testing tool ► It is similar to QTP in functionality ► WinRunner integrates with other Mercury.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Visual Basic for Application - Microsoft Access 2003 Finishing the application.
Create the Basic Test USINGQTP65-STUDENT-01A. QuickTest Professional Workflow Gather relevant test information What are the test requirements? Where can.
How QuickTest Works with Objects USINGQTP65-STUDENT-01A.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Chapter 9 Working with Databases. Copyright © 2011 Pearson Addison-Wesley Introduction In this chapter you will learn: – Basic database concepts – How.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Automation Testing- QTP Rajesh Charles Batch No: Date: jan
Excel Tutorial 8 Developing an Excel Application
June 17, 2009 Office 2007 Tips & Tricks.
Chapter 2: The Visual Studio .NET Development Environment
Introduction to OBIEE:
Working in the Forms Developer Environment
Understanding of Automation Framework
BASIC INFORMATION ABOUT DATABASE MANAGEMENT SOFTWARE
1. Introduction to Visual Basic
Course Name: QTP Trainer: Laxmi Duration: 25 Hrs Session: Daily 1 Hr.
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Selenium Web Test Tool Training Using Ruby Language
Chapter 10 ADO.
Database Applications
An Introduction to HP QuickTest Professional (QTP)
Presentation transcript:

What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury testing solutions including:  TestDirector/Quality Center  WinRunner  LoadRunner ► Utilizes an add-in architecture for compactness and extensibility

Types of Testing ► Manual  Usage of steps defined within test cases to manually test the application to ensure that it functions properly ► Automated  Automation of the manual testing process to all unattended execution and ensure repeatability

Benefits of Automated Testing ► Speed  Automated tests are fast and can execute at a speed faster than a person can click ► Reliable  The tests can perform the exact same steps every time without concern about human error ► Repeatable  You run the same test against multiple builds/versions of an application ► Reusable  Can be reused as a sub-part of different tests

What Should Be Automated ► Good candidates  Tests executed for each build  Business critical tests  Tests that are difficult/tedious to perform manually ► Bad candidates  Tests without predictable results  Test that require variable input/responses from the tester  Tests that perform operations in multiple environments

QTP Environment ► Windows  C++, Visual Basic, Java,.NET ► Web  Web Applications, Web services, Flash ► Other technologies  SAP, Siebel, Oracle, Peoplesoft, ActiveX

Add-in Architecture ► Enables QTP to provide support for multiple technologies. ► Add-ins are software that need to be installed on a system that has QTP. It then becomes integrated with the QTP environment. ► QTP is sold with the ability to understand a few technologies, add-ins provide QTP with the ability to understand additional technologies ► Users are able to select the specific add-ins for the technologies they are testing thereby reducing the memory footprint of QTP

QTP Add-ins ► When QTP is started, you should select only the add-ins for technologies that are used with your application. ► Some of the available add-ins are  ActiveX - For testing software written using ActiveX (also known as COM) technology. This technology allows people to create objects in one language and use those objects within other languages/applications  Visual Basic - For applications written in the Visual Basic language  Web - For testing web applications written in any language. In web applications, we interact with the application though a web browser and so the web application can be written in any language.

Testing Process ► Create Object Repository ► Create Tests  Record  Edit ► Insert checkpoints ► Insert synchronization points ► Insert output values ► Parameterize test ► Include VBScript code ► Debug test ► Run tests

Introduction To ExpenseCalculator ► Windows based application written in Visual Basic ► Available at ► Allows individuals to track expenses ► Uses a local Access database

What is a QTP Test ► It is called a test script but is actually a folder containing several files ► Broken down into subparts known as 'Actions‘ ► Internally represented using the VBScript programming language

Actions ► A test is broken into a series of ‘Actions’  Actions can be renamed to reflect what they do  Actions can be invoked multiple times within a test  Actions can be marked as reusable so they can be called from other tests ► Only reusable actions can be called from other tests

Overview QTP Tool ► Menus ► Toolbar  Provides easy access to items on the menus ► Record & Run Settings ► Test Settings ► Tools

QTP Tool [Code Window] ► Provides a WYSIWYG editor to use in writing your test script  Keyboard view ► Provides an icon-based representation of the code being written. This is often the easiest code view for non-programmers  Expert View ► Provides a VBScript code based representation of the code being written. This is the most flexible code

QTP Tool [Views] ► Active Screen  Provides screenshots of all objects recorded and also supports object highlighting ► Data Table  Shows the data file that can be used to configure the application ► Debug Viewer  Provides tools to debug code and view the value of variable/expression during code execution

Create Object Repository [STEP 1] ► Intro to Object Oriented Programming  Objects are a representation of every item found in an application  Objects are visual (e.g. Button, Textbox) and non-visual (e.g. Dictionary, Reporter) elements within an application. Each object has the following elements ► Properties, Methods & Events  All objects must have a unique name and belong to a class.  Objects are referenced in code using dot notation objectName.Method()

Objects ► Properties  These are characteristics of the object e.g. the text on a button. QTP uses this to recognize the object ► Methods  These are built in functionality of the object. The VBScript code that we write (or record) actually makes calls to the methods of an object e.g. Reporter.ReportEvent() Here ReportEvent is the method of the Reporter object ► Events  These are what can be done to an object. This is used by programmers to determine what an object does in response to an action you perform. It is however unused in QTP.

QTP Object Identification Process ► Object Identification  The tool determines what properties of objects are recorded ► Object Spy  Allows users to view the property of an object without recording it ► Object Repository  Holds information recorded about each object allowing the test to identify the object during execution

Creating an Object Repository ► Per Action  An object repository is created for each action  This means that multiple object repositories can be created per test ► Shared  A single objected repository is used for multiple tests

CREATE TEST [STEP 2] ► Record Steps ► Edit  Insert synchronization points  Insert checkpoints  Insert output values  Parameterize values  Include VBScript code

Record ► Read the outline of steps to perform ► Practice performing the steps to minimize error ► Choose record mode  Context Sensitive  Analog  Low level ► RECORD ► Stop, Save test, playback

Edit Test ► Insert synchronization points  Used to slow down execution of a test script ► Checkpoints  Used to check expected value of a step against the actual value at a specific point during execution ► Insert output values  Used to retrieve values from the AUT ► Insert Parameterization  Allows you to store data in the data table ► Include VB Script code  Last option. Very powerful.

Synchronization Point ► Specific time  Uses the wait function to pause the test for a specific amount of time [in seconds] ► Until an event occurs  Pauses until a specific property of an object has a specific value

Checkpoints ► Standard  Checks multiple properties of a single object ► Text  Checks part or all the text within an object ► Text Area  Checks part or all the text within a text area object ► Bitmap  Checks the visual layout of an entire object or a portion of the object ► Database  Checks data in the database ► Accessibility  Checks web content accessibility against W3C accessibility rules for the disabled ► XML  Checks files using XML rules

Output values ► Standard  Stores a single property of an object in the data table ► Text  Stores part or all the text of an object in the data table ► Text Area  Stores the content of a text area in the data table ► Database  Retrieves content from a database [using a SQL query] and stores it in the data table ► XML  Retrieves content from an XML file and store it in the data table

Parameterize Data ► Allows your test to read data from the data table. ► The data table is an Excel spreadsheet file editable from using Excel or any other application that can edit a.xls document ► The DataTable is encapsulated in QTP in the DataTable object. This object contains a sheet for every action in the test as well as a globally accessible sheet known as the global sheet ► Each sheet in the DataTable contains several columns and rows. ► The columns can be renamed by double-clicking on the header of the column.

VBScript Coding ► When the tools provided by QTP are not sufficient to test an application, VBScript coding can be used. ► VBScript was created as a web programming language by Microsoft and licensed by many companies for use in their tools.

Recap ► Checkpoints - check ► Synchronization points - wait ► Output values – retrieve information ► Parameterization – configuration data ► VBScript – adds programmable logic