QTP 9.2 Material Prepared by Sriraman K. 2 Objectives Automation – Need for automation, Rules of automation Exposure to the Automation Concepts and Kick.

Slides:



Advertisements
Similar presentations
Performance Testing - Kanwalpreet Singh.
Advertisements

Geethu Gopinath QTP An automated testing software designed for testing various software applications and environments-provides functional.
ADABAS to RDBMS UsingNatQuery. The following session will provide a high-level overview of NatQuerys ability to automatically extract ADABAS data from.
Tutorial 6 Creating a Web Form
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
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.
1 Chapter 12 Working With Access 2000 on the Internet.
Automating Tasks With Macros
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Introduction To Form Builder
Guide To UNIX Using Linux Third Edition
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
“GENERIC SCRIPT” Everything can be automated, even automation process itself. “GENERIC SCRIPT” Everything can be automated, even automation process itself.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
September 2009 QTP Automation Framework. Objective  Introduction to Automation  Benefits of Automated Testing  Automated Testing Process  Introduction.
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Automation Repository - QTP Tutorials Made Easy The Zero th Step TEST AUTOMATION AND QTP.
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
QC 9.2 Prepared By  Sriraman K. 2 Objectives Test Management Tool – What, Why, Benefits etc To make participants aware of Test Process and controlling.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automation Fundamental Concepts &
Automation Testing- QTP Rajesh Charles Batch No: Date: jan
A First Program Using C#
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Introduction to Shell Script Programming
SednaSpace A software development platform for all delivers SOA and BPM.
What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.
Introduction to QTPIVS-TRAINING Ground Rules Mute the mobile phones Stick to timelines Help each other in learning Speak out as much as possible.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Marcel Casado NCAR/RAP WEATHER WARNING TOOL NCAR.
Using QuickTest Professional USINGQTP65-STUDENT-01A.
Introduction to Test Director
AUTOMATION OF WEB-FORM CREATION - KINNERA ANGADI – MS FINAL DEFENSE GUIDANCE BY – DR. DANIEL ANDRESEN.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
Enhancing - Vuser Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Oracle Data Integrator Procedures, Advanced Workflows.
ITCS373: Internet Technology Lecture 5: More HTML.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Microsoft Access 2010 Chapter 10 Administering a Database System.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
What is WinRunner ► WinRunner is Mercury’s legacy automated testing tool ► It is similar to QTP in functionality ► WinRunner integrates with other Mercury.
XP Tutorial 8 Adding Interactivity with ActionScript.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Graphical Enablement In this presentation… –What is graphical enablement? –Introduction to newlook dialogs and tools used to graphical enable System i.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
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,
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
>>>>>>>>>>>>>>>>>>>>>>
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Perfecto Mobile Automation
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
QC – User Interface QUALITY CENTER. QC – Testing Process QC testing process includes four phases: Specifying Requirements Specifying Requirements Planning.
In this session, you will learn to: Create and manage views Implement a full-text search Implement batches Objectives.
QTP. Saturday, July 09, 2016Ashish Kumar Srivastava2 What is Automation- Test Automation is the use of software to control the execution of tests & the.
Automation Testing- QTP Rajesh Charles Batch No: Date: jan
DESCRIPTIVE PROGRAMMING IN QTP (UFT)
Working in the Forms Developer Environment
Course Name: QTP Trainer: Laxmi Duration: 25 Hrs Session: Daily 1 Hr.
Prepared ByAshish Kumar Srivastava
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
An Introduction to HP QuickTest Professional (QTP)
QTP Test Process
Presentation transcript:

QTP 9.2 Material Prepared by Sriraman K

2 Objectives Automation – Need for automation, Rules of automation Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTP

3 Need of Automation Speed – Automation Scripts run very fast when compared to human users Reliable – Tests perform precisely the same operations each time they are run, there by eliminating human error. Repeatable – We can test how the application reacts after repeated execution of the same operation Comprehensive – We can build a suite of tests that covers every feature in our application Reusable – We can reuse tests on different versions of an application, even if the user interface changes.

4 Rules of Automation Testing Tools are usually very expensive. The test manager or the test lead has to think twice before going in for automating his test effort. There are also some widely held false notions or beliefs about automation tools. In general, the golden rules that should be kept in mind in the regard are.

5 Golden Rules Product feature understanding, test planning, test case documentation, test bed setup, defect tracking, progression tests are all done in manual mode Test automation success depends on robustness of the test cases not on the test tool. Every manual step has commands in test scripts If it is not worth, DO NOT AUTOMATE. Do not build application logic in your test scripts Always have a common know base state for test cases One test script Action must address one test case.

6 What are the different tools available in the market (for functional testing)- Quick Test Professional (HP) WinRunner (HP) Robot (IBM Rational) Functional Tester (IBM Rational) SilkTest (Borland) TestComplete (AutomatedQA) QAWizard (Seapine) TestPartner (Compuware) QEngine (AdventNet) Open source tools (Sahi, Watir)

