SlideShare a Scribd company logo
1 of 33
Download to read offline
Centralized Test Automation
    using Hybrid Model




           Bharathi Easw aran




              IBM Confidential


                                 1
Agenda
    Automation Decision Making
    Challenges of Automation
    Benefits of automation
    Components of Automation testing
    Reasons for Automation failure
    Successful Automation Testing
    Automation Decision making Process
    Automation Guidelines for Testers
    Identify Test Cases to automate
    Hybrid Framework Approach
    Elements of a Framework




                                         2
Factors Decides Automation Testing




                Test Automation




                                     3
Challenges in Test Automation




                                4
Benefits of Automation




                 AS ALPS | Mar 15, 2012 | IBM
                 Confidential                   5
Components of Automation Testing

Automation Frame Work :
Automation Framework is a process of Structuring and
Organizing Scripts to increase the level of reusability
and readability of scripts.
Tool :
Is a mechanism used to simplify and speed the effort
required for testing.
Regression Suite :
A collection of Regression scenarios in the form of
automated build




                                                          6
Reasons Why Automation Testing Might Fail ?

While Talking about automation decision making, we have to list
out the reasons for automation failure. This activity will help you
to create a quality in automation testing.

Automation Failure Leads to..

•   Effective Test Execution can’t be continued
•   Unable to achieve the defined ROI
•   Decrease the defect finding Rate
•   Dissatisfaction with Client




                                                                      7
Successful Automation Testing




                                8
Test Automation at Project


   Requirement                             Framework          Automation Suite
                    Tool Compatibility                           creation           Delivery
    Analysis                               Compatibility




• Products                                Select
  Functionality   • Record a Script       Framework           • Setup the        • Automation
  Study             with the available                          Automation         framework
                    tool for core                               Environment      • Regression
                    functional flow      • Project duration   • Create             Suites
                    as per business      • Project Size         automation       • User Manual
                  • Run the recorded     • Test data            suites           • Documents
                    scripts multiple       Management         • Debug the          for Process
                    times with           • Business             suites
                    different test                            • Validate the
                                           requirement
                    base                                        suites
                                         • Automation
                  • Validate the
                                           Budget
                    compatibility
                    between tool and
                    the application
                  • 80% - 90% of the
                    test objects
                    should be able to    Create a POC
                    identified by the
                    tool                   Select
                                           Framework

                                                                                                 9
Automation Guidelines for Testers


          Modularize test scripts for multiple execution combinations.
         Identify and abstract common functions used across multiple
          test scripts.
         Structure scripts with minimal dependencies to ensure scripts
          can run unattended even when multiple failures occur.




          Decouple complex business function testing from navigation,
         limit-testing, and other simple verification and validation
         activities.
         Abstract and decouple test data from the test scripts.




          follow the consistency in Process.
         Maintain Logs and Documents.
         Analyze and evaluate the Failures.




                                                                         10
Guidelines to Identify Test Cases to automated

Each regression test case/scenario should be validated based on the Checklist.



       Validation                                               Yes/No
       Accurate Expected Results

       Clear Functional Requirement

       Consistent Functional Behavior

       Dependence on other systems

       Core functional component

       Test Data Availability and Connectivity




                                                                                 11
Centralized Test Automation using
          Hybrid Model




                  IBM Confidential


                                     12
Hybrid-Automation Framework
Automation Framework :
A framework can be a wrapper around complex internal architecture which makes end user to interact with
system easily. It also define guidelines and set standards for all phases of ADLC(automation development life
cycle).

Hybrid-Framework :
The hybrid Test automation framework is what most frameworks evolve into over time and multiple projects.
The most successful automation frameworks generally accommodate both Keyword driven as well as Data
driven This allows data driven scripts to take advantage of the powerful libraries and utilities that usually
accompany a keyword driven architecture. The framework utilities can make the data driven scripts more
compact and less prone to failure than they otherwise would have been.



                                   Driver Script




                Test                  Test                   Test
              Scripts 1             Scripts 2              Scripts 3



                                    Function Library                                   Data

                     Hybrid Automation Framework - Diagram
                                                                                                                13
Centralized Automation Framework
Au to m atio n S crip t e ncap su latio n :
Fu nctio n Lib rarie s, S crip ts all are e ncap su late d co m p o ne nts,
U se rs w ill b e ab le to acce ss o nly th e S crip ts re late d to the ir
te sting u se r g e t p re ve nte d fro m acce ssing th e e ntire fram e w o rk
scrip ts.


S yste m atic Ap p ro ach : D e fine s a stand ard p ro ce d u re s,
p ro ce sse s, b e st p ractice s and g u id e line s fo r te st au to m atio n
im p le m e ntatio n. A te ste r can’t cre ate a scrip t o n th is o w n style
o r way fo r th e p ro je ct te st au to m atio n.

Quality of automation :
The Framework will be evaluated in different levels to object
quality in automation.

Framework Design: Hybrid model has been used to design
the centralized automation framework.




                                                                                  14
