Scriptless Test Automation. Next generation technique for improvement in software testing. Version 1.0 February, 2011 WHITE PAPER



Similar documents
Should Costing Version 1.1

Functional Test Automation. Leverage Automation Frameworks for Efficiencies in Software QA. Version 1.0 March 2009 WHITE PAPER

Why SME s Should Outsource Payroll

W H I T E P A P E R. Prioritizing your PLM initiatives & spends

Leveraging BPM Workflows for Accounts Payable Processing BRAD BUKACEK - TEAM LEAD FISHBOWL SOLUTIONS, INC.

SMARSH WEBSITE & HOSTING REPRESENTATIVE TERMS & CONDITIONS

1. GRANT OF LICENSE. Formdocs LLC grants you the following rights provided that you comply with all terms and conditions of this EULA:

Desktop Authority vs. Group Policy Preferences

Programmabilty. Programmability in Microsoft Dynamics AX Microsoft Dynamics AX White Paper

formerly Help Desk Authority Quest Free Network Tools User Manual

BlackBerry Enterprise Server Express. Version: 5.0 Service Pack: 4. Update Guide

CA Aion Business Rules Expert 11.0

4.0. Offline Folder Wizard. User Guide

Governed Migration using Dell One Identity Manager

Partners in Care Welch Allyn Connex Software Development Kit License Agreement

TERMS AND CONDITIONS

SAP Mobile Documents. December, 2015

Web Site Development Agreement

Self Help Guides. Setup Exchange with Outlook

Collaborative and Agile Project Management

Greater Continuity, Consistency, and Timeliness with Business Process Automation

SAP HANA Cloud Platform

New 11g Features in Oracle Developer Tools for Visual Studio. An Oracle White Paper January 2008

Quick Connect Express for Active Directory

Pipeliner CRM Phaenomena Guide Getting Started with Pipeliner Pipelinersales Inc.

Datacenter Management Optimization with Microsoft System Center

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Defender Delegated Administration. User Guide

THIS PRODUCT DOES NOT TRANSMIT ANY PERSONALLY IDENTIFIABLE INFORMATION FROM YOUR COMPUTER TO MICROSOFT COMPUTER SYSTEMS WITHOUT YOUR CONSENT.

Expanded Frequency Capping

Know the Difference. Unified Functional Testing (UFT) and Lean Functional Testing (LeanFT) from HP

Acquia Certification Program Agreement

TERMS OF USE 1. Definitions

Synchronization Server SDK Version Release Notes and Known Issues List

Protecting Data with a Unified Platform

CA Aion Business Rules Expert r11

Web Hosting Agreement

AGREEMENT BETWEEN USER AND International Network of Spinal Cord Injury Nurses

Pipeliner CRM Phaenomena Guide Add-In for MS Outlook Pipelinersales Inc.

1. GRANT OF LICENSE. Acunetix Ltd. grants you the following rights provided that you comply with all terms and conditions of this EULA:

Application Test Management and Quality Assurance

Certification Exam or Test shall mean the applicable certification test for the particular product line or technology for which You have registered.

TERMS & CONDITIONS. Introduction

Windows Scheduled Tasks Management Pack Guide for System Center Operations Manager. Published: 07 March 2013

Statement of Work. for. Online Event Registration Product Deployment for Salesforce Implementation. for. Open Web Application Security Project (OWASP)

All copyright, trade mark, design rights, patent and other intellectual property rights (registered or unregistered) in the Content belongs to us.

Best Practices for Installing and Configuring the Hyper-V Role on the LSI CTS2600 Storage System for Windows 2008

AGREEMENT BETWEEN USER AND Global Clinical Research Management, Inc.

Software Development Kit

RealShot Manager Compression Server software

Intelligent Monitoring Configuration Tool

Quest ChangeAuditor 4.8

Our Terms for Website Design, Development, Hosting and Promotional Services

Windows Embedded Security and Surveillance Solutions

The role of integrated requirements management in software delivery.

Service Virtualization CA LISA introduction. Jim Dugger CA LISA Product Marketing Manager Steve Mazzuca CA LISA Public Sector Alliances Director

END- USER LICENSE AGREEMENT FOR Helpdesk Pilot

BES10 Self-Service. Version: User Guide

SAP BusinessObjects Business Intelligence 4.1 One Strategy for Enterprise BI. May 2013

Logging and Alerting for the Cloud

