Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Selenium and Fitnesse Integration

Selenium and Fitnesse Integration

This presentation is among the Top 27 Best Papers/Practice/Tutorials selected, out of 460+ submissions received, to be presented @STC 2012.

Presentation Abstract

Nowadays there has been a huge buzz of automation tools present in the market. Every tool has its own set of good features along with some loopholes or drawbacks.

So, the trend followed is to pick the best features out of various tools and integrate them in a single system to work according to the desired requirements and fulfill the goal of automation testing.

Case Study:
For developing Web (UI) and web services automation to perform functional and acceptance testing we needed to use open source tools. Our manual testers had to develop the automated tests so we had to pick the tool which they can easily use and develop automated tests. For web services testing we did not had option to use other tools like Soap UI.
We identified Selenium and Fitnesse as the automation tools that supported most of our requirements and the challenge was to integrate them.

Challenges:
• Integrating Selenium with Fitnesse.
• Preparing scenario library that is easy to use for manual testers in writing automated tests.
• Application deals with a hardware setup to automate scanned image exceptions.
• Web service testing using FitNesse

Solutions:
• To bridge Selenium and Fitnesse together we have used Selenesse.
• A scenario library with an example of the sample test in FitNesse wiki was added to help manual tester in writing automated tests.
• Prepared fixtures for reading scanned image exceptions and removing them.
Developed a service library in .Net for web services testing.

About the Author

Kafeel Ahmad (Author) has more than 5 years of experience in Software Testing & Automation Development. He is currently working as QA Analyst in Fiserv India Pvt. Ltd., Noida. His core competency is automation testing and focuses on other areas like performing feasibility analysis of different applications for automation, creating automation plans, continuous improvement in automation framework, quality control activities, automation knowledge sharing, leading & mentoring automation engineers within the organization. He is involved in development of automation frameworks and designing of framework architecture. He has good understanding of Software Testing process and has strong expertise on various automation tools like Coded UI, Selenium and QTP.

More Decks by QAI Software Testing Conference

Other Decks in Technology

Transcript

  1. 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
  2. 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.
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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