slide 1 an introduction to test automation architecture with rational functional tester matt archer...
TRANSCRIPT
Slide 1
An Introduction to Test Automation Architecture
with Rational Functional Tester
Matt Archer Senior Consultant
Slide 2
Rational Unified Process?
Test Automation?
A Quick Survey…Hands Up!
“Test Automation Architecture” Document?(The subject of this talk)
Slide 4
Test Automation
Introduction
• Automated Testing Tool for Java, Web and .NET Applications (+ Others)
• Significant Structural and Behavioural Elements
with
• “Software Testing Software”• “Capture & Replay” Architecture
IBM Rational Functional Tester
Slide 5
When Automating Testing, What’s Significant?
Structural• Test Script Annotations
− Demo• Test Location & Hierarchy
• Naming Conventions
• Data Structure
• Log Format
Behavioural• Recording Test Results
− Demo• Custom Recognition Techniques
− Demo• Custom Verification Techniques
• Failure Recovery
• Test Environment Control
Slide 6
Why Document Your Test Automation Architecture?
Test Automation Architecture
Test Location & Hierarchy
Test Script Annotations
Recording Test Results
Custom Recognition Techniques
AutomatedTests
ManualTests
Tester 1 Tester 2
Slide 7
Test Automation Architecture in a Nutshell
A Consistent Approach for…
Common Structural Tasks&
Common Behavioural Tasks
Slide 8
Test Automation Architecture Timeline
InceptionInception ElaborationElaboration ConstructionConstruction TransitionTransition
Identify a CandidateArchitecture
Refine & Prove the Architecture
I 1I 1 E 1E 1 C 1C 1 T 1T 1E 2E 2 C 2C 2Iterations
Phases
Minor Enhancements
Minor Enhancements
Create Test Script for E1 Functionality
TestAutomation ArchitectureObjectives
TestScript
Objectives
Create Test Script for E2 Functionality
Create Test Script for C1 Functionality
Create Test Script for C2 Functionality
Slide 9
Test Automation Architecture Using IBM Rational FT
Helper SuperClass
FunctionalTest Script 1
FunctionalTest Script 2
Functions in a “Help Super Class” can be inherited by one or more
Functional Test Scripts.
Slide 10
Demo 1
The 1st Common Task• Recording Test Results
The 2nd Common Task• Annotating Test Script
Associated Problem• Insufficient information to investigate failures
Consistent Approach (Solution)• Use a combined approach for Recording Test
Results and Test Script Annotations
Slide 11
Demo 2
The Common Task• Finding dynamic Test Objects
− (A Custom Recognition Technique)
Associated Problem• Inconsistent Test Object recognition properties
make direct recognition impossible
Consistent Approach (Solution)• Find dynamic Test Objects using one or more
nearby static Test Objects (such as labels)
Slide 12
Demo 2 (Associated Problem Continued) Testing an online questionnaire.
An ideal candidate forData-Driven testing.
BUT…
25 radio buttons per page.8 Pages in total.
= 200 radio buttons!
Each radio button has an identifier of the form “P1C3R5”, which are
assigned dynamically
Slide 13
Summary
• Test Automation Architecture is for ALL sizes of project
• Look for Common Approaches to Common Structural Tasks
• Look for Common Approaches to Common Behavioural Tasks
• Create a Test Automation Architecture Document Early
• Use the “Helper Super Class” in IBM Rational Functional Tester