An efficient regression testing approach for PHP Web applications using test selection and reusable constraints

被引:4
作者
Eda, Ravi [1 ,2 ]
Do, Hyunsook [3 ]
机构
[1] North Dakota State Univ, Fargo, ND 58105 USA
[2] Microsoft Corp, Fargo, ND 58104 USA
[3] Univ North Texas, Dept Comp Sci & Engn, Denton, TX 76203 USA
关键词
Regression testing; Test selection; Test reuse; PHP Web applications; Empirical studies;
D O I
10.1007/s11219-019-09449-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Web applications undergo frequent changes. These changes can be due to the addition of new features or the modification of existing features to support customer requests or to patch faults in the system. Given that Web applications have a large surface area subject to attack, changes often include security fixes either in response to malicious attacks or to forestall such attacks. Effective regression testing should ensure that any change does not disable existing features or compromise security. Executing the entire regression test suite takes time and consumes many resources. One approach is to focus regression test efforts only on code paths that were modified in the new version. Such code paths can be identified using tools such as PHP Analysis and Regression Testing Engine (PARTE). In this paper, we extend this approach to test selection where a subset of existing tests that cover the modified code paths can be detected. To further reduce the amount of regression testing needed, we used PARTE's reusable constraint value information to identify tests that can be reused against the new version without having to modify the input test values. We performed an empirical study to determine whether test selection data combined with reusable constraint values would further improve the turnaround time for regression tests. Results from the experiment conducted on four Hypertext Preprocessor (PHP) web applications demonstrate that this approach is effective in reducing the cost of regression testing of frequently patched Web applications.
引用
收藏
页码:1383 / 1417
页数:35
相关论文
共 49 条
[1]  
Alshahwan N., 2012, Proceedings of the 2012 International Symposium on Software Testing and Analysis - ISSTA 2012, P45
[2]   Is mutation an appropriate tool for testing experiments? [J].
Andrews, JH ;
Briand, LC ;
Labiche, Y .
ICSE 05: 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2005, :402-411
[3]  
[Anonymous], TECHNICAL REPORT
[4]  
[Anonymous], 2010, P ACM SIGSOFT INT S
[5]   MaTRIX: Maintenance-oriented testing requirements identifier and examiner [J].
Apiwattanapong, Taweesup ;
Santelices, Raul ;
Chittimalli, Pavan Kumar ;
Orso, Alessandro ;
Harrold, Mary Jean .
TAIC PART - TESTING: ACADEMIC & INDUSTRIAL CONFERENCE - PRACTICE AND RESEARCH TECHNIQUES, PROCEEDINGS, 2006, :137-+
[6]  
Arnold R. S., 1993, Proceedings. Conference on Software Maintenance 1993. CSM-93 (Cat. No.93CH3360-5), P292, DOI 10.1109/ICSM.1993.366933
[7]  
Artzi Shay., 2010, P 32 ACMIEEE INT C S, P265, DOI 10.1145/1806799
[8]   DEFLAKER: Automatically Detecting Flaky Tests [J].
Bell, Jonathan ;
Legunsen, Owolabi ;
Hilton, Michael ;
Eloussi, Lamyaa ;
Yung, Tifany ;
Marinov, Darko .
PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, :433-444
[9]  
Chen Y, 2007, FIFTEENTH COLOR IMAGING CONFERENCE: COLOR SCIENCE AND ENGINEERING SYSTEMS, TECHNOLOGIES, AND APPLICATIONS, FINAL PROGRAM AND PROCEEDINGS, P54
[10]  
Dallmeier Valentin, 2012, P WORKSH JAVASCRIPT, P11, DOI [10.1145/2307720.2307722, DOI 10.1145/2307720.2307722]