Robust Test Automation Using Contextual Clues

Despite the seemingly obvious advantage of test automation, significant skepticism exists in the industry regarding
its cost-benefit tradeoffs. Test scripts for web applications are fragile: even small changes in the page layout can break
a number of tests, requiring the expense of re-automating them. Moreover, a test script created for one browser cannot
be relied upon to run on a different web browser: it requires duplicate effort to create and maintain versions of tests
for a variety of browsers. Because of these hidden costs, organizations often fall back to manual testing.
We present a fresh solution to the problem of test script fragility. Often, the root cause of test script fragility is that,
to identify UI elements on a page, tools typically record some metadata that depends on the internal representation of
the page in a browser. Our technique eliminates metadata almost entirely. Instead, it identifies UI elements relative to
other prominent elements on the page. The core of our technique automatically identifies a series of contextual clues
that unambiguously identify a UI element, without recording anything about the internal representation.
Empirical evidence shows that our technique is highly accurate in computing contextual clues, and outperforms
existing techniques in its resilience to UI changes as well as browser changes.

By: Rahulkrishna Yandrapally IBM Research – India Suresh Thummalapenta IBM Research – India Saurabh Sinha IBM Research – India Satish Chandra Samsung Electronics USA IBM

Published in: RI14005 in 2014

LIMITED DISTRIBUTION NOTICE:

This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.

IBMResearchReportRI14005.pdf

Questions about this service can be mailed to reports@us.ibm.com .