Reducing Web Test Cases Aging by means of Robust XPath Locators

被引:39
作者
Leotta, Maurizio [1 ]
Stocco, Andrea [1 ]
Ricca, Filippo [1 ]
Tonella, Paolo [2 ]
机构
[1] Univ Genoa, DIBRIS, Genoa, Italy
[2] Fdn Bruno Kessler, Trento, Italy
来源
2014 IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW) | 2014年
关键词
Web Testing; Test Cases Aging; Robust Locators;
D O I
10.1109/ISSREW.2014.17
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the context of web regression testing, the main aging factor for a test suite is related to the continuous evolution of the underlying web application that makes the test cases broken. This rapid decay forces the quality experts to evolve the testware. One of the major costs of test case evolution is due to the manual effort necessary to repair broken web page element locators. Locators are lines of source code identifying the web elements the test cases interact with. Web test cases rely heavily on locators, for instance to identify and fill the input portions of a web page (e.g., the form fields), to execute some computations (e.g., by locating and clicking on buttons) and to verify the correctness of the output (by locating the web page elements showing the results). In this paper we present ROBULA (ROBUst Locator Algorithm), a novel algorithm able to partially prevent and thus reduce the aging of web test cases by automatically generating robust XPath-based locators that are likely to work also when new releases of the web application are created. Preliminary results show that XPath locators produced by ROBULA are substantially more robust than absolute and relative locators, generated by state of the practice tools such as FirePath. Fragility of the test suites is reduced on average by 56% for absolute locators and 41% for relative locators.
引用
收藏
页码:449 / 454
页数:6
相关论文
共 14 条
[1]  
Chapman P, 2011, PROCEEDINGS OF THE 18TH ACM CONFERENCE ON COMPUTER & COMMUNICATIONS SECURITY (CCS 11), P263
[2]  
Dyutiman Choudhary Dyutiman Choudhary, 2011, Pro-poor value chain development for high value products in mountain regions: Indian Bay Leaf
[3]   Web Application Tests with Selenium [J].
Ebert, Christof ;
Bruns, Andreas ;
Kornstaedt, Andreas ;
Wichmann, Dennis .
IEEE SOFTWARE, 2009, 26 (05) :88-91
[4]   Maintaining and Evolving GUI-Directed Test Scripts [J].
Grechanik, Mark ;
Xie, Qing ;
Fu, Chen .
2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2009, :408-418
[5]  
Kowalkiewicz M., 2006, P WWWW 2006
[6]  
Leotta M., 2013, P 2013 INT WORKSH JO, P53, DOI DOI 10.1145/2489280.2489284
[7]  
Leotta M, 2014, LECT NOTES COMPUT SC, V8541, P322, DOI 10.1007/978-3-319-08245-5_19
[8]  
Leotta M, 2013, WORK CONF REVERSE EN, P272, DOI 10.1109/WCRE.2013.6671302
[9]  
Mirzaaghaei Mehdi, 2011, P 19 ACM SIGSOFT S 1, P396
[10]   Automated browsing in AJAX websites [J].
Montoto, Paula ;
Pan, Alberto ;
Raposo, Juan ;
Bellas, Fernando ;
Lopez, Javier .
DATA & KNOWLEDGE ENGINEERING, 2011, 70 (03) :269-283