Example diagram – Extendable to New technology using Centralized Framework

                                                  Start Up
                                                  Scripts

                  Project 1                                                      Project 2
              Technology -Web                                                Technology Web

             Framework ready to                                             Framework ready to
             implement test                                                 implement test
             automation                                                     automation


                                                 Centralized
                                                 Framework

                                                                               Java Function Library
                                                                                VB Function Library
                  New Project 3
                                                                               Web Function Library
                       with
                                                                                 Recovery System
                 New Technology
                     (SAP)                                                    General Function Library

                                   Framework need to be                            Environment
                                   upgraded to the New SAP
                                   Technology.


  Note: Assume that web technology is implemented in framework and “sap” is a new technology that’s need to be
  implemented. So Project 1 and project2 can be implemented immediately and project 3 needs an up-gradation in the
  framework.
                                                                                                                     15
Features of Centralized Automation Framework

   Design of the Framework is independent of “Functionality & Technology”

   Minimum level of maintenance and framework change requirement

   Framework should provide user friendly Regression Suite

   Systematic Approach in automation implementation

   On the shelf Product – Ready for the current market requirement.




                                                                             16
Framework Benefits Comparison
  Benefits                 Customized        Automation   Centralized
                        Automation Scripts   Framework    Automation
                                              (Generic)   Framework

  Cost of                      Low             Medium        High
  Implementation
  Extendable to New            No                No           Yes
  technology
  Functional                   No               Yes           Yes
  Independence
  Technology                   No                No           Yes
  independence
  Script Maintenance           High            Medium        Low
  Required
  User Friendly                No               Yes           Yes

  Encapsulated                 No               Yes           Yes
  Scripts
  Reliable and Stable          No               Yes           Yes

  ROI                          Low             Medium        High

  Reusability                  Low             Limited       High




                                                                        17
Architecture of Centralized Automation Framework
                       Automation Framework                Start




          Driver Script                                Driver Sheet




                                  No


                 IF
                Flag
                Y/N
                                                                                Regression Suite

                 Yes



            Main Script                                                                  Main DataSheet
                                                                                         Main DataSheet


                                                        Sub Script
                                                        Sub Script
                                No

                 IF
                Flag
                Y/N                                                        No
                                                             IF                         Sub Suite Folder
                   Yes                                      Flag
                                                            Y/N


               Sub                                                 Yes
               Suite
               Suite
                               Yes
                                                      Perform Validation
                                                      Perform Validation
                       No


          Perform Validation                                                               ResultSheet




                                        Application
                                        Application
                                                                                                           18
Framework - Work Flow Design
   App Type
                                                              Framework design will be independent of
                                                              functionality and technology
          Web                                                 Framework need to be upgraded for new
                                                              technology and Automation Suites to be
              Object Class
                                                              upgraded for new functionally, but design
                                                              remains constant
                Web Button
                                                              Application type, Object Class, Object
                    Operation                                 Name, Operation and Operation Type are
                                                              the deciding factor of the automation flow
                      Checkpoint                              of execution
                                                              Your Data     Drives   the   Flow   not   the
                       Operation Type
                                                              framework

                             Std.CheckPoint                   Framework will process the inputs and
                                                              perform the operation in the application,
                                 User Defined Function Call   update the result back to the suite,
                                                              If your data is incorrect then the suite will
                             TxtCheckPoint
                                                              fail

                       Function


                Web Edit Box


          SAP

                                                                                                           19
                                                                                                          19
