Slide 1

Slide 1 text

Selenium and FitNesse Integration Kafeel Ahmad December 06, 2012

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

Abstract Due to multiple automation tools present in the market, one requires a good understanding of these to pick the best fit. Based on requirements, sometimes © 2012 Fiserv, Inc. or its affiliates. 3 Based on requirements, sometimes multiple tools need to integrate together as one single system. This presentation discusses a case study wherein Selenium and FitNesse were integrated to perform functional, acceptance and Web Service testing.

Slide 4

Slide 4 text

4 Case Study

Slide 5

Slide 5 text

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 ensures that 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 SCO business partners had well defined requirements for automation development: © 2012 Fiserv, Inc. or its affiliates. 5 SCO business partners had well defined requirements for automation development: • 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

Slide 6

Slide 6 text

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 approach for developing test automation scripts in plain simple language © 2012 Fiserv, Inc. or its affiliates. 6 • Provided approach for developing test automation scripts in plain simple language • 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

Slide 7

Slide 7 text

Automation Tools and 7 Automation Tools and Approach

Slide 8

Slide 8 text

Selenium, Selenesse and FitNesse Selenium • Selenium is an open source tool for browser automation • Selenium Tools Suite available: • Selenium IDE Selenesse • Selenesse is the modern bridge between FitNesse and Selenium FitNesse • Fitnesse is a lightweight, open- source framework for automated testing • It helps to collaboratively define © 2012 Fiserv, Inc. or its affiliates. 8 • Selenium IDE • Selenium Web driver • Selenium RC or Remote Control • Selenium-Grid collaboratively define and organize acceptance/functional tests • It works as a Wiki to easily create and edit scripts and documentation

Slide 9

Slide 9 text

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 or fixtures created RC Server under test Log Log Log

Slide 10

Slide 10 text

Automated Test in Plain Language © 2012 Fiserv, Inc. or its affiliates. 10

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Test Execution © 2012 Fiserv, Inc. or its affiliates. 12

Slide 13

Slide 13 text

Test Execution Result © 2012 Fiserv, Inc. or its affiliates. 13

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

Web Services Testing © 2012 Fiserv, Inc. or its affiliates. 15

Slide 16

Slide 16 text

Results and 16 Results and Conclusion

Slide 17

Slide 17 text

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. • Single wiki that acts as a repository © 2012 Fiserv, Inc. or its affiliates. 17 • Single wiki that acts as a repository

Slide 18

Slide 18 text

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 testing projects and has helped save time and cost by implementing automation development at a very low cost. © 2012 Fiserv, Inc. or its affiliates. 18

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

Questions?

Slide 21

Slide 21 text

Thank You