An Introduction to Test Automation Architecture with Rational














- Slides: 14

An Introduction to Test Automation Architecture with Rational Functional Tester Matt Archer Senior Consultant matt. archer@fmisolutions. com

A Quick Survey…Hands Up! Rational Unified Process? Test Automation? “Test Automation Architecture” Document? (The subject of this talk)

Agenda • Introduction to the Principles • Demo 1 • Demo 2 • Questions

Introduction • “Software Testing Software” Test Automation • “Capture & Replay” Significant Structural and Architecture Behavioural Elements • with IBM Rational Functional Tester • Automated Testing Tool for Java, Web and. NET Applications (+ Others)

When Automating Testing, What’s Significant? Structural • Test Script Annotations − • Behavioural • Demo Test Location & Hierarchy Recording Test Results − • Demo Custom Recognition Techniques − Demo • Naming Conventions • Custom Verification Techniques • Data Structure • Failure Recovery • Log Format • Test Environment Control

Why Document Your Test Automation Architecture? Test Automation Architecture Test Location & Hierarchy Test Script Annotations Recording Test Results Custom Recognition Techniques Manual Tests Tester 1 Automated Tests 6 Tester 2

Test Automation Architecture in a Nutshell A Consistent Approach for… Common Structural Tasks & Common Behavioural Tasks

Test Automation Architecture Timeline Test Automation Architecture Objectives Phases Iterations Test Script Objectives Identify a Candidate Architecture Inception I 1 Refine & Prove the Architecture Elaboration E 1 E 2 Minor Enhancements Construction Transition C 1 C 2 T 1 Create Test Script for E 1 Script for E 2 Script for C 1 Script for C 2 Functionality

Test Automation Architecture Using IBM Rational FT Helper Super Class Functional Test Script 1 Functional Test Script 2 Functions in a “Help Super Class” can be inherited by one or more Functional Test Scripts.

Demo 1 The 1 st Common Task • Recording Test Results The 2 nd 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

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)

Demo 2 (Associated Problem Continued) Testing an online questionnaire. An ideal candidate for Data-Driven testing. BUT… 25 radio buttons per page. 8 Pages in total. = 200 radio buttons! Each radio button has an identifier of the form “P 1 C 3 R 5”, which are assigned dynamically

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

Questions? Matt Archer matt. archer@fmisolutions. com http: //www. fmisolutions. com 14