Design & Innovation from SAP AppHaus Realization with SAP HANA Cloud Platform. Michael Sambeth, Business Development HCP, SAP (Suisse) SA

TERMS AND CONDITIONS

Quartz Legal Terms and Conditions

Terms & Conditions Template

Crestron VMK-WIN TouchPoint Virtual Mouse & Keyboard Software for Windows Installation Guide

Oracle Application Development Framework Overview

Windows Hard Disk Encryption

Driving Your Business Forward with Application Life-cycle Management (ALM)

The Credit Control, LLC Web Site is comprised of various Web pages operated by Credit Control, LLC.

Web Site Hosting Service Agreement

How To Manage A Privileged Account Management

Protecting Data with a Unified Platform

Application to access Chesters Trade

are you helping your customers achieve their expectations for IT based service quality and availability?

Procon Frostbite 1.1 and subsequent releases End User License Agreement Revised: April 7, 2015

Reimagining Business with SAP HANA Cloud Platform for the Internet of Things

Data center and cloud management. Enabling data center modernization and IT transformation while simplifying IT management

Dynamic Data Center Update:

SAP SE - Legal Requirements and Requirements

Promotion Model. CVS SUITE QUICK GUIDE 2009 Build 3701 February March Hare Software Ltd

2007 Quest Software, Inc. ALL RIGHTS RESERVED. TRADEMARKS. Disclaimer

SAP TEST ACCELERATION AND OPTIMIZATION AUTOMATION USING HP TOOLS QC, BPT AND QTP

CONSULTING SERVICES AGREEMENT

Key Benefits of Microsoft Visual Studio Team System

Content Management for SAP Business Suite powered by SAP HANA

Dell Enterprise Reporter 2.5. Configuration Manager User Guide

Microsoft Dynamics GP. Engineering Data Management Integration Administrator s Guide

ADP Ambassador /Referral Rewards Program. Terms and Conditions of Use

SAP Document Center. May Public

Key Benefits of Microsoft Visual Studio 2008

DATA MASKING A WHITE PAPER BY K2VIEW. ABSTRACT K2VIEW DATA MASKING

Cloud Identity Management Tool Quick Start Guide

The Innovation-Driven Enterprise

Transcription:

Scriptless Test Automation Next generation technique for productivity improvement in software testing Version 1.0 February, 2011 WHITE PAPER

Copyright Notice Geometric Limited. All rights reserved. No part of this document (whether in hardcopy or electronic form) may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, to any third party without the written permission of Geometric Limited. Geometric Limited reserves the right to change the information contained in this document without prior notice. The names or trademarks or registered trademarks used in this document are the sole property of the respective owners and are governed/ protected by the relevant trademark and copyright laws. This document is provided by Geometric Limited for informational purposes only, without representation or warranty of any kind, and Geometric Limited shall not be liable for errors or omissions with respect to the document. The information contained herein is provided on an AS IS basis and to the maximum extent permitted by applicable law, Geometric Limited hereby disclaims all other warranties and conditions, either express, implied or statutory, including but not limited to, any (if any) implied warranties, duties or conditions of merchantability, of fitness for a particular purpose, of accuracy or completeness of responses, of results, of workmanlike effort, of lack of viruses, and of lack of negligence, all with regard to the document. THERE IS NO WARRANTY OR CONDITION OF NON INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE DOCUMENT. IN NO EVENT WILL GEOMETRIC LIMITED BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. Confidentiality Notice This document is disclosed only to the recipient pursuant to a confidentiality relationship under which the recipient has confidentiality obligations defined herein after. This document constitutes confidential information and contains proprietary information belonging to Geometric Limited, and the recipient, by its receipt of this document, acknowledges the same. The recipient shall use the confidential information only for the purpose defined above for which this document is supplied. The recipient must obtain Geometric Limited s written consent before the recipient discloses any information on the contents or subject matter of this document or part thereof to any third party which may include an individual, firm or company or an employee or employees of such a firm or company. The recipient acknowledges its obligation to comply with the provisions of this confidentiality notice. 2

Contents Scope: GUI based Test Automation... 4 Evolution of Test Automation... 4 Test Automation using third party test tools... 4 Constituents of Scriptless Test Automation tool or framework... 7 Inference... 10 Caution... 10 About the Author... 10 About Geometric... 11 3

