Presentation on theme: "Cognizant Reusable Automation Framework for Testing C.R.A.F.T."— Presentation transcript:
1 Cognizant Reusable Automation Framework for Testing C.R.A.F.T.
2 C.R.A.F.T – Introduction What? Why? Who? Cognizant’s proprietary test automation frameworkStands for Cognizant Reusable Automation Framework for TestingFollows a hybrid approach by combining the best practices of keyword driven and data driven approachesTool agnostic frameworkWhy?C.R.A.F.T greatly improves the quality of test automation through a well-defined set of design patterns and best practicesC.R.A.F.T focuses on increased participation from business users and functional consultants in the automation processC.R.A.F.T has been in place for nearly a decade, and has matured over a wide range of project implementations across various domainsC.R.A.F.T – Introduction* Any automation framework – including C.R.A.F.T – is predominantly focused on improving automation quality, and should not be looked at from a cost savings perspective.Who?C.R.A.F.T has been created by the Research and Development team from Cognizant’s Automation Centre of ExcellenceC.R.A.F.T is continuously enhanced and updated by the R&D team, based on feedback from the end users of the frameworkC.R.A.F.T has a dedicated helpdesk to assist end users with the framework implementation and troubleshooting
3 C.R.A.F.T – Architecture Execution Flow <Test case details>Business Flow3<Keyword Driven>Test Data5<Data Driven>Data drivingLibrarySupport Libraries4<Generic reusable functions>Allocator1<Batch Execution Controller>Run Manager.xls2<Batch Run Configurations>Test Scripts2<One Script per Testcase>CustomizedTestResults6<HTML, Excel>ComponentGroupsBusinessComponentsBusiness Keywords3<Building blocks of test cases>ReportingUtilityCoreDriver Script3<Keyword processorwith in-built error handling>C.R.A.F.T – ArchitectureExecution FlowThe Allocator is the entry point of the batch executionThe Allocator reads the specified batch run configuration from the Run Manager and invokes the Test Scripts accordinglyThe 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 specifiedThe Business Keywords leverage the Support Libraries (mainly the data driving and reporting libraries) as requiredThe Business Keywords consume the Test Data specified in the datasheetsThe Test Scripts publish the Test Results at the end of every test execution
4 C.R.A.F.T for HP QTP (VBScript) FeaturesBenefitsHybrid framework approach (Keyword + Data driven)Facilitates effective BA-QA interactionTest cases are broken down into business keywordsEnsures increased reusability and reduced maintenance effortKeywords are strung together in an Excel sheet to form automated test cases based on the business flowSimplifies the process of creating end-to-end automated scripts and improves the automation qualityCentralized test data in Excel, with provision to reuse any data common to multiple test casesEmpowers functional consultants to configure test data easilyRobust error handling with automatic screen capture of failuresEnables uninterrupted batch execution of scriptsBatch execution engineProvides one-click execution facilityIntegrates with Windows Scheduler and MS Outlook to facilitate scheduled script execution and triggers for executionEnables unattended overnight execution and on-demand execution of scripts*Customized HTML/Excel based reportsHelps in easy analysis of test resultsOut-of-the-box integration with HP QC/ALMLeverages the end-to-end test management features of QCHP QTP(VBScript)C.R.A.F.T for HP QTP (VBScript)* QTP cannot execute scripts on a locked system; these features require the system to be kept unlocked