Pros and Cons of “Record and Playback” Testing

Posted in Automation, Functional Testing | September 14, 2010 Record and Playback Automated Testing

In the world of software testing, automated test tools play a very important role. They allow testers to create reusable tests that check the functionality, and usability of the given software.

There are many testing methods included with testing tools, but none more misunderstood than “Record and Playback”. While this article is not meant to advocate this method of test automation, neither is it meant to condemn this practice, if used correctly. It has its place in the scheme of automated testing, but should not be completely relied upon. Rather, it should be used to supplement automation efforts.

Record and Playback Pros:

  • Helps to get coordinates/names of objects (low-level)
  • Helps tester to understand an applications code (recorded scripts)
  • Structure and syntax
  • Fast and simple keyword tests
  • Some automation tools offer object based recording

Record and Playback Cons:

  • Limited ROI
  • Difficulty in cases where there are events based on screen coordinates, and the object moves
  • Recorded tests are the by-product of manual testing
  • The ability to produce a validation requires identifying an object by a property such as a caption
  • Fragile
  • May be affected by screen resolution
  • Often dependent on precise placement of UI objects

Perhaps in a perfect world in which program code is flawless, user interface objects never change location or type, and there will never be a need for the program to change, will Record and Playback be enough to thoroughly test an application or web site. Our world is a bit different, though. Program code changes, sometimes on a daily basis, and using automation along with helpful tools such as Record and Playback can help us keep up with these changes.

Jason Lassetter is a certified automation lead for DeRisk IT Inc. He specializes in automated testing in many environments. He has worked on numerous platforms of both Manual and Automated Testing. His specialties include automated testing strategies, and have a strong amount of experience with SmartBear’s TestComplete.

Since its founding in 1998, the primary role of DeRisk IT Inc. has been to help corporate organizations forecast and plan for the most efficient IT projects with respect to risk avoidance and to implement appropriate testing solutions to achieve this. DeRisk IT Inc. specializes in risk analysis at the corporate level; and at a project level results in the proactive use of testing tools and methodologies to ensure on-time completion and to the right specification.

DeRisk IT Inc. specializes exclusively in all services related to Application Software and System Infrastructure Testing. Our main focus areas are Functional, Performance and System Integration testing using both manual and appropriate automation techniques. DeRisk IT Inc. has established a position at the forefront of application testing, providing unique testing solutions such as performance, compatibility, security, usability and monitoring. DeRisk IT Inc. provides a full portfolio of services for all testing needs.