7 Life Cycle Of Automation- Analyze the Application Select The Tool Identify the session Design/ Record Test Scripts Run the test scripts Finding & Reporting the defects

8 Introduction to QTP - Developed by Mercury interactive now owned by HP Developed for web functionality QTP supports both web applications & windows applications QTP Developed in 2002, present version in the market is 9.5 Test Script developed on VB Script QTP supported Technology.NET. J2EE, Main Frame, XML, Java, Delphi ERP -> SAP, Seibel, People soft QTP Supports both Technical & Non Technical People QTP run on only windows platform not supporting UNIX, Linux etc

9 Environment needs for QTP 9.2 System Requirement : Equivalent to P3 and above Hardware Drive : 250MB of Free Memory space RAM : 512MB of RAM OS : M/S windows 2000 server with 3-4 service pack M/S windows XP with 1-2 SP M/S windows 2003 with no service pack Web Browser : MS Internet Explorer 5.5 and above Netscape Navigator 6.11, 6.22, 6.23, 7.02, 7.1 AOL 8.0, 9.0

10 Add Ins of QTP - Technology supported by the QTP By default three Add Ins are there in QTP ActiveX VB Web Additional Add ins: Java Oracle People soft.NET Terminal Emulator (RTE) SAP Siebel Delphi

11 Window Structure of QTP - 1) Test Pane 2) Active Screen 3) Data Table 4) Debug Viewer

12 Architecture Of QTP - Script(.mts file) Action1Rep1(.mtr file) Sheet1(localSheet) Parameters (Action Parameter) Shared Repository (.tsr File)Action2Rep2 Global SheetSheet2(localSheet) Environment ParameterParameters (Action Parameter) Test Parameter Action3Rep3 Sheet3(localSheet) Parameters (Action Parameter) “

13 Course Objective Object Spy Object Identification – Understanding customizing Non – Standard Objects – Understanding Way of Recognition Object Repository Simple Record and Replay Types of Record – Context Sensitive, Analog, Low Level Record Managing Script with Various Data – Parameters (DataTable) VB Scripting (String Manipulation, Msgbox, Split command, InStr, Loops, Conditions) Managing Script with Dynamic Objects – Regular Expression – Smart Identification Check Points – Standard, Bitmap, Text

14 Object Spy- Object spy is used to display or view all the physical properties and methods of an object.

15 Object Identification- Used to Map non Standard Object to Standard Object Used to configure Recognition properties for an object class. – Recognition properties are configured using Mandatory Properties Assistive properties (are used when mandatory property fails to recognize the object uniquely) Ordinal Identifier (are used when both mandatory and assistive fails to recognize the object uniquely) – Location (Represent x- coordinate of the screen or parent object Nearest to x is 0) – Index (Works based on active screen – active screen being 0 by default) – Creation Time (For web browsers, no. of instances decides the creation time)

16 Object Repository- Stores the object for the purpose of playing back Uses Logical Name and Description properties to recognize the object from script and application respectively Description Properties are created through Object Identification Repository can be managed using Per Action mode (.mtr File) and Shared Repository Mode (.tsr File) by the script

17 Object Repository Dialog Box-

18 Recording Modes - Three Modes of Recording – Context Sensitive or Normal Recording – Uses the object class and properties and method to perform action. – Analog Recording – Understands only the key or mouse movements – Relative to the screen: Desktop.RunAnalog “Track1” – Relative to the window: Window( >).RunAnalog “Track1” – Low Level Recording – Understand the x and y coordinate of the within the object on which the action is performed. Object( >).Click (22,45)

19 Record a Test

20 Record & Run Settings-

21 Run a Test and Save Results-

22 View Test Results-

23 Virtual Object- Virtual Object is used to identify the properties of similar objects in a particular Area. Example: In normal recording if we select the paint brush window, the script will look like this- window(“Paint”).Activate Window(“Paint”).Winobject(“colors”).Click 72,16 Window(“Paint”).Winobject(“colors”).Click 80,14 window(“Paint”).Close If we are using Virtual object, the script will look like this- window(“Paint”).Activate Window(“Paint”).Winobject(“colors”).Virtual Button(“RED”) Window(“Paint”).Winobject(“colors”).Virtual Button(“BLUE”) window(“Paint”).Close

24 VB Scripting Msgbox() Inputbox() String manupulation Using Variables Using Concatenation Split () Instr() Loops – For loop, Do while, Select Case Conditions – If then Else

25 Parameters – Data manipulation Script Level Parameterization – Constant – DataTable(“clmName”,dtLocal/GlobalSheet) – RandomNumber(start,End) – Environment(“Paraname”) – Action Parameter - Parameter(“ParaName”) Action Parameter – Constant – DataTable – RandomNumber – Environment – Test Parameter Test Parameter – Constant (Test Parameter can be configured only through Action Parameter) Environment Parameter – Build In – User Defined