High Level Framework Design

                                                           Driver Sheet :
           Driver Script             Driver Sheet           Th e Starting Po int o f Fram e wo rk and will co ntain all th e
                                                            info rm atio n ab o ut Re g re ssio n Suite ( like (Path , Suite N am e ,
                           n                                M o d ule N am e and Flag , e tc )
                                                           Driver Script :

            Main Script            Main Data Sheet           W ill ch e ck th e Flag status o f All th e Re g re ssio n Suite in th e
                                                            D rive r sh e e t

                           n                                Flag = Ye s ( Suite ne e d to b e e x e cute d )

                                                            Flag = N o ( Suite ne e d no t to e x e cute )

            Sub Script             Sub Data Sheet          Main Script :

                                                            It will lo cate th e re g re ssio n suite and g e t d ata fro m th e M ain
                                                            d atash e e t

                                                            It will re ad all th e ro ws in th e d atash e e t, 1 to n ro ws,

                                                            b e fo re p ro ce ss a ro w, it will ch e ck th e Flag Status( Ye s/N o )
      Frame work                   Automation Suite        Main Datasheet :

 1.   Driver Sheet             •    Main Data Sheet         Each Ro w will co ntain te ch nical d ata, te st d ata and a flag
 2.   Driver Script                                          O ne line o f Scrip t will b e co nve rte d into o ne ro w in
 3.   Main Script              •    Object Repository
                                                            D atash e e t
 4.   Sub Script
 5.   Function Library         •    Reusable Suite         Sub Script and Sub Data Sheet :
 6.   Recovery
      scenarios                •    Result Sheet            W e can call Re usab le Suite s insid e yo ur Re g . Suite s
                                                            Function Library : Se t o f Re u sab le Functio ns
                                                            ResultSheet : C usto m iz e d re sults fo r use r s b e tte r
                                                            und e rstand ing                                                      20
Steps to Create the Automation suite
                                                                      Create a Folder for
                                                                       Regression Suite
Step 1: Create a Folder for your Automation Suite (Ex.
         “SupportRequest”)
                                                                   Record the scenarios and
Step 2: Record the Flow which you need to automate and Save the             Save
         Flow Script
                                                                      Save as the Object
Step 3: Save the Local Object Repository as Shared Obj.           Repository as “ObjRep.tsr”
         Repository in the Folder (Automation Suite Folder)       in Regression Suite Folder

Step 4: Use the “Data Generator” to Convert your Flow into
          Datasheet and save the same In the automation Folder      Use “Data Generator” to
                                                                     Convert the Recorded
                                                                  scripts into Datasheet. Save
Step 5: Save a Result Sheet Template                                  as the Datasheet as
                                                                        “DataSheet.xls” in
                                                                    Regression Suite Folder


                                                                  Insert a Result template in
                                                                      Regression Folder
                                                                         “Results.xls”



                                                                          Ready for
                                                                          Execution
                                                                                                 21
Driver Sheet
  Application    ModuleName       Path                                        Dependencies   Flag
  CRM            Login            C:Shell AutomationCRMLogin                           Yes
  CRM            Transactio       C:Shell AutomationCRMTransaction                     Yes
  CRM            Opportunity      C:Shell AutomationCRMOpportunity                     NO
  SAP            SupportRequest   C:Shell AutomationSAPSupportRequest                  Yes




       Driver sheet is a Starting point of the framework architecture
       Driver Sheet is an repository to store all the automation suite informations
       Path and Flag are mandatory fields
       We can free to add more fields for user reference. ( Like tester name,
        comments )




                                                                                                    22
Flow Script
     Flow Script is the script which you recorded to automate
     Later Data Generator will covert your flow script into data in a form which the framework can
      understand.




                                                                                                       23
                                                                                                      23
Main Data Sheet
  Main Data Sheet will have a huge amount of data, they are Flow Data,
   technical and test data, Test case information's

  Flow data : Windows Name, Object Name and Object Class etc.,

  Test Data : Account Id, Customer Id, Login Details and URL etc.,

  Technical Data : Operation, Operation Type, Parameters, Flag & Comments

  Test case Info(Optional ) : Test case Id, Test Description etc.,

  Your Flow Scripts will be converted into Main Data and the Same will be saved in Excel

  Single Line of Flow Script will be converted into data structure in Main Data Sheet

  Main Data Sheet is in a table form, so easy for the end user to understand the flow and
   execute/ maintain the same,

  Main Data Sheet is like a “keyword view” of your flow script




                                                                                             24
Main Data Sheet




                  25
Elements of a Framework




          IBM Confidential


                             26
Common Components
Below are the components of the
                                                                                    Object
Automation Framework:                   Data Tables                Environment
                                                                                  Repository



   Data Tables
   Environment                                                       Tools

   Libraries
   Object repository
                                                                                 • Runtime
   Results                                  Scripts               Framework
                                                                                 • Documents

   Runtime
   Scripts                       Recovery
                                                       Libraries
   Recovery scenario             scenario


   Documents
   Tools                                                            Results




                                                                                               27
Data Tables

   Data table leads to Parameterization
                                                       Username   Password
  Repository for Test Data
 Designed for User Interaction                        User1      pwd1

    Data table can be an Excel Document, Ms-Access,   User2      pwd2
Database                                               User3      pwd3
 Framework will Design the Data table Structure

   and mapping




                                                                             28
Environment




              29
Libraries
    Function library
    Collection of Reusable operations in the form of Predefined Structure

                                                                                         Application
                                   Function                      Driver
                                    Library                      Scripts




   Time and resource can be saved using reusable functions.
   Decomposing the scripts into functions, will increate the level of script Understandably.
   Creating functions will reduce the dependencies within the scripts.
   Scripts maintenance cost will considerably will come down.
   Support Future requirements.



.
                                                                                                       30
Object Repositories / Object Maps
                                                                     Structure of Object Repository

    The Storage band for Application Objects
     It Provides the interaction between scripts and      Object Repository

application
      The object repository is shared and module-                   Object1

specific.
    While Execution the Object repository will help the                  Property               Property
                                                                           Name                    Value
script to Identify the Objects in the application
                                                                          Property               Property
      Repository will have list of objects along with                     Name                   Value


configured properties and their values
   Object Repository will have enough no.of properties
to uniquely identify an Object                                       Object2

     Shared object repository should have the extn :
                                                                          Property               Property
                                                                           Name                    Value
ABC.tsr (Test Shared Repository)
     Module-specific repository should have a extn :                     Property               Property
                                                                           Name                   Value
ABV.mtr (Module Test Repository)




                                                                                                            31
Tools, Scripts, Recovery scenario & Results
Tools : This folder contains macro files. Using these files will reduce time for writing scripts, converting files,
and shortcut to generate code.
Scripts : This folder contains local test scripts; this folder will be used while development and maintenance
stage. Once script gets delivered it will upload to centralize location Test Director or Quality Centre.
Recovery scenario : This folder can be used as recovery scenario function library file. Also, through QTP
particular scenario, converted file is kept under this folder and associates the test script.
Results : The current execution status will be updated after every run. All the Script failures, test status,
recovery actions will be logged in Result.



               QTP             Open              Run             Script
               Settings        Script            Script          Failure

                 Library
                  Files

                  Object
                Configurat
                   ion                                                                Resume
                                Test Script       Test Script      Test Script        Executio
                Environme                                                                n
                    nt
                                                                                                       Update
                                                                                                       Result
                                                                                     Execution
                Recovery                                                             Completed
                Scenarios

                                                                                                     Close QTP




                                                                                                                      32
Thank You




            AS ALPS | Mar 15, 2012 | IBM
            Confidential                   33

More Related Content

What's hot

Testing in Agile Projects
Testing in Agile ProjectsTesting in Agile Projects
Testing in Agile Projectssriks7
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionGanuka Yashantha
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNetHai Tran Son
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingArchana Krushnan
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planningSivaprasanthRentala1975
 
Test Automation
Test AutomationTest Automation
Test Automationrockoder
 
Web Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIWeb Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIDinesh Kaushik
 
Scrum Testing Methodology
Scrum Testing MethodologyScrum Testing Methodology
Scrum Testing MethodologyGaya1985
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Edureka!
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
Best practices for test automation
Best practices for test automationBest practices for test automation
Best practices for test automationDavid Tzemach
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 

What's hot (20)

Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testing
 
Testing in Agile Projects
Testing in Agile ProjectsTesting in Agile Projects
Testing in Agile Projects
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introduction
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Web Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUIWeb Services and Introduction of SOAPUI
Web Services and Introduction of SOAPUI
 
Scrum Testing Methodology
Scrum Testing MethodologyScrum Testing Methodology
Scrum Testing Methodology
 
Automated Test Framework with Cucumber
Automated Test Framework with CucumberAutomated Test Framework with Cucumber
Automated Test Framework with Cucumber
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
Best practices for test automation
Best practices for test automationBest practices for test automation
Best practices for test automation
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Test automation proposal
Test automation proposalTest automation proposal
Test automation proposal
 

Viewers also liked

Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework DesignsSauce Labs
 
Introduction to Test Automation
Introduction to Test AutomationIntroduction to Test Automation
Introduction to Test AutomationPekka Klärck
 
QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1Akash Tyagi
 
Programming skills for test automation
Programming skills for test automationProgramming skills for test automation
Programming skills for test automationRomania Testing
 
Making Your Results Visible - A Test Result Dashboard and Comparison Tool
Making Your Results Visible - A Test Result Dashboard and Comparison ToolMaking Your Results Visible - A Test Result Dashboard and Comparison Tool
Making Your Results Visible - A Test Result Dashboard and Comparison ToolXiaoxing Hu
 
Building a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessBuilding a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessLee Barnes
 
Introduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsIntroduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsKMS Technology
 

Viewers also liked (9)

Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Introduction to Test Automation
Introduction to Test AutomationIntroduction to Test Automation
Introduction to Test Automation
 
Automated Testing
Automated TestingAutomated Testing
Automated Testing
 
QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1
 
Programming skills for test automation
Programming skills for test automationProgramming skills for test automation
Programming skills for test automation
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
 
Making Your Results Visible - A Test Result Dashboard and Comparison Tool
Making Your Results Visible - A Test Result Dashboard and Comparison ToolMaking Your Results Visible - A Test Result Dashboard and Comparison Tool
Making Your Results Visible - A Test Result Dashboard and Comparison Tool
 
Building a Test Automation Strategy for Success
Building a Test Automation Strategy for SuccessBuilding a Test Automation Strategy for Success
Building a Test Automation Strategy for Success
 
Introduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and ToolsIntroduction to Test Automation - Technology and Tools
Introduction to Test Automation - Technology and Tools
 

Similar to Centralized test automation framework implementation

Data driven automation testing of web applications using selenium
Data driven automation testing of web applications using seleniumData driven automation testing of web applications using selenium
Data driven automation testing of web applications using seleniumanandseelan
 
#ATAGTR2020 Presentation - Universal Test Automation Framework
#ATAGTR2020 Presentation - Universal Test Automation Framework#ATAGTR2020 Presentation - Universal Test Automation Framework
#ATAGTR2020 Presentation - Universal Test Automation FrameworkAgile Testing Alliance
 
Презентация
ПрезентацияПрезентация
Презентацияguest22d71d
 
Neil Tompson - SoftTest Ireland
Neil Tompson - SoftTest IrelandNeil Tompson - SoftTest Ireland
Neil Tompson - SoftTest IrelandDavid O'Dowd
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing toolsQACraft
 
Test Automation
Test AutomationTest Automation
Test Automationnikatmalik
 
Test Analyst-Santosh Ukade
Test Analyst-Santosh UkadeTest Analyst-Santosh Ukade
Test Analyst-Santosh UkadeSantosh Ukade
 
Pros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfPros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfkalichargn70th171
 
Accelerated test case - Anish bhanu
Accelerated test case - Anish bhanuAccelerated test case - Anish bhanu
Accelerated test case - Anish bhanuRoopa Nadkarni
 
An Essential Guide to Effective Test Automation Leveraging Open Source
An Essential Guide to Effective Test Automation Leveraging Open SourceAn Essential Guide to Effective Test Automation Leveraging Open Source
An Essential Guide to Effective Test Automation Leveraging Open SourceRapidValue
 
Agile Open Source Performance Test Workshop for Developers, Testers, IT Ops
Agile Open Source Performance Test Workshop for Developers, Testers, IT OpsAgile Open Source Performance Test Workshop for Developers, Testers, IT Ops
Agile Open Source Performance Test Workshop for Developers, Testers, IT OpsClever Moe
 
Test and integration in REC
Test and integration in RECTest and integration in REC
Test and integration in RECkatybairstow
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-toolBabuDevanandam
 
Automation Best Practices.pptx
Automation Best Practices.pptxAutomation Best Practices.pptx
Automation Best Practices.pptxpavelpopov43
 
Silk4j Tcm6 174177
Silk4j Tcm6 174177Silk4j Tcm6 174177
Silk4j Tcm6 174177titita13
 
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010TEST Huddle
 
Quality Assurance in REC Group
Quality Assurance in REC GroupQuality Assurance in REC Group
Quality Assurance in REC Grouptonyroz
 
Zapewnienie jakości w Grupie REC
Zapewnienie jakości w Grupie RECZapewnienie jakości w Grupie REC
Zapewnienie jakości w Grupie RECtonyroz
 

Similar to Centralized test automation framework implementation (20)

Data driven automation testing of web applications using selenium
Data driven automation testing of web applications using seleniumData driven automation testing of web applications using selenium
Data driven automation testing of web applications using selenium
 
#ATAGTR2020 Presentation - Universal Test Automation Framework
#ATAGTR2020 Presentation - Universal Test Automation Framework#ATAGTR2020 Presentation - Universal Test Automation Framework
#ATAGTR2020 Presentation - Universal Test Automation Framework
 
Test automation within a scrum process
Test automation within a scrum processTest automation within a scrum process
Test automation within a scrum process
 
Презентация
ПрезентацияПрезентация
Презентация
 
Neil Tompson - SoftTest Ireland
Neil Tompson - SoftTest IrelandNeil Tompson - SoftTest Ireland
Neil Tompson - SoftTest Ireland
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing tools
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Test Analyst-Santosh Ukade
Test Analyst-Santosh UkadeTest Analyst-Santosh Ukade
Test Analyst-Santosh Ukade
 
Pros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdfPros and Cons of key test automation frameworks.pdf
Pros and Cons of key test automation frameworks.pdf
 
Accelerated test case - Anish bhanu
Accelerated test case - Anish bhanuAccelerated test case - Anish bhanu
Accelerated test case - Anish bhanu
 
An Essential Guide to Effective Test Automation Leveraging Open Source
An Essential Guide to Effective Test Automation Leveraging Open SourceAn Essential Guide to Effective Test Automation Leveraging Open Source
An Essential Guide to Effective Test Automation Leveraging Open Source
 
Agile Open Source Performance Test Workshop for Developers, Testers, IT Ops
Agile Open Source Performance Test Workshop for Developers, Testers, IT OpsAgile Open Source Performance Test Workshop for Developers, Testers, IT Ops
Agile Open Source Performance Test Workshop for Developers, Testers, IT Ops
 
Test and integration in REC
Test and integration in RECTest and integration in REC
Test and integration in REC
 
Choosing right-automation-tool
Choosing right-automation-toolChoosing right-automation-tool
Choosing right-automation-tool
 
Automation Best Practices.pptx
Automation Best Practices.pptxAutomation Best Practices.pptx
Automation Best Practices.pptx
 
Silk4j Tcm6 174177
Silk4j Tcm6 174177Silk4j Tcm6 174177
Silk4j Tcm6 174177
 
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010
C.V, Narayanan - Open Source Tools for Test Management - EuroSTAR 2010
 
Application Testing Suite
Application Testing SuiteApplication Testing Suite
Application Testing Suite
 
Quality Assurance in REC Group
Quality Assurance in REC GroupQuality Assurance in REC Group
Quality Assurance in REC Group
 
Zapewnienie jakości w Grupie REC
Zapewnienie jakości w Grupie RECZapewnienie jakości w Grupie REC
Zapewnienie jakości w Grupie REC
 

Recently uploaded

Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Antonio de Llamas
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemSafe Software
 
Dublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxDublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxKunal Gupta
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2DianaGray10
 
Which standard is best for your content?
Which standard is best for your content?Which standard is best for your content?
Which standard is best for your content?Rustici Software
 
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfHCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfROWELL MARQUINA
 
Bitdefender-CSG-Report-creat7534-interactive
Bitdefender-CSG-Report-creat7534-interactiveBitdefender-CSG-Report-creat7534-interactive
Bitdefender-CSG-Report-creat7534-interactivestartupro
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024BookNet Canada
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
Software Security in the Real World w/Kelsey Hightower
Software Security in the Real World w/Kelsey HightowerSoftware Security in the Real World w/Kelsey Hightower
Software Security in the Real World w/Kelsey HightowerAnchore
 
The work to make the piecework work: An ethnographic study of food delivery w...
The work to make the piecework work: An ethnographic study of food delivery w...The work to make the piecework work: An ethnographic study of food delivery w...
The work to make the piecework work: An ethnographic study of food delivery w...stockholm university
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 

Recently uploaded (20)

Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+Tetracrom printing process for packaging with CMYK+
Tetracrom printing process for packaging with CMYK+
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data Ecosystem
 
Dublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptxDublin_mulesoft_meetup_API_specifications.pptx
Dublin_mulesoft_meetup_API_specifications.pptx
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2
Efficiencies in RPA with UiPath and CyberArk Technologies - Session 2
 
Which standard is best for your content?
Which standard is best for your content?Which standard is best for your content?
Which standard is best for your content?
 
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfHCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
 
Bitdefender-CSG-Report-creat7534-interactive
Bitdefender-CSG-Report-creat7534-interactiveBitdefender-CSG-Report-creat7534-interactive
Bitdefender-CSG-Report-creat7534-interactive
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
Software Security in the Real World w/Kelsey Hightower
Software Security in the Real World w/Kelsey HightowerSoftware Security in the Real World w/Kelsey Hightower
Software Security in the Real World w/Kelsey Hightower
 
The work to make the piecework work: An ethnographic study of food delivery w...
The work to make the piecework work: An ethnographic study of food delivery w...The work to make the piecework work: An ethnographic study of food delivery w...
The work to make the piecework work: An ethnographic study of food delivery w...
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 

Centralized test automation framework implementation

  • 1. Centralized Test Automation using Hybrid Model Bharathi Easw aran IBM Confidential 1
  • 2. Agenda Automation Decision Making Challenges of Automation Benefits of automation Components of Automation testing Reasons for Automation failure Successful Automation Testing Automation Decision making Process Automation Guidelines for Testers Identify Test Cases to automate Hybrid Framework Approach Elements of a Framework 2
  • 3. Factors Decides Automation Testing Test Automation 3
  • 4. Challenges in Test Automation 4
  • 5. Benefits of Automation AS ALPS | Mar 15, 2012 | IBM Confidential 5
  • 6. Components of Automation Testing Automation Frame Work : Automation Framework is a process of Structuring and Organizing Scripts to increase the level of reusability and readability of scripts. Tool : Is a mechanism used to simplify and speed the effort required for testing. Regression Suite : A collection of Regression scenarios in the form of automated build 6
  • 7. Reasons Why Automation Testing Might Fail ? While Talking about automation decision making, we have to list out the reasons for automation failure. This activity will help you to create a quality in automation testing. Automation Failure Leads to.. • Effective Test Execution can’t be continued • Unable to achieve the defined ROI • Decrease the defect finding Rate • Dissatisfaction with Client 7
  • 9. Test Automation at Project Requirement Framework Automation Suite Tool Compatibility creation Delivery Analysis Compatibility • Products Select Functionality • Record a Script Framework • Setup the • Automation Study with the available Automation framework tool for core Environment • Regression functional flow • Project duration • Create Suites as per business • Project Size automation • User Manual • Run the recorded • Test data suites • Documents scripts multiple Management • Debug the for Process times with • Business suites different test • Validate the requirement base suites • Automation • Validate the Budget compatibility between tool and the application • 80% - 90% of the test objects should be able to Create a POC identified by the tool Select Framework 9
  • 10. Automation Guidelines for Testers Modularize test scripts for multiple execution combinations. Identify and abstract common functions used across multiple test scripts. Structure scripts with minimal dependencies to ensure scripts can run unattended even when multiple failures occur. Decouple complex business function testing from navigation, limit-testing, and other simple verification and validation activities. Abstract and decouple test data from the test scripts. follow the consistency in Process. Maintain Logs and Documents. Analyze and evaluate the Failures. 10
  • 11. Guidelines to Identify Test Cases to automated Each regression test case/scenario should be validated based on the Checklist. Validation Yes/No Accurate Expected Results Clear Functional Requirement Consistent Functional Behavior Dependence on other systems Core functional component Test Data Availability and Connectivity 11
  • 12. Centralized Test Automation using Hybrid Model IBM Confidential 12
  • 13. Hybrid-Automation Framework Automation Framework : A framework can be a wrapper around complex internal architecture which makes end user to interact with system easily. It also define guidelines and set standards for all phases of ADLC(automation development life cycle). Hybrid-Framework : The hybrid Test automation framework is what most frameworks evolve into over time and multiple projects. The most successful automation frameworks generally accommodate both Keyword driven as well as Data driven This allows data driven scripts to take advantage of the powerful libraries and utilities that usually accompany a keyword driven architecture. The framework utilities can make the data driven scripts more compact and less prone to failure than they otherwise would have been. Driver Script Test Test Test Scripts 1 Scripts 2 Scripts 3 Function Library Data Hybrid Automation Framework - Diagram 13
  • 14. Centralized Automation Framework Au to m atio n S crip t e ncap su latio n : Fu nctio n Lib rarie s, S crip ts all are e ncap su late d co m p o ne nts, U se rs w ill b e ab le to acce ss o nly th e S crip ts re late d to the ir te sting u se r g e t p re ve nte d fro m acce ssing th e e ntire fram e w o rk scrip ts. S yste m atic Ap p ro ach : D e fine s a stand ard p ro ce d u re s, p ro ce sse s, b e st p ractice s and g u id e line s fo r te st au to m atio n im p le m e ntatio n. A te ste r can’t cre ate a scrip t o n th is o w n style o r way fo r th e p ro je ct te st au to m atio n. Quality of automation : The Framework will be evaluated in different levels to object quality in automation. Framework Design: Hybrid model has been used to design the centralized automation framework. 14
  • 15. Example diagram – Extendable to New technology using Centralized Framework Start Up Scripts Project 1 Project 2 Technology -Web Technology Web Framework ready to Framework ready to implement test implement test automation automation Centralized Framework Java Function Library VB Function Library New Project 3 Web Function Library with Recovery System New Technology (SAP) General Function Library Framework need to be Environment upgraded to the New SAP Technology. Note: Assume that web technology is implemented in framework and “sap” is a new technology that’s need to be implemented. So Project 1 and project2 can be implemented immediately and project 3 needs an up-gradation in the framework. 15
  • 16. Features of Centralized Automation Framework  Design of the Framework is independent of “Functionality & Technology”  Minimum level of maintenance and framework change requirement  Framework should provide user friendly Regression Suite  Systematic Approach in automation implementation  On the shelf Product – Ready for the current market requirement. 16
  • 17. Framework Benefits Comparison Benefits Customized Automation Centralized Automation Scripts Framework Automation (Generic) Framework Cost of Low Medium High Implementation Extendable to New No No Yes technology Functional No Yes Yes Independence Technology No No Yes independence Script Maintenance High Medium Low Required User Friendly No Yes Yes Encapsulated No Yes Yes Scripts Reliable and Stable No Yes Yes ROI Low Medium High Reusability Low Limited High 17
  • 18. Architecture of Centralized Automation Framework Automation Framework Start Driver Script Driver Sheet No IF Flag Y/N Regression Suite Yes Main Script Main DataSheet Main DataSheet Sub Script Sub Script No IF Flag Y/N No IF Sub Suite Folder Yes Flag Y/N Sub Yes Suite Suite Yes Perform Validation Perform Validation No Perform Validation ResultSheet Application Application 18
  • 19. Framework - Work Flow Design App Type Framework design will be independent of functionality and technology Web Framework need to be upgraded for new technology and Automation Suites to be Object Class upgraded for new functionally, but design remains constant Web Button Application type, Object Class, Object Operation Name, Operation and Operation Type are the deciding factor of the automation flow Checkpoint of execution Your Data Drives the Flow not the Operation Type framework Std.CheckPoint Framework will process the inputs and perform the operation in the application, User Defined Function Call update the result back to the suite, If your data is incorrect then the suite will TxtCheckPoint fail Function Web Edit Box SAP 19 19
  • 20. High Level Framework Design  Driver Sheet : Driver Script Driver Sheet Th e Starting Po int o f Fram e wo rk and will co ntain all th e info rm atio n ab o ut Re g re ssio n Suite ( like (Path , Suite N am e , n M o d ule N am e and Flag , e tc )  Driver Script : Main Script Main Data Sheet W ill ch e ck th e Flag status o f All th e Re g re ssio n Suite in th e D rive r sh e e t n Flag = Ye s ( Suite ne e d to b e e x e cute d ) Flag = N o ( Suite ne e d no t to e x e cute ) Sub Script Sub Data Sheet  Main Script : It will lo cate th e re g re ssio n suite and g e t d ata fro m th e M ain d atash e e t It will re ad all th e ro ws in th e d atash e e t, 1 to n ro ws, b e fo re p ro ce ss a ro w, it will ch e ck th e Flag Status( Ye s/N o ) Frame work Automation Suite  Main Datasheet : 1. Driver Sheet • Main Data Sheet Each Ro w will co ntain te ch nical d ata, te st d ata and a flag 2. Driver Script O ne line o f Scrip t will b e co nve rte d into o ne ro w in 3. Main Script • Object Repository D atash e e t 4. Sub Script 5. Function Library • Reusable Suite  Sub Script and Sub Data Sheet : 6. Recovery scenarios • Result Sheet W e can call Re usab le Suite s insid e yo ur Re g . Suite s  Function Library : Se t o f Re u sab le Functio ns  ResultSheet : C usto m iz e d re sults fo r use r s b e tte r und e rstand ing 20
  • 21. Steps to Create the Automation suite Create a Folder for Regression Suite Step 1: Create a Folder for your Automation Suite (Ex. “SupportRequest”) Record the scenarios and Step 2: Record the Flow which you need to automate and Save the Save Flow Script Save as the Object Step 3: Save the Local Object Repository as Shared Obj. Repository as “ObjRep.tsr” Repository in the Folder (Automation Suite Folder) in Regression Suite Folder Step 4: Use the “Data Generator” to Convert your Flow into Datasheet and save the same In the automation Folder Use “Data Generator” to Convert the Recorded scripts into Datasheet. Save Step 5: Save a Result Sheet Template as the Datasheet as “DataSheet.xls” in Regression Suite Folder Insert a Result template in Regression Folder “Results.xls” Ready for Execution 21
  • 22. Driver Sheet Application ModuleName Path Dependencies Flag CRM Login C:Shell AutomationCRMLogin Yes CRM Transactio C:Shell AutomationCRMTransaction Yes CRM Opportunity C:Shell AutomationCRMOpportunity NO SAP SupportRequest C:Shell AutomationSAPSupportRequest Yes  Driver sheet is a Starting point of the framework architecture  Driver Sheet is an repository to store all the automation suite informations  Path and Flag are mandatory fields  We can free to add more fields for user reference. ( Like tester name, comments ) 22
  • 23. Flow Script  Flow Script is the script which you recorded to automate  Later Data Generator will covert your flow script into data in a form which the framework can understand. 23 23
  • 24. Main Data Sheet  Main Data Sheet will have a huge amount of data, they are Flow Data, technical and test data, Test case information's  Flow data : Windows Name, Object Name and Object Class etc.,  Test Data : Account Id, Customer Id, Login Details and URL etc.,  Technical Data : Operation, Operation Type, Parameters, Flag & Comments  Test case Info(Optional ) : Test case Id, Test Description etc.,  Your Flow Scripts will be converted into Main Data and the Same will be saved in Excel  Single Line of Flow Script will be converted into data structure in Main Data Sheet  Main Data Sheet is in a table form, so easy for the end user to understand the flow and execute/ maintain the same,  Main Data Sheet is like a “keyword view” of your flow script 24
  • 26. Elements of a Framework IBM Confidential 26
  • 27. Common Components Below are the components of the Object Automation Framework: Data Tables Environment Repository  Data Tables  Environment Tools  Libraries  Object repository • Runtime  Results Scripts Framework • Documents  Runtime  Scripts Recovery Libraries  Recovery scenario scenario  Documents  Tools Results 27
  • 28. Data Tables  Data table leads to Parameterization Username Password  Repository for Test Data  Designed for User Interaction User1 pwd1  Data table can be an Excel Document, Ms-Access, User2 pwd2 Database User3 pwd3  Framework will Design the Data table Structure and mapping 28
  • 30. Libraries Function library Collection of Reusable operations in the form of Predefined Structure Application Function Driver Library Scripts  Time and resource can be saved using reusable functions.  Decomposing the scripts into functions, will increate the level of script Understandably.  Creating functions will reduce the dependencies within the scripts.  Scripts maintenance cost will considerably will come down.  Support Future requirements. . 30
  • 31. Object Repositories / Object Maps Structure of Object Repository  The Storage band for Application Objects  It Provides the interaction between scripts and Object Repository application  The object repository is shared and module- Object1 specific.  While Execution the Object repository will help the Property Property Name Value script to Identify the Objects in the application Property Property  Repository will have list of objects along with Name Value configured properties and their values  Object Repository will have enough no.of properties to uniquely identify an Object Object2  Shared object repository should have the extn : Property Property Name Value ABC.tsr (Test Shared Repository)  Module-specific repository should have a extn : Property Property Name Value ABV.mtr (Module Test Repository) 31
  • 32. Tools, Scripts, Recovery scenario & Results Tools : This folder contains macro files. Using these files will reduce time for writing scripts, converting files, and shortcut to generate code. Scripts : This folder contains local test scripts; this folder will be used while development and maintenance stage. Once script gets delivered it will upload to centralize location Test Director or Quality Centre. Recovery scenario : This folder can be used as recovery scenario function library file. Also, through QTP particular scenario, converted file is kept under this folder and associates the test script. Results : The current execution status will be updated after every run. All the Script failures, test status, recovery actions will be logged in Result. QTP Open Run Script Settings Script Script Failure Library Files Object Configurat ion Resume Test Script Test Script Test Script Executio Environme n nt Update Result Execution Recovery Completed Scenarios Close QTP 32
  • 33. Thank You AS ALPS | Mar 15, 2012 | IBM Confidential 33

Editor's Notes

  1. Instructor notes: Automating tests by using only a capture tool such Quick Test Professional to record and play back test cases has its drawbacks. When you use only a capture tool, it is very time consuming and expensive when running complex and powerful tests. These tests are created ad hoc and hence any changes in the functionality or UI can be difficult to track and reproduce, and therefore can be costly to maintain. A better choice for an Automated Testing Team that is just getting started might be to use a Test Automation Framework. This abstract gives a brief description about a modular framework, which helps in designing scripts independent of the application.
  2. Instructor notes: Automating tests by using only a capture tool such Quick Test Professional to record and play back test cases has its drawbacks. When you use only a capture tool, it is very time consuming and expensive when running complex and powerful tests. These tests are created ad hoc and hence any changes in the functionality or UI can be difficult to track and reproduce, and therefore can be costly to maintain. A better choice for an Automated Testing Team that is just getting started might be to use a Test Automation Framework. This abstract gives a brief description about a modular framework, which helps in designing scripts independent of the application.