140 likes | 156 Views
Discover the principles of test automation architecture with Rational Functional Tester in this informative session. Learn about significant structural and behavioral elements to automate testing for Java, Web, and .NET applications. Find out the importance of documenting your architecture and get insights into common tasks and approaches. This session includes demos, custom techniques, failure recovery, and more. Enhance your test automation with a consistent approach and create a robust architecture document. Presented by Matt Archer, a senior consultant at FMISolutions.
E N D
Matt ArcherSenior Consultantmatt.archer@fmisolutions.com An Introduction to Test Automation Architecture with Rational Functional Tester
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 Test Automation • “Software Testing Software” • “Capture & Replay” • Significant Structural and Behavioural Elements Architecture with IBM Rational Functional Tester • Automated Testing Tool for Java, Web and .NET Applications (+ Others)
When Automating Testing, What’s Significant? Behavioural • Recording Test Results • Demo • Custom Recognition Techniques • Demo • Custom Verification Techniques • Failure Recovery • Test Environment Control Structural • Test Script Annotations • Demo • Test Location & Hierarchy • Naming Conventions • Data Structure • Log Format
Why Document Your Test Automation Architecture? Manual Tests Automated Tests Tester 1 Tester 2
Test Automation Architecture in a Nutshell A Consistent Approach for… Common Structural Tasks & Common Behavioural Tasks
Test Automation Architecture Timeline Identify a Candidate Architecture Refine & Prove the Architecture Minor Enhancements Minor Enhancements Test Automation Architecture Objectives Phases Inception Elaboration Construction Transition I 1 E 1 C 1 E 2 C 2 Iterations T 1 Test Script Objectives Create Test Script for E1 Functionality Create Test Script for E2 Functionality Create Test Script for C1 Functionality Create Test Script for C2 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 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
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 “P1C3R5”, 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