26 Action Parameter – To create an Action Parameter – Go to Action, Right Click, Select Action Properties and give Default value to be used. – To Modify Action Parameter default value – Go to Action, Right Click, Select Action Call Properties and select the parameter for which modification is needed, select value column and click on configure value button under value. – To control the iteration of Action Sheet, Go to Action, Right Click, Select Action call properties and Run tab

27 Test Parameter &Environment Test Parameter – File->Setting->Parameter Tab – Only constant value can be used – To use the test parameter in the script, Test parameter needs to configured to action parameter. Environment Parameter – File->Setting->Environment Tab – Build in and User defined parameters – To use the environment in other machines, use export and import under environment parameter tab

28 Setting the Parameter Value-

29 Using Data Sheet (Global, Local & Location)-

30 Multiple Actions How to Create New Actions? – Creating as Independent Action (Call to New action, Select “at the end of test” radio button) – Creating as Nested Action (Call to new action, Select “After the current test” radio button) Dependent Action – One action depends on another action for want of data – Using Datatable Output Value – Using Output Parameter Output Value – Output value Select the object from active screen, Right click, Select output value At Recording time Select from menu Insert->Output Value- >Standard Output value

31 Reusable Actions How to make an action as Reusable Action? Passing Parameters for Reusable Action – Using Input Parameters – Using Output Parameters SystemUtil Commands.Exist Command Syntex of Reusable Action – RunAction “ActionName[ScriptName]”, One/Alliteration, Parameters(optional)

32 Dynamic Objects- What is Dynamic Object? When we can say, the object is dynamic? Ways to Solve those dynamic objects – SetTOProperty Parent().Object(“Logical”).SetTOProperty “propertyName”, Value – Regular Expression – Repository Parameter – Smart Identification What is Smart Identification? – It is a second level of Recognition Mechanism to recognize an object when it is failed using Description properties – It is not a permanent method to solve a dynamic object – It is an indication to the user that the object is not managed using description properties

33 Regular Expressions- This can be used where there is a pattern of Change. Regular Expressions can be used in the following areas: 1) Check Points 2) In parameterization 3) Data Driven test 4) Actions 5) Exception Handling….etc

34 Using a Regular Expression-

35 Some Regular Expressions- ExpressionCharDescription Period.Matches any single character Asterisk*Matches zero to any number of occurrences of the preceding character Plus+Matches one to any number of occurrences of the preceding character Brackets[A-Z][a-z]Matches a range of characters [0-9]Matches a range of numbers \wMatches any alphanumeric character including underscore \WMatches any non-alphanumeric character Digit\dMatches any digit \d{4}Matches exactly four digits

36 Smart Identification- Smart Identification is used as Second level of recognition mechanism. When the Quick test fails to recognize the object through description properties, it tries to identify the object using Smart identification. By invoking smart identification, system takes more time than usual time so if an object is identified in smart identification method then that object needs to be attended Two properties are available in Smart identification They are- Base Filter Properties (This property has to match) Optional Filter Properties (Atleast one of the property should be unique)

37 Synchronization Point- Synchronization point maintains the time coordination between testing process and your application process. Types of Synchronization – Sync – Wait – WaitProperty – Exist

38 Check Points- Check Point is a verification point that compares the current value of the specified property with the expected value for that property. Standard Check Point Text/ Text Area Check Point Bitmap Check point Database Check Point XML Check Point Accessibility Check Point/ Web Checkpoint

39 Checkpoint Types

40 Inserting a Checkpoint During Recording-

41 Insert a Checkpoint After Recording-

42 Identifying a Failed Checkpoint-

43 Exception Handling- It enables Quick test to detect and handle when unexpected error occurred during execution time. Types of Exception Handling: – Popup Exception Handling – Object State Exception Handling – Test Run Exception Handling – Application Crash

44 Comments & Queries- Queries are always welcome.

45 Your Voluntary Contribution To enhance the service by improving bandwidth and improve the e-learning methodology needs an investment, in case you feel this helps you, kindly contribute any amount to the below mentioned account. “Little drops of water make the mighty ocean”. Expecting your kind support, it is absolutely voluntary and optional Company : Softsmith Infotech Pvt Ltd. Bank Name : HDFC Bank Ltd Account Type: Current A/C Account No : Branch : Chennai - Kodambakkam - Tamilnadu Cust ID : Branch Code : 0574 When remitting kindly mention your name and course You can also send DD to the above mentioned name in case direct transfer is not possible. Address is available at

46 Feedback- Please spend few minutes from your valuable time to provide your feedback. It will help us to improve in next sessions. Contact Details Sriraman K Thanks & Happy Testing..