agile & the pilgrimage to continuous testing
TRANSCRIPT
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 1
Agile & the Pilgrimage to
Continuous Testing -
Automated Test Case Design
and Automated Test Case
Generation Robert Ashall
Softworx Technology Group
(o) 416-690-0730
(c) 416-464-4758
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 2
• Softworx - Canadian Distributor for Continuous Testing
– Optimized Test Case Generation; Test Script Generation
Automated Code Analysis & Regression Testing
Virtualize; SOAtest; JTest; C++Test; dotTEST; DTP
DevOps - Release Control & Deployment Automation
Dev/Test Environments on Demand
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 3
SDLC - The Era of Acceleration
• Constant Trade-offs that have business impact
Time
Quality
Scope
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 4
The Need for Speed is well documented
“I feel the need....the need....for speed”
Lt. Pete “Maverick” Mitchell in Top Gun
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 9
Continuous and Automated Testing is required
throughout the development process
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 11
Can we really create an automated agile process?
• What is needed?
– Tight coupling between design and component test
– Tight coupling between component and integration testing
– Automated creation of documentation for management
– Tight coupling with automated test execution
– Tight coupling with test and release management
– AND WITH SPEED!!!!
• So why can’t just any agile process work as needed for today’s complex multi-platform multi-browser products?
– Automation tools are too complex
– Tools from different vendors just aren’t tightly coupled
– People are just too slow for manual testing
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 14
Visibility Issues in Agile are Common
“If you need to develop the [agile] user story to maturity through
development, testing, and user interaction and you’re pipelining in two-
week intervals, it will probably be two months before you realize
something is wrong.”
– Joe Masters Emison, You're Not as Agile as You Think, CIO, 2013
What you can’t see WILL hurt you - so more is needed
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 16
100%
90%
80%
70%
60%
50%
40%
30%
20%
10%
0%
-
-
-
-
-
-
-
-
-
-
-
Using Agile and
Modeling
36.6%
35.8%
26.1%
1.5%
Not Using Agile
or Modeling
13.5%
41.1%
41.8%
3.6%
Ahead of Schedule
On schedule
Behind schedule
Don’t know
Modeling Increases Schedule Performance
Source:
VDC | Research 2016
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 19
Combine MBT Design with Test Automation
Manual
Script-Based
Capture/Replay
Frameworks
Keyword Driven
Test Models
MBT
Imp
roved T
esting
Effic
iency
Conformiq Creator™ • Automate test design
Conformiq Transformer • Simplify MBT adoption
using existing methods
• Shorten path to
test automation
• Automate test
execution
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 22
Conformiq 360O- Automate Test Design in 3 Easy Steps
The testing framework for:
Control, Visibility, Automation, Integration & Speed
Streamlined Model
Capture
1
Automatic Test Design with
One Click of a Button
2 3
Transform Generated Tests
for Automatic Execution &
Full Documentation
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 23
Step #1: Streamline Your Model Capture Activity Diagram
Activity
Decision
Data
• Model workflows in activity
diagrams
• Import diagrams from Visio, ARIS,
various BPMN tools, & Gherkin
code actions
Event
• Model available interfaces in
WYSIWYG editor
• Import interfaces from UI
recordings, WSDL/XSD, etc.
Structure Diagram
+
Modeling is not as difficult as it first appears
• "There is something confusing about the idea of good modeling being hard. After all, all one is doing is
describing how the system is supposed to work without having to worry about the implementation details. If
one can’t do that, then how is one supposed to manually create a correct, working system?“
- Thomas Mercer-Hursh, LinkedIn/Pulse, 27/10/15
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 24
Step #2: Fully Understand Your Test Cases
Generated Test
Names Individual Test
Diagram
Test Coverage
Matrix
Test Coverage
Summary
Generated Test
Case Description
Individual Test
Data
Project Control
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 25
Know Exactly What Has Been Tested
Test Generation
Information
Test Case
Coverage Test Coverage
Matrix
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 26
Most Algorithms Means Optimal Coverage
Type Description Category
Requirements Coverage Cover “requirement” statements
Basic Test
generation
Use Case Coverage Cover independently specified use cases
State Coverage Cover states of every state chart
Transition Coverage Cover transitions of every state chart
Condition Coverage Cover “true” and “false” cases of conditional constructs
Parallel Transition Coverage Cover all interleavings of independent transitions in
multi component models
Extended
Test
Generation
Data Coverage Cover all pairs or all combinations of data values
2 - Transition Coverage Cover combinations of entry/exit transitions of all states
Atomic Condition Coverage Cover all combinations that make Boolean expressions
evaluate to “true” or “false” (based on short-circuit)
Boundary Value Analysis Cover integer boundary conditions
All Paths - States Cover all arbitrarily states sequences Exhaustive
Test
Generation All Paths - Transitions Cover all arbitrarily long transition sequences
Can be used individually or in combination
On
ly C
on
form
iq
Typ
ica
l M
BT
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 27
Documentation
Custom
Foreign
Languages
Conformiq
360○ Test
Automation
ALM / Test Management
ALM / Requirements
Management
Repository
Conformiq 360o Test Automation TM
Step #3: Generate Test Scripts & Documentation
Automatic Test
Execution XML
Robot
Tricentis
TCL
Python
Perl
FitNesse
Junit
Proprietary
etc….
Existing Assets
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 28
Conformiq Transformer Features
• Automate test execution without programming – Create and automate tests using drag & drop
– Import of tests generated by Conformiq Creator for execution
– Import manual tests and Gherkin scripts for automated execution
– Parallel test execution
– Data-driven test execution
– Form based test suite, test case and keyword editors
• Assisted keyword automation (user interface inspector, action auto-complete, import of recorded object repositories)
• Live-check of test suites
• Built for compatibility – Export tests to any automated test execution framework
• Consistent and uniform user interface across all execution platforms
• Execute tests against Firefox, Chrome, IE
• Analyze test execution results with HTML reports
• Utilizes user’s Selenium and QTP (& other) keyword libraries
– Integrated with Eclipse for a consolidated view for the tester
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 29
Conformiq 360 Test Automation™
Next-generation agile testing solution based on:
1. Control
2. Visibility
3. Automation
4. Integration
5. Speed
Conformiq 360 Test Automation ™
enables complex
system testing for quality at the speed of development
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 30
Conformiq in Operation Control
Model Requirements
What to test
Coverage
• Model requirements and generated tests as you go
• Control the generation of tests – Risk based, negative
and happy paths
• Automate testing in sprint
Test what you want
Test when you want
Test how you want
Delivers
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 31
Conformiq in Operation Visibility
New Assets
Requirements
Traceability
• Visualize software actions and process
• Easily see what every test case covers
• Comprehend end-to-end flow
Visual Coverage
Pos/Neg Paths
Map Tests to Rqmts
Delivers
New & Existing Assets Test Case
Coverage
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 32
Conformiq in Operation Automation
• Determine invalid tests automatically
• Automatically generate from models scripts & oracle for
execution
• Automate existing manual test cases
• Always current documentation
Automatic test
script generation
Correct results
Optimize regression
pack
Delivers
Automatic Test
Case Creation
from Models
Automatic Test
Execution
Automatic
Documentation
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 33
Requirements Management
Modeling Assets
ALM /
Test Management
• Totally integrated for fully automated testing
• Import & automatically verify requirements coverage
• Import interfaces from UI recordings, WSDL/XSD, etc.
• Import models BPM or custom (iRise, Magic Draw, …)
• Export test cases to test management
Leverage your
SDLC framework
Synchronized
development & test
Delivers Export
Test Cases
Conformiq in Operation Integration
Links to Automated
Execution
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 34
Conformiq in Operation Speed
• Automatically yield minimum tests & maximum coverage
• Automatically utilize multiple processors & cloud-based
resources to create tests
• Reuse models as “IP” building blocks
• Use existing manual test cases for automation & models
Fewer tests
Greater coverage
Parallel computing
Easy model reuse
Automated manual
Delivers
Most Advanced
Algorithms &
Generation Engine
Multi-Core Processing
Reuse & Combine Models
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 35
Complete Automation of the End to End Testing Process
Conformiq 360O
– A Total Testing Transformation
Modeling
Business
Process
Management System
Under
Test
Automated
Test
Execution
Test
Management
Requirement
Management
Version
Control Manual
Tests
Test Design
Screen
Recording
Creator Transformer
Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. 36
Questions?
Robert Ashall
Softworx Technology Group
(o) 416-690-0730
(c) 416-464-4758