What is a Test Script?
A series of commands or events stored in a script language file
that execute a test case and report the results.
Fundamentals of Test
Automation
Synchronization
– Execute the test scrip and the application at the same
pace.
– Different conditions may exist at the time of playback
than existed when the test was created, precise timing
coincidence may not be possible.
Test Framework
• Test framework is like an application architecture.
• It outlines the overall structure for the automated test
environment, defines common functions, standard tests, provides
templates for test structure, naming convention.
• Leading to a maintainable and transferable test library
Test Framework
• Common Functions (e.g. Setup, Sign on, Monitor, Log Error,
Recover, Signoff, Cleanup)
• Standard Tests (e.g. Walk thru to navigate thru each menu item)
• Test Script templates – (Header : Test description, inputs,
outputs, special requirement, Dependencies, Common routines
like setup etc.,End))
• Test Dictionary –( Vocabulary, Naming Conventions, Cross
reference names to application)
Test Automation Approach
Approach Profile
Capture/Playback Application already in test phase or maintenance
Stable application.
Variable Capture/ Application in planning, analysis or design
Variable Playback Unstable or stable application
Technical test team
Different type of tools
• Reviews and Inspection
• Test planning
• Test design & Development
• Test execution & verification
• Test support
…Automation tools are not one-size-fits-all
Tools for reviews & inspection
• Requirement analysis
– Compuware’s Reconcile/TeleLogic’s DOORS
• Complexity analysis
– Compuware’s Numega
• Code comprehension
– Compuware’s Numega
• Syntax & semantic analysis
Tools for test planning
• Templates for test plan documentations
• Test schedule and staffing estimates
• Complexity analyzer
Tools for test design &
development
• Test data generator
Compuware’s File-Aid
• Requirements-based test design tool
• Capture/Playback
Test execution and evaluation
tools
• Capture/playback
Mercury’s WinRunner
Compuware’s QARun
Segue’s Silk Test
Rational’s Visual Test
Rational’s ROBOT
• Coverage analysis
• Memory testing
Test execution and evaluation
tools
..contd.
• Test case management
Mercury’s Test Director
Compuware’s QADirector
• Simulators & performance
– Mercury’s LoadRunner
– Compuware’s QALoad
– Segue's Silk Performer
– Empirix’s eLoad
Software testing support tools
• Defect tracking tool
Compuware’s TrackRecord
• Configuration management
MS Visual Source Safe