DocumentCode
660595
Title
PYTHIA: Generating test cases with oracles for JavaScript applications
Author
Mirshokraie, Shabnam ; Mesbah, Ali ; Pattabiraman, Karthik
Author_Institution
Univ. of British Columbia, Vancouver, BC, Canada
fYear
2013
fDate
11-15 Nov. 2013
Firstpage
610
Lastpage
615
Abstract
Web developers often write test cases manually using testing frameworks such as Selenium. Testing JavaScript-based applications is challenging as manually exploring various execution paths of the application is difficult. Also JavaScript´s highly dynamic nature as well as its complex interaction with the DOM make it difficult for the tester to achieve high coverage. We present a framework to automatically generate unit test cases for individual JavaScript functions. These test cases are strengthened by automatically generated test oracles capable of detecting faults in JavaScript code. Our approach is implemented in a tool called Pythia. Our preliminary evaluation results point to the efficacy of the approach in achieving high coverage and detecting faults.
Keywords
Java; Web services; automatic test software; program testing; software fault tolerance; software tools; DOM; JavaScript applications; JavaScript code; JavaScript functions; PYTHIA; Web developer; automatic test oracles generation; automatic unit test case generation; complex interaction; document object model; faults detection; manually execution path exploration; software testing; software tool; Browsers; Instruments; Java; Measurement; Reactive power; Runtime; Testing; DOM; JavaScript; oracles; test generation;
fLanguage
English
Publisher
ieee
Conference_Titel
Automated Software Engineering (ASE), 2013 IEEE/ACM 28th International Conference on
Conference_Location
Silicon Valley, CA
Type
conf
DOI
10.1109/ASE.2013.6693121
Filename
6693121
Link To Document