Scope: GUI based Test Automation GUI based Test automation is the activity of creating automated test scripts that can be run without human intervention. They run off the same UI that the end User or Customer would see. These scripts can cover a lot of application areas in a repeatable manner. They can cut down on test execution time significantly as they run continuously and unattended, even overnight. From here on, in this document, Test Automation will mean GUI based Test Automation. Evolution of Test Automation Historically, Test Automation tools started off by giving a macro recording facility example is MS Excel. Though the application UI was used to record the automation script, the replay mechanism depended on synchronous API calls, rather than the UI. The test execution engine would fire a command, and then wait for the command to complete. A macro based tool was good for such short length automation. Combine a logical sequence of such short length macros, and your test flow is automated! This mechanism can be seen in some desktop based CAD tools, wherein macros can be quickly recorded, and the recorded macros can be immediately played back with little or no modification. This approach is the best, even today, but applies to only those applications that have such a framework built in. This is a good example of testability being built into an application, right at the design stage. However, not all software applications that are in the market today have such a test framework built in. It s this segment of applications that the third party test tools address. Test Automation using third party test tools Test automation using third party test tools historically started with test tools that provided a dumb record and replay facility. Though this approach worked well for some desktop based applications, there was a lot to be desired in terms of execution speed control, type of validation check points, modularity of scripting, how well test input data could be fed to the script. This was the first generation of test automation tools. Moreover, even though the speed of automation creation was fast, the scripts were very sensitive to UI changes, and changes to UI would eventually result in throwing away the previous automation scripts and creating new ones. 4

Figure 1. Test Automation Productivity The second generation of test automation tools brought a whiff of fresh air; they brought a lot of features to the test tool that brought up similarities between test tool IDE and developer s IDE. These tools provided full fledged scripting, or even objected oriented language support to the automation engineer. A lot of tool APIs were present to simplify the common windows based tasks like application launch, file operations, generating elementary test reports. Some of these also came with platform based extensibility SDK, for example, for.net or Java. The variety of object recognition as well as check points possible was extensive and coding could achieve virtually anything that the automation engineer desired be it data driving, keyword driving, use of variables, functions, separation of object definition from object references across the scripts. However, this script based approach still needs a lot of in project investments, in terms of time to learn and gain expertise in the scripting language, as well as the time to create a suitable framework that not only harnesses reusable code, but also eases the data driving of the scripts all of these eventually draw a line between the manual tester and the automation engineer. So, even though the automation feasibility problem got solved with the advent of more robust object recognition technology, the productivity problem still leads to a low ROI from test automation. With these thoughts in the background, we started looking for test automation accelerators. The quest for ROI from Test Automation We evaluated the following approaches for the productivity problem: 5

Table 1. Evaluation of various approaches # Approach How it helps Remarks 1 Open source tool Direct reduction in investment needed Might help overcome budgetary constraints 2 Big bang automation 3 Pre built framework Benefit of automation made available much sooner by deploying a huge automation team Part of the development already done Available at low cost as it is sold to multiple buyers Investment in effort might be much larger than that in the tool Test Tool support virtually non existent Usually take time to catch up on the latest platform or technology Could be constrained by tool costs High GUI stability important ERP example: SAP automation frameworks 4 Model based Automation based on a model of the app, thus the scale of the operation is smaller Being based on a model, it provides a higher level of abstraction, thus test design itself can benefit from this approach Many different approaches evolving Wait and watch 5 1 st generation record and playback, with little or no scripting support Extremely rapid creation of automation Poor robustness Poor maintainability Lack of tool APIs hamper creation of any suitable frameworks Usually unsuitable for enterprise apps Perhaps for very stable, desktop apps 6

6 2 nd generation Record and playback, with scripting language support Robust object recognition Maintainability has to be built in through a suitable framework Enables the automation engineer with a full fledged scripting language support Coding skills required None of the above approaches looked promising enough in terms of productivity of automation script generation. But the second generation test tool IDEs have become full fledged code editors that support the automation engineer in not only creation of scripts but also debugging and execution. And yet, frameworks still need to be built before any long term test automation project can go live with testing. At this point, we started thinking on other lines. Years ago, Microsoft s Visual Studio and Foundation Classes brought a quantum jump in the productivity with which Windows GUI could be developed instead of hand coding with the Win32 API, developers could now use wizards to visually design the GUI in a studio. We soon discovered that Scriptless tools bring the same concept to test automation. Instead of a code editor, automation engineers now work in a graphical environment, where they can compose automated tests by selecting objects and actions from dropdown menus. They can also visually create conditions, iterations, etc. We have worked with several Scriptless tools and are getting 50% or higher productivity as compared to script based automation. We are recommending it to our customers, and of course, for our own internal projects. We believe it is justified to view Scriptless automation tools as constituting the next generation of tools that will gain prominence in test automation. Constituents of Scriptless Test Automation tool or framework Scriptless test automation provides a very easy to use interface instead of learning a scripting language, or even a programming language, one gets to work on a drop down and Excel kind of user interface. 7

