11/1/2013. Championing test automation at a new team: The challenges and benefits. Alan Leung @ PNSQC 2013. About you?



Similar documents
SoapUI NG Pro and Ready! API Platform Two-Day Training Course Syllabus

Agile Web Service and REST Service Testing with soapui

Chapter 1: Web Services Testing and soapui

Module 4: File Reading. Module 5: Database connection

Performance Testing Process

Work Experience HP ALM (Quality Center), Bugzilla

Automate APIs with Groovy Script

Performance Testing. Why is important? An introduction. Why is important? Delivering Excellence in Software Engineering

SOFTWARE TESTING TRAINING COURSES CONTENTS

Quality Assurance Training Program

SECTION 4 TESTING & QUALITY CONTROL

Web-Services Testing Tools

Web Service Testing. SOAP-based Web Services. Software Quality Assurance Telerik Software Academy

WEB SERVICES TEST AUTOMATION

Web Application Testing. Web Performance Testing

Manual Tester s Guide to Automated Testing Contents

Seeking Nirvana. Jason Collins Director Solution Sales ITKO, a CA Technologies company

QA Tools (QTP, QC/ALM), Selenium with Java, Mobile with Automation, Unix, SQL, SOAP UI

Copyrighted , Address :- EH1-Infotech, SCF 69, Top Floor, Phase 3B-2, Sector 60, Mohali (Chandigarh),

Getting started with API testing

Automating Security Testing. Mark Fallon Senior Release Manager Oracle

Introduction to Automated Testing

Quality Assurance - Karthik

Business Application Services Testing

Automating Testing and Configuration Data Migration in OTM/GTM Projects using Open Source Tools By Rakesh Raveendran Oracle Consulting

Performance Testing and Optimization in Web-Service Based Applications

Techniques and Tools for Rich Internet Applications Testing

MOBILE APPLICATION TESTING ENGINEER

soapui Product Comparison

Chapter 8 Software Testing

Test Automation Framework

Co-Presented by Mr. Bill Rinko-Gay and Dr. Constantin Stanca 9/28/2011

SoMA. Automated testing system of camera algorithms. Sofica Ltd

Testing Best Practices

No quality mobile apps without testing in production (TiP) Marc van t Veer

Th3 - Open Source Tools for Test Management

The Test Automation Journey

ASSURING SOFTWARE QUALITY USING VISUAL STUDIO 2010

Introduction and Overview for Oracle 11G 4 days Weekends

Standard Glossary of Terms Used in Software Testing. Version 3.01

A Comparative Study and Analysis of Web Service Testing Tools

Automated Testing Best Practices

SmartBear Software Pragmatic Agile Development (PAD) Conceptual Framework

Test Automation Process

Test Plan Template: (Name of the Product) Prepared by: (Names of Preparers) (Date) TABLE OF CONTENTS

CERTIFIED MULESOFT DEVELOPER EXAM. Preparation Guide

FileMaker Pro and Microsoft Office Integration

Data Warehouse / MIS Testing: Corporate Information Factory

An Overview of Agile Testing

Summer Internship 2013 Group No.4-Enhancement of JMeter Week 1-Report-1 27/5/2013 Naman Choudhary

CA APM Cloud Monitor. Scripting Guide. Release 8.2

Wind River. Intelligent Device Platform XT EMS Profile EMS DEVICE MANAGEMENT USER'S GUIDE WIND RIVER 1.0

Testhouse Training Portfolio

Improving database development. Recommendations for solving development problems using Red Gate tools

QA Tools (QTP, QC/ALM), ETL Testing, Selenium, Mobile, Unix, SQL, SOAP UI

Mohammed Khan SUMMARY

U.S. Navy Automated Software Testing

Oracle Insurance Policy Administration System Quality Assurance Testing Methodology. An Oracle White Paper August 2008

Test What You ve Built

Healthcare Information Exchange Software Testing

Enterprise Test Management Standards

Helping the Cause of Medical Device Interoperability Through Standardsbased

Software Automated Testing

Automation can dramatically increase product quality, leading to lower field service, product support and

Bringing Value to the Organization with Performance Testing

II. II. LITERATURE REVIEW I. INTRODUCTION

