40
Leveraging Automated Testing to Improve Application Quality

Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

  • Upload
    others

  • View
    31

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Leveraging Automated Testing to Improve Application Quality

Page 2: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

INTRODUCTIONS

Matt Michaelsen

Tim McKeighan Misty Skudler

Kim Dietz

Page 3: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

AGENDA

• Automation Challenges

• Defining an Automation Strategy

• Automated Testing Demos

– Automated UI Testing

– API Testing

– Load Testing

• Quality in the Software Delivery Pipeline

• Monitoring Quality

• Q&A

Page 4: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

BUSINESS DRIVERS TODAY

Reduce time to market

Drive more customers to our software

Innovate from customer feedback

Every company is a software company

Improve application quality and performance

Page 5: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

SOFTWARE DELIVERY PIPELINE

Dev Test Staging Prod

Page 6: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Defining an Automation StrategyDefining an Automation StrategyResponsive UI TestingAPI TestingLoad TestingQuality in the Software Delivery PipelineMonitoring Quality

AUTOMATION CHALLENGES

Page 7: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

AUTOMATION CHALLENGES

• Identifying an automation strategy

• Determining where to start with automation

• Ensuring test execution efficiencies

• Benefiting from automation in the delivery cycle

• Providing visibility to the quality

Page 8: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Automation Challenges

Defining an Automation StrategyResponsive UI TestingAPI TestingLoad TestingQuality in the Software Delivery PipelineMonitoring Quality

DEFINING AN AUTOMATION STRATEGY

Page 9: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TESTING TYPES

Unit UI

Integration (API)

Load and Performance

Security

Exploratory Usability

UAT

AUTOMATED MANUAL

Unit UI

Integration (API)

Load and Performance

Security

Page 10: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

AUTOMATION APPROACH

• Which test cases should we automate?– Business critical test cases

– High risk functionality (must work)

– Test cases that are repetitive

– Test cases that time consuming

• Which are not the best candidates?– Newly designed test cases

– Requirements that are changing frequently

– Exploratory testing or ad-hoc testing

– Low value or minimal ROI test cases

Page 11: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

AUTOMATION ALLOCATION

• UI Testing– Highest cost

– Most fragile

– Slow

• API/Integration– Least costly

– High reliability

– Faster

• Unit Test– Low cost

– Requires ongoing maintenance

– Fastest

UI

API/Integration

Unit

Page 12: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TOOL CONSIDERATIONS

• Skillset of testers on the team

– Coding experience

– Manual testers

• Support for software platforms and configurations

– Desktop

– Mobile

• Integration with Agile Project Management tools

Page 13: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TESTING TOOLS

Microsoft VS ALMManual Testing

Team Foundation

Server

Exploratory Testing

Selenium UI Testing

Load Testing

API Testing

Automated UI Testing

Test Case DefinitionMicrosoft Test

Manager

Visual Studio

Unit Testing

Business Analyst/ Tester

Developer

Other ALM Tools

LogiGearTestArchitect

Page 14: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

AUTOMATED TESTING DEMOS

Page 15: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

DELIVERMORE WELLNESS SITE

• Health and Wellness application

• Releases after each two week sprint

• Responsive design

– PCs

– Mobile Devices

• Integrations with other systems/applications

• High user load

Page 16: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

DELIVERMORE WELLNESS SITE

Page 17: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Automation ChallengesDefining an Automation Strategy

Responsive UI TestingAPI TestingLoad TestingQuality in the Software Delivery PipelineMonitoring Quality

UI TESTING

Page 18: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

UI TESTING

Service Layer(Business Logic)

Database Layer(Database)

UI Testing Performed HerePresentation Layer

(User Interface)Presentation Layer

(User Interface)

Page 19: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

WHY AUTOMATE UI TESTING?

• Multiple Platforms and Configurations

– Desktop

– Mobile Devices

– Operating Systems

– Browsers

• Manual Execution is very time consuming

• Consistency of test execution

• Who likes to test the same thing over and over and over….?

Page 20: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TYPES OF UI AUTOMATION

• Scripting

• Keyword-based / Action-based

Page 21: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TESTARCHITECT ARTIFACTS

• Interfaces

Page 22: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TESTARCHITECT ARTIFACTS

• Actions

Page 23: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TESTARCHITECT ARTIFACTS

• Test Cases

Page 24: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

UI TESTING DEMO

• Create an automated UI test case

– User can log in and navigate to the Contact Page

• Show how one test can be used for a Responsive UI

• Run test case on desktop and mobile device

Page 25: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Automation ChallengesDefining an Automation StrategyResponsive UI Testing

API TestingLoad TestingQuality in the Software Delivery PipelineMonitoring Quality

API TESTING

Page 26: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

API TESTING

Service Layer(Business Logic)

Database Layer(Database)

API Testing Performed Here

Presentation Layer(User Interface)

Service Layer(Business Logic)

Page 27: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

WHY AUTOMATE API TESTING?

• Each scenario could have many variations of inputs and outcomes

• Service could have multiple calling applications

• Quickly Test network connectivity across application enterprise

Page 28: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

API TESTING DEMO

LogiGearTestArchitect

Test Harness(C#)

Calculate Wellness

Web Service

Calculate Wellness Business Objects

Page 29: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Automation ChallengesDefining an Automation StrategyResponsive UI TestingAPI Testing

Load TestingQuality in the Software Delivery PipelineMonitoring Quality

LOAD TESTING

Page 30: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

LOAD TESTING

Service Layer(Business Logic)

Database Layer(Database)

Load Testing Performed Here

Presentation Layer(User Interface)

Service Layer(Business Logic)

Presentation Layer(User Interface)

Load Testing Performed Here

Page 31: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

WHY AUTOMATE LOAD TESTING?

• Difficult to simulate actual expected loads manually

• Measure Performance Impact of changes

Page 32: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

TYPES OF LOAD TESTS

• Smoke

• Stress

• Performance

• Capacity Planning

Page 33: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

MEASURING THE IMPACT OF CHANGES

Page 34: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

LOAD TESTING DEMO

Visual Studio

Calculate Wellness Web

Service

Delivermore Wellness Web

Server

Page 35: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

Automation ChallengesDefining an Automation StrategyResponsive UI TestingAPI TestingLoad TestingQuality in the Software Delivery Pipeline

Monitoring Quality

QUALITY IN THE PIPELINE

Page 36: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

SOFTWARE DELIVERY PIPELINE

Page 37: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

MONITORING QUALITY

• Testing Results for Automated and Manual Testing

• Iteration/Sprint Level

• Regression

– Configuration

• Browser

• Device

– Environment

Page 38: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

SUMMARY

• Defining a strategy and implementing automated testing for your application

• Demos of Automated UI, API & Load Testing

• Incorporating quality within your software delivery pipeline

• Monitoring quality for your project

Page 39: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

Copyright © 2016 Deliveron Consulting Servicesw w w . d e l i v e r o n . c o m

LINKS

• Deliveron

– http://www.deliveron.com/

– https://www.linkedin.com/company/deliveron-consulting-services

• Logigear TestArchitect

– http://testarchitect.logigear.com/

– If you would be interested in a TestArchitect demo or trial, please contact Keith Holt at Deliveron

• 402.238.1399 ext. 105

[email protected]

Page 40: Leveraging Automated Testing to Improve Application Qualityfiles.meetup.com/18247475/Leveraging Automated... · WHY AUTOMATE API TESTING? •Each scenario could have many variations

We believe in HELPING our CUSTOMERS create software SOLUTIONS in a better way