qtp&uft automation framework

of 14 /14
UFT Automation Framework 2012 Zhang Yu Tao

Upload: zhang-yu-tao

Post on 14-Apr-2017

286 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: QTP&UFT Automation Framework

UFT Automation Framework

2012Zhang Yu Tao

Page 2: QTP&UFT Automation Framework

AUTOMATION TESTING FRAMEWORK

2

Description:The Automation Testing Framework is based on BPT (Business

Process Testing) method.

The Business Process Testing model is role-based, allowing non-technical Subject Matter Experts (working in Quality Center) tocollaborate effectively with Automation Engineers (working in QuickTest Professional). Subject Matter Experts define and

document business processes, business components, and business process tests, while Automation Engineers define the required resources and settings, such as shared object repositories, function libraries, and recovery scenarios. Together, they can build, data-drive, document, and run business process tests, without requiring programming knowledge on the part of the Subject Matter Expert.

Testing Tools: HP Functional Test V12 – UFT / QTP (Quick Test Professional)

Environment : Win XP/Vista/7 , Internet Explorer 7/8/9/10/11

Page 3: QTP&UFT Automation Framework

BPT WORKFLOW CONVERTS TO LOCAL ONE:

3

Page 4: QTP&UFT Automation Framework

BPT SCRIPT STRUCTURE:

4

Page 5: QTP&UFT Automation Framework

DIAGRAM OF AUTOMATION TESTING FRAMEWORK:

5

Page 6: QTP&UFT Automation Framework

QTP FRAMEWORK IN ECS AUTOMATION:

6

Page 7: QTP&UFT Automation Framework

FOLDER STRUCTURE:

7

Version control: Setup SVN on file server to realize version control and download all resources to testing server for development.

Page 8: QTP&UFT Automation Framework

APPROACH FOR TEST AUTOMATION

8

Description Approach for Test Automation is used for building a strategy for

automation starting from the Requirement phase till the deployment

phase. Approach for automation begins with finding out the conditions

and business rules given by the client and grouping similar conditions,

business rules together as Test Scenarios.

Page 9: QTP&UFT Automation Framework

Q&A

Requirement gathering from Client Understanding and Analyzing the Requirement Grouping the requirement into Test cases Select manual case for Automation Preparing the Design for Automation Building Scripts depending on the Design Review of Scripts at Offshore Run and debug Scripts Run automation scripts / scenarios Delivery test report to the Client

Page 10: QTP&UFT Automation Framework

DIAGRAM OF APPROACH FOR TEST AUTOMATION:

10

Identification of Test Cases for Automation

Identification of Common Functionality

Coding Standards, Naming Conventions & Templates

Application Login, Logout, Common Functionality Related code etc

Tool & Application Settings, Restoring, Object Repository, Recovery etc

General library containing String handling, Date handling, File Handling, Data Table handling

Error handling, Log Reporting, messaging etc

Script Development / Debug

Building the Re-Usable Library

Deliver the script after Verification & Validation

Page 11: QTP&UFT Automation Framework

REPORTING

Description

Run all scripts by self-development tool in Test Server. Save results file into local servers’ folder. Generate result’s data and send standard format report via email. The report can be stored in an EXCEL file:

11

Page 12: QTP&UFT Automation Framework

12

REPORTING

Page 13: QTP&UFT Automation Framework

RESPONSIBILITIES:

Leader: Organize and manager team work, assign tasks, report to manager.Part of detail tasks like: framework design, coding for common function library and scripts. In charge of manager server, DB and version control to automation testing.

ATE: Pick up manual case for automation and review with Manual test case designer.Execute manual case and update step if necessary.Split manual case into business component for automation.Build up / update resources and scripts.Combine business components to business process tests.Run and debug.Follow the progress and report to leader.

13

Page 14: QTP&UFT Automation Framework

Q&A