Automating New Market Entry Rollout

Using WebLOAD to Monitor Your Production Environment

WHITEPAPER. Improving database development

Quality Management with Rational tools

Smarter Balanced Assessment Consortium. Recommendation

Designing a Software Test Automation Framework

Performance Testing Process A Whitepaper

QTP Open Source Test Automation Framework Introduction

District Data Coordinator Toolbox: Automating Data Acquisition Using Database Connections in SAS

The Process Guidelines should be used in conjunction with the standard OUM process guidelines when using Testing and Quality Management Tools.

MANUAL TESTING. (Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn.?? New Batches Info

Flexible Engineering Process Automation Process: Continuous Integration & Test

An Increase in Software Testing Robustness: Enhancing the Software Development Standard for Space Systems

Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager

Laila TECHNICAL SKILLS

How To Ensure That Your Computer System Is Safe

How To Test A Web Application For Campaign Management On A Web Browser On A Server Farm (Netherlands) On A Large Computer (Nostradio) On An Offline (Nestor) On The Web (Norton

SOA Solutions & Middleware Testing: White Paper

The Project Management Plan will be used to guide, communicate and coordinate project efforts.

'& ##! %1# ##!!* #!!! 23!!!

Scalable Web Programming. CS193S - Jan Jannink - 1/12/10

Ce document a été téléchargé depuis le site de Precilog. - Services de test SOA, - Intégration de solutions de test.

Latest Trends in Testing. Ajay K Chhokra

How to Ingest Data into Google BigQuery using Talend for Big Data. A Technical Solution Paper from Saama Technologies, Inc.

Capabilities of a Java Test Execution Framework by Erick Griffin

HR Onboarding Solution

Automation using Selenium

Example Software Development Process.

UML-based Test Generation and Execution

E-vote 2011 Version: 1.0 Testing and Approval Date: 26/10/2009. E-vote SSA-U Appendix 5 Testing and Approval Project: E-vote 2011

WEMS IT User Group. Mark Brodziak: Solutions Architect John McLean: Project Manager Gary Wade: IT Consultant. 20 March 2015

Performance Testing Web 2.0

Microsoft SQL Server Beginner course content (3-day)

Avaya Patch Program Frequently Asked Questions (For All Audiences)

Transcription:

Championing test automation at a new team: The challenges and benefits Alan Leung @ PNSQC 2013 About you? 1

My experience, experiences of audience, discussion Agenda 1. Background 2. Selecting tools 3. Custom framework within SoapUI 4. Process of introducing test automation Overcoming barriers Guiding with limited time 5. Our Results 6. Automated Testing Best Practices Context: Background of project Provincial health ministry Patient demographics EMPI Aggregation Trusted Source S2S/SOA Internal and external providers/consumers 2

More context Multi-year project Releases every 6 months Gated test phases: System Test User Acceptance Testing Stress and Load Testing Production Why automation? Testing S2S messaging is different from GUI testing XML -> HL7 SOAP REST More reasons to automate: New interfaces Not enough staff 3

Agenda 1. Background 2. Selecting tools 3. Custom framework within SoapUI 4. Process of introducing test automation Overcoming barriers Guiding with limited time 5. Our Results 6. Automated Testing Best Practices Selecting tools Better results with better tools Example: Building a deck 4

Comparing tools Features Maturity Support Extensibility Drug domain test tool Project developed test tools Good Good X OK OK X OK X RESTClient OK OK X OK SoapUI Good Good Good Good 9 Pilot SoapUI 1. Google Maps API 2. Active Query interface 10 5

Framework within SoapUI Run TestCase Java extensions Event handlers Agenda 1. Background 2. Selecting tools 3. Custom framework within SoapUI 4. Process of introducing test automation Overcoming barriers Guiding with limited time 5. Our Results 6. Automated Testing Best Practices 6

Process of introducing test automation Overcoming barriers 13 Barriers to change, Impetus for change Barriers Can it be automated? Can I trust its verification? How much time/effort would it take to automate? Will I be able to finish testing with this up-front effort that s necessary? Is it worth it? Cost vs. benefit? Can t we just do [X] manually? Motivations Testing SOA interfaces manually was not working well -> Open to other ideas Seeing working examples Have enthusiasm for technical solution 7

Working as a project team Keep in mind Don t step on egos Avoid interfering E.g. Coding standards Don t provide solution if they just want answer to specific question Process of introducing test automation Guiding with limited time Task to accomplish How to learn/instruct Task to accomplish Learning capabilities of tool Create valid web service requests Generate test data Guidance provided (if necessary) Working SoapUI example PowerPoint slide deck Existing test requests Trial and error Project documentation deliverables HL7v3 crash course 2 pg. Word doc and some PowerPoint slides Examples of string manipulation online Likewise for use of JDBC TestStep 8

Interpret error messages Web service error messages sometimes cryptic: Questions sometimes repeated Lesson learned: Compile FAQ Verify web service response E.g. With XPath expressions Working SoapUI example Online resources Complex situations: Provided example case by case 9

Verify web service triggered downstream processes Working SoapUI example PowerPoint slide deck explaining example Logging of testing efforts Original Groovy script written by tester Converted to Java event handler 10

Keys to success Good technical background Working examples Available knowledge online Just in time training Agenda 1. Background 2. Selecting tools 3. Custom framework within SoapUI 4. Process of introducing test automation Overcoming barriers Guiding with limited time 5. Our Results 6. Automated Testing Best Practices 11

Results - Better test coverage interface A: number of test scenarios 110 -> 480 interface B: 88 -> 125 Results - Faster execution of tests interface A: 7 days -> 7 minutes interface B: 475 minutes -> 111 minutes Automated versus manual execution 12

Results Assistance to other teams Re-usable test harnesses UAT team Application Maintenance Services team Further training done by system test team Results - Automated tests document application How it s supposed to work Potentially stale documentation How it actually works Application behavior under test -> accurate Not subject to interpretation Test suite sometimes easier to locate Test results -> update business rules documentation 13

Results - Improves overall team velocity 1. Tester finds defect 2. Developer changes code 3. Developer verifies defect fixed 4. Redeployment 5. Tester verifies defect fixed 6. Tester runs automated regression test suite 7. Fix introduced new defect, detected within minutes Team velocity improved Faster detection of inadvertent defects Developer is not left idle Prompts better unit testing Fewer re-deployments -> less impact to other teams Results Re-usable Skills Examples of innovation by test team: automated logging of test execution parameterizing calls to Run TestCase calling batch file to execute external program from SoapUI resolving memory leak issues when looping execution with Groovy dynamically changing headers to reflect different security models via Groovy scripts and Properties checking for audit records via SQL statements/jdbc TestStep dynamically changing endpoints and parameters to reflect changing input records using Script Assertions as a reporting tool to write output to various files reading test or query data from flat files or database tables 14

Viability of our approach elsewhere Multi-year project Certain that team will perform regression testing Releases every 6 months Time to learn automated testing techniques Gated test phases Able to assist downstream test teams Agenda 1. Background 2. Selecting tools 3. Custom framework within SoapUI 4. Process of introducing test automation Overcoming barriers Guiding with limited time 5. Our Results 6. Automated Testing Best Practices 15

Best practices Automatically log test execution Parameterize for uncertainty Eliminate duplication Treat testing artifacts like application source code Best practices - Verify validity of assertions Strict XPath Match against query response Versus Contains 16

Best practices Pay for better tools Disclosure: Not affiliated with SmartBear License cost versus consultant time SoapUI Pro Easier for users new to SoapUI Less time developing scripts Team support to manage shared SoapUI project file Conclusion Good tools necessary Commitment Support Management Development team Benefits Testing teams Development teams Skills gained 17

Thank you, Questions/Comments welcome Image credits Slide title About me About you? Attribution Some rights reserved by sfllaw Some rights reserved by wburris Some rights reserved by The New Institute Framework within SoapUI Some rights reserved by kaz k Process of introducing test automation Some rights reserved by still, still, still. Working as a project team Keys to success Results - Faster execution of tests Some rights reserved by Luigi Mengato Some rights reserved by mikebaird Some rights reserved by ~Twon~ Some rights reserved by jon- Results - Automated tests document application Some rights reserved by sindesign 18