All the requirements of a test automation script, like the sequence of keywords, steps within each keyword, data per step, variables that have a scope of the full length of the keyword, or even across the sequence of keywords for the test, and UI object definitions are available in a very easy to use interface and no programming is involved! All the good concepts of test automation like data driving, keyword driving, and modularity are all packaged in very easy to use software, without taking away any of the power that a scripting based tool provides. Some of the notable features of a Scriptless framework that aid in automation creation are: Figure 1. Inputs and Activities required to Create Automated Test Moreover, they have a client server based approach, wherein, automation once created is readily available to the whole team, at the push of a button. These tools not only provide script creation support, but also go beyond they let you debug from virtually any step within the script. They also provide test management required for test automation, like composing test suites, running the test suites, reporting the test run result. If one needs history of test runs, even that is available! 8

Some of the notable features of a Scriptless framework that aid in Test execution or re execution are: Figure 2. Activities involved in Automated Test Execution Some of the notable features of a Scriptless framework that aid in Automation Result Analysis are: Figure 3. Current or Historical Test Run Analyses We would like to note two such tools that have a lot of these features Certify from Worksoft, which is a test automation tool, as well as Qualitia from Zensoft Services, which is a test automation framework that rides on top of other leading test automation tools such as QTP, RFT. We believe other vendors are also working on providing Scriptless capabilities. ROI from these tools is impressive as they are productive virtually from day one, as you do not have to spend time initially on writing a framework. Add to this, the fact that they are time tested across multiple applications and over considerable amount of time. The fact that they are easy to use also means that there is a very good rate of adoption of the tool by the Manual Tester community, and this benefits the organization! 9

Inference Scriptless automation has the potential to be the next generation automation technology. It not only addresses test automation s productivity problem, but also does it in a way that does not force you to draw a line between the manual tester and the automation engineer. Moreover, it lends a comprehensive UI to all the test automation Best Practices, thus it enables the Organization to Standardize after one has done the first test automation project on a Java based application, one does not need to start from scratch on a.net based project the same test tool and the same UI will apply, as all the framework stuff is already available. Caution A note of caution, not all tools that initially appear to be Scriptless are truly script less, or are as feature packed as others. Automation of custom UI components could in some cases need coding expertise. Not all test automation tools support all technologies so check with the tool vendor for any specific technology requirements. Distributed test execution across machines, and a unified result reporting is a work in progress in some cases. About the Author Sudipto Paul is a Test Consultant at Geometric, and is responsible for building test teams, initial hand holding and guidance on test processes for iterative and agile projects. He has over 13 years of experience in the information technology field, and has had an all round exposure to the software development life cycle. His experience includes roles of test consultant, test automation architect & engineer, manual test lead, requirements analyst, designer and developer. Sudipto's primary areas of interest include test processes and technical testing. He has authored several utilities and test automation frameworks to aid both developer side and tester side testing. Sudipto hold a BE (Mechanical Engineering) from Walchand College of Engineering, Sangli, and PGCBM from XLRI, Jamshedpur. 10

About Geometric Geometric (www.geometricglobal.com) is a specialist in the domain of engineering solutions, services and technologies. Its portfolio of Global Engineering services and Digital Technology solutions for Product Lifecycle Management (PLM) enables companies to formulate, implement, and execute global engineering and manufacturing strategies aimed at achieving greater efficiencies in the product realization lifecycle. Headquartered in Mumbai, India, Geometric was incorporated in 1994 and is listed on the Bombay and National Stock Exchanges. The company recorded consolidated revenues of Rupees 5.11 billion (US Dollars 108.1 million) for the year ended March 2010. It employs over 3600 people across 10 global delivery locations in the US, Romania, India, and China. Geometric was assessed as CMMI 1.1 Level 5 for its software services and is ISO 9001:2008 certified for engineering operations. The copyright/ trademarks of all products referenced herein are held by their respective companies. 11