CRAFT - Cognizant

Download Report

Transcript CRAFT - Cognizant

Cognizant Reusable Automation
Framework for Testing
C.R.A.F.T.
Thank You
©2011, Cognizant
What?
C.R.A.F.T – Introduction
 Cognizant’s proprietary test automation framework
 Stands for Cognizant Reusable Automation Framework for Testing
 Follows a hybrid approach by combining the best practices of
keyword driven and data driven approaches
 Tool agnostic framework
Why?
C.R.A.F.T greatly improves the quality of test automation through a
well-defined set of design patterns and best practices
C.R.A.F.T focuses on increased participation from business users and
functional consultants in the automation process
C.R.A.F.T has been in place for nearly a decade, and has matured over
a wide range of project implementations across various domains
Who?
 C.R.A.F.T has been created by the Research and Development
team from Cognizant’s Automation Centre of Excellence
 C.R.A.F.T is continuously enhanced and updated by the R&D team,
based on feedback from the end users of the framework
 C.R.A.F.T has a dedicated helpdesk to assist end users with the
framework implementation and troubleshooting
Run Manager.xls2
<Batch Run Configurations>
C.R.A.F.T – Architecture
<Test case details>
Allocator1
<Batch Execution Controller>
<Test case details>
Support Libraries4
<Generic reusable functions>
Test Scripts2
<One Script per Testcase>
Driver Script3
<Keyword processor
with in-built error handling>
Customized
Test
Results6
<HTML, Excel>
Business Flow3
<Keyword Driven>
Data driving
Library
Reporting
Library
Business Keywords3
<Building blocks of test cases>
Core
Library
Utility
Library
Business
Components
Component
Groups
Test Data5
<Data Driven>
Execution Flow
1. The Allocator is the entry point of the batch execution
2. The Allocator reads the specified batch run configuration from the Run Manager and
invokes the Test Scripts accordingly
3. The Test Scripts in turn call the Driver Script, which reads the Business Flow of the
test case and passes control to the relevant Business Keywords as specified
4. The Business Keywords leverage the Support Libraries (mainly the data driving and
reporting libraries) as required
5. The Business Keywords consume the Test Data specified in the datasheets
6. The Test Scripts publish the Test Results at the end of every test execution
C.R.A.F.T for HP QTP (VBScript)
Features
HP QTP
(VBScript)
Benefits
Hybrid framework approach (Keyword
+ Data driven)
Facilitates effective BA-QA interaction
Test cases are broken down into
business keywords
Ensures increased reusability and
reduced maintenance effort
Keywords are strung together in an
Excel sheet to form automated test
cases based on the business flow
Simplifies the process of creating end-toend automated scripts and improves the
automation quality
Centralized test data in Excel, with
provision to reuse any data common
to multiple test cases
Empowers functional consultants to
configure test data easily
Robust error handling with automatic
screen capture of failures
Enables uninterrupted batch execution of
scripts
Batch execution engine
Provides one-click execution facility
Integrates with Windows Scheduler
and MS Outlook to facilitate
scheduled script execution and e-mail
triggers for execution
Enables unattended overnight execution
and on-demand execution of scripts*
Customized HTML/Excel based reports Helps in easy analysis of test results
Out-of-the-box integration with HP
QC/ALM
Leverages the end-to-end test
management features of QC
* QTP cannot execute scripts on a locked system; these features require the system to be kept unlocked
Thank you
Thank You
©2011, Cognizant