Generating and selecting resilient and maintainable locators for Web automated testing. (31st January 2021)
- Record Type:
- Journal Article
- Title:
- Generating and selecting resilient and maintainable locators for Web automated testing. (31st January 2021)
- Main Title:
- Generating and selecting resilient and maintainable locators for Web automated testing
- Authors:
- Nguyen, Vu
To, Thanh
Diep, Gia‐Han - Other Names:
- Alégroth Emil guestEditor.
Ardito Luca guestEditor.
Coppola Riccardo guestEditor.
Feldt Robert guestEditor. - Abstract:
- Summary: Web user interface (UI) test automation strategies have been dominated by programmable and record–playback approaches. Of these, record–playback allows creating automation tests easily and reduces the cost of test generation. However, this approach increases the cost of test maintenance due to its unstable generated locators for identifying UI objects during playback. In this paper, we propose a new approach to generating and selecting resilient and maintainable locators. Our approach consists of two parts, a new XPath construction method and selecting the best XPath to locate the target element. Our XPath construction method relies on semantic structures of Web pages to locate the target element using its neighbors. We conducted an experiment on 15 popular websites. The results show that our approach outperforms the state‐of‐the‐practice/art Selenium IDE and Robula+ in locating target elements by effectively avoiding wrong locators. It also produces more readable XPaths (hence more maintainable tests) than do these approaches. Abstract : This paper presents a new approach to generating and selecting resilient and maintainable locators for Web UI test automation. The approach consists of a method to construct locators of a Web element based on its neighbors and an algorithm to select resilient locators. Our experiment using 2, 293 UI elements of 15 popular websites shows the proposed approach outperforming the state‐of‐the‐practice/art Selenium IDE and Robula+ inSummary: Web user interface (UI) test automation strategies have been dominated by programmable and record–playback approaches. Of these, record–playback allows creating automation tests easily and reduces the cost of test generation. However, this approach increases the cost of test maintenance due to its unstable generated locators for identifying UI objects during playback. In this paper, we propose a new approach to generating and selecting resilient and maintainable locators. Our approach consists of two parts, a new XPath construction method and selecting the best XPath to locate the target element. Our XPath construction method relies on semantic structures of Web pages to locate the target element using its neighbors. We conducted an experiment on 15 popular websites. The results show that our approach outperforms the state‐of‐the‐practice/art Selenium IDE and Robula+ in locating target elements by effectively avoiding wrong locators. It also produces more readable XPaths (hence more maintainable tests) than do these approaches. Abstract : This paper presents a new approach to generating and selecting resilient and maintainable locators for Web UI test automation. The approach consists of a method to construct locators of a Web element based on its neighbors and an algorithm to select resilient locators. Our experiment using 2, 293 UI elements of 15 popular websites shows the proposed approach outperforming the state‐of‐the‐practice/art Selenium IDE and Robula+ in reducing false positives in locating target elements during automation test execution. … (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-01-31
- Subjects:
- automated testing -- web locators -- web UI test automation -- 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.1760 ↗
- 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