Sidereal: Statistical adaptive generation of robust locators for web testing. (25th April 2021)
- Record Type:
- Journal Article
- Title:
- Sidereal: Statistical adaptive generation of robust locators for web testing. (25th April 2021)
- Main Title:
- Sidereal: Statistical adaptive generation of robust locators for web testing
- Authors:
- Leotta, Maurizio
Ricca, Filippo
Tonella, Paolo - Other Names:
- Alégroth Emil guestEditor.
Ardito Luca guestEditor.
Coppola Riccardo guestEditor.
Feldt Robert guestEditor. - Abstract:
- Summary: By ensuring adequate functional coverage, End‐to‐End (E2E) testing is a key enabling factor of continuous integration. This is even more true for web applications, where automated E2E testing is the only way to exercise the full stack used to create a modern application. The test code used for web testing usually relies on DOM locators, often expressed as XPath expressions, to identify the web elements and to extract the data checked in assertions. When applications evolve, the most dominant cost for the evolution of test code is due to broken locators, which fail to locate the target element in the novel versions and must be repaired. In this paper, we formulate the robust XPath locator generation problem as a graph exploration problem, instead of relying on ad‐hoc heuristics as the one implemented by the state of the art tool robula+ . Our approach is based on a statistical adaptive algorithm implemented by the tool sidereal, which outperforms robula+ 's heuristics in terms of robustness by learning the potential fragility of HTML properties from previous versions of the application under test. sidereal was applied to six applications and to a total of 611 locators and was compared against two baseline algorithms, robula+ and Montoto. The adoption of sidereal results in a significant reduction of the number of broken locators (respectively ‐55% and ‐70%). The time for generating such robust locators was deemed acceptable being in the order of hundredths of second.Summary: By ensuring adequate functional coverage, End‐to‐End (E2E) testing is a key enabling factor of continuous integration. This is even more true for web applications, where automated E2E testing is the only way to exercise the full stack used to create a modern application. The test code used for web testing usually relies on DOM locators, often expressed as XPath expressions, to identify the web elements and to extract the data checked in assertions. When applications evolve, the most dominant cost for the evolution of test code is due to broken locators, which fail to locate the target element in the novel versions and must be repaired. In this paper, we formulate the robust XPath locator generation problem as a graph exploration problem, instead of relying on ad‐hoc heuristics as the one implemented by the state of the art tool robula+ . Our approach is based on a statistical adaptive algorithm implemented by the tool sidereal, which outperforms robula+ 's heuristics in terms of robustness by learning the potential fragility of HTML properties from previous versions of the application under test. sidereal was applied to six applications and to a total of 611 locators and was compared against two baseline algorithms, robula+ and Montoto. The adoption of sidereal results in a significant reduction of the number of broken locators (respectively ‐55% and ‐70%). The time for generating such robust locators was deemed acceptable being in the order of hundredths of second. Abstract : When web applications evolve the most dominant cost for the evolution of test code, used for automated web testing, is often due to broken locators, which fail to locate the target element in the novel version. In this paper, we propose Sidereal, a statistical adaptive locator generator based on weights learnt on the history of the target application which outperforms state‐of‐the‐art Robula+ generator in terms of robustness. … (more)
- Is Part Of:
- Software testing, verification & reliability. Volume 31:Number 3(2021)
- Journal:
- Software testing, verification & reliability
- Issue:
- Volume 31:Number 3(2021)
- Issue Display:
- Volume 31, Issue 3 (2021)
- Year:
- 2021
- Volume:
- 31
- Issue:
- 3
- Issue Sort Value:
- 2021-0031-0003-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2021-04-25
- Subjects:
- DOM‐based testing -- robust locator -- test automation -- automated testing -- Web testing -- XPath locator -- Web locators -- XPath
Computer software -- Testing -- Periodicals
Computer software -- Verification -- Periodicals
Computer software -- Reliability -- Periodicals
005.14 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/stvr.1767 ↗
- Languages:
- English
- ISSNs:
- 0960-0833
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.457500
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 16579.xml