DocumentCode :
2845542
Title :
Mining Executable Specifications of Web Applications from Selenium IDE Tests
Author :
Xu, Dianxiang ; Xu, Weifeng ; Bavikati, Bharath K. ; Wong, W. Eric
Author_Institution :
Nat. Center for the Protection of the Financial Infrastruct., Dakota State Univ., Madison, MD, USA
fYear :
2012
fDate :
20-22 June 2012
Firstpage :
263
Lastpage :
272
Abstract :
A common practice for system testing of web-based applications is to perform the test cases through a web browser. These tests are often recorded and managed by a record and replay tool, such as Selenium IDE. Mining specifications from such tests can be very useful for understanding, verifying, and debugging the system under test. This paper presents an approach to mining a behavior specification from a Selenium IDE test suite such that (a) it captures the behavior of the tests at a high level of abstraction, (b) the behavior can be simulated, and (c) all the tests are completely reproducible from the specification. We first identify similar test actions through context-sensitive clustering so as to normalize the given Selenium IDE tests. Then, we mine patterns of test actions that represent meaningful functions and transform Selenium IDE tests into abstract tests, which are similar to the tests used in the existing model-mining techniques. From the abstract tests, we synthesize a high-level Petri net that captures both temporal constraints and data values. For evaluation purposes, we applied our approach to eight test suites of two real-world systems, Magento (an online shopping system being used by many live stores) and Amazon. Two of the test suites are for security testing, aiming at SQL injection and XSS vulnerabilities. The result shows that our approach is effective in producing abstract yet executable specifications and reducing the complexity of the models.
Keywords :
Internet; data mining; formal specification; online front-ends; program debugging; program testing; security of data; Amazon; Magento; SQL injection; Selenium IDE test suite; Web applications; Web browser; XSS vulnerabilities; behavior specification; context-sensitive clustering; executable specifications mining; high-level Petri net; model-mining techniques; online shopping system; security testing; selenium IDE tests; system testing; system under test debugging; test cases; Abstracts; Computers; Context; Data mining; Educational institutions; Electronic mail; Graphical user interfaces; Petri nets; model-based testing; software testing; test mining; web applications;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Security and Reliability (SERE), 2012 IEEE Sixth International Conference on
Conference_Location :
Gaithersburg, MD
Print_ISBN :
978-1-4673-2067-2
Type :
conf
DOI :
10.1109/SERE.2012.39
Filename :
6258316
Link To Document :
بازگشت