2_Selenium and Fitnesse Integration

Embed Size (px)

DESCRIPTION

How to Integrate Selenium and Fitness

Citation preview

  • 5/21/2018 2_Selenium and Fitnesse Integration

    1/21

    Selenium and FitNesse Integration

    Kafeel Ahmad

    December 06, 2012

  • 5/21/2018 2_Selenium and Fitnesse Integration

    2/21

    Table of Contents

    Abstract

    Case Study Test Automation Development and Maintenance

    Automation Tools and Approach Selenium, Selenesse and FitNesse

    Integrating Selenium with FitNesse

    Automated Test in Plain Language

    Automated Scenario Library

    2012 Fiserv, Inc. or its affiliates.

    Test Execution Test Execution Result

    Scanned Image Exception Handling Algorithm

    Web Services Testing

    Benefits and Conclusion References

  • 5/21/2018 2_Selenium and Fitnesse Integration

    3/21

    Abstract

    Due to multiple automation tools present in

    the market, one requires a goodunderstanding of these to pick the

    best fit.

    Based on re uirements sometimes

    2012 Fiserv, Inc. or its affiliates.3

    multiple tools need to integrate together asone single system.

    This presentation discusses a case studywherein Selenium and FitNesse were

    integrated to perform functional,acceptance and Web Service testing.

  • 5/21/2018 2_Selenium and Fitnesse Integration

    4/21

    4

    Case Study

  • 5/21/2018 2_Selenium and Fitnesse Integration

    5/21

    Test Automation Development and Maintenance

    Functional, acceptance and web services testing

    Objective

    Source Capture Optimization (SCO) is a unique Fiserv approach to enhance the reliability, versatility and scalability of

    image capture and check processing with a common web based platform. Wherever one gather deposits, Fiserv ensuresthat they are benefited from the best possible solution at the lowest operational cost.SCO business partners were looking for development and maintenance of test automation for their Web Application.

    Requirements

    2012 Fiserv, Inc. or its affiliates.5

    Only open source tools to be used Non technical business associates and manual testers be able to develop automation scripts easily Automation testing tools be able to perform functional, acceptance and web-services testing Automation testing tools and framework to support test cases and test scenarios management

    Challenges

    Identifying the right tools for the given requirements Provide a framework that supports developing automation script in plain simple language

    Preparing an automated scenario library and performing test management within the tool

    Handle image exception scenario for scanned image of a cheque

    Perform web-services testing with the same automation tool

  • 5/21/2018 2_Selenium and Fitnesse Integration

    6/21

    Test Automation Development and Maintenance

    (Contd)Functional, acceptance and web services testing

    Tools Identified

    Based on client requirements, resources availability, effort estimates and the open source tools available in the market,

    Fiserv decided to use Selenium and FitNesse automation tools.

    Solution

    Selenium and FitNesse, integrated using Selenesse, used to perform testing automation

    Provided a roach for develo in test automation scri ts in lain sim le lan ua e

    2012 Fiserv, Inc. or its affiliates.6

    Prepared automation scenario library and test management in FitNesse wiki Developed customized algorithm to handle scanned image exception scenario

    Developed a .Net service library for performing web-services automation using Selenium and FitNesse

    Results

    Business Partner requirements were completely fulfilled and they appreciated it

    Automated testing was successfully implemented for the SCO web application Automation implementation led to cost benefits and improved productivity

  • 5/21/2018 2_Selenium and Fitnesse Integration

    7/21

    7

    Approach

  • 5/21/2018 2_Selenium and Fitnesse Integration

    8/21

    Selenium, Selenesse and FitNesse

    Selenium

    Selenium is an open

    source tool forbrowser automation

    Selenium Tools Suiteavailable:

    Selenesse

    Selenesse is the

    modern bridgebetween FitNesseand Selenium

    FitNesse

    Fitnesse is a

    lightweight, open-source framework forautomated testing

    It helps to

    2012 Fiserv, Inc. or its affiliates.8

    Selenium IDE Selenium Web

    driver Selenium RC or

    Remote Control Selenium-Grid

    collaboratively defineand organizeacceptance/functionaltests

    It works as a Wiki to

    easily create and editscripts anddocumentation

  • 5/21/2018 2_Selenium and Fitnesse Integration

    9/21

    Integrating Selenium with FitNesse

    Font End Driver Tool Application

    FitNesse Selenesse Selenium AUT

    Test Scripts Custom Selenium Application

    2012 Fiserv, Inc. or its affiliates.9

    Test Suites Test Results Test Logs

    Functions orfixturescreated

    RC Server under test

    Log Log Log

  • 5/21/2018 2_Selenium and Fitnesse Integration

    10/21

    Automated Test in Plain Language

    2012 Fiserv, Inc. or its affiliates.10

  • 5/21/2018 2_Selenium and Fitnesse Integration

    11/21

    Automated Scenario Library

    A separate Scenario Library is prepared in FitNesse Wiki

    It contains prototype of using the scenario in automating testcases

    2012 Fiserv, Inc. or its affiliates.11

  • 5/21/2018 2_Selenium and Fitnesse Integration

    12/21

    Test Execution

    2012 Fiserv, Inc. or its affiliates.12

  • 5/21/2018 2_Selenium and Fitnesse Integration

    13/21

    Test Execution Result

    2012 Fiserv, Inc. or its affiliates.13

  • 5/21/2018 2_Selenium and Fitnesse Integration

    14/21

    Scanned Image Exception Handling Algorithm

    Algorithm:

    Do Until All Exceptions are Removed

    Select an Item row

    Identify the column having exception with the background color

    Read the type of exception from Item Exceptions section Handle the exception by entering correct value for it

    2012 Fiserv, Inc. or its affiliates.14

  • 5/21/2018 2_Selenium and Fitnesse Integration

    15/21

    Web Services Testing

    2012 Fiserv, Inc. or its affiliates.15

  • 5/21/2018 2_Selenium and Fitnesse Integration

    16/21

    16

    Conclusion

  • 5/21/2018 2_Selenium and Fitnesse Integration

    17/21

    Results

    Web Automation can now be written simply in plain English

    Feature feedback provided early in the project cycle

    No automation experts required for test script development

    Lightweight simple approach for functional, acceptance and web

    services testing.

    2012 Fiserv, Inc. or its affiliates.17

    ng e w t at acts as a repos tory

  • 5/21/2018 2_Selenium and Fitnesse Integration

    18/21

    Conclusion

    With this Proof of Concept (POC), we were able to completely fulfill our

    business partner requirements and it was well appreciated.

    The solution has been successfully implemented in one of the testingprojects and has helped save time and cost by implementing

    automation development at a very low cost.

    2012 Fiserv, Inc. or its affiliates.18

  • 5/21/2018 2_Selenium and Fitnesse Integration

    19/21

    References

    Automation templates and training material available on QMS intranet

    portal of Fiserv Global Services.

    http://seleniumhq.org/ http://fitnesse.org/

    https://github.com/marisaseal/selenesse

    2012 Fiserv, Inc. or its affiliates.19

  • 5/21/2018 2_Selenium and Fitnesse Integration

    20/21

    Questions?

  • 5/21/2018 2_Selenium and Fitnesse Integration

    21/21

    Thank You