PYTHIA: Generating test cases with oracles for JavaScript applications
Authors:
- 1 November 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 610-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
This publication has 16 references indexed in Scilit:
- Efficient JavaScript Mutation Testing2013
- Crawling Ajax-Based Web Applications through Dynamic Analysis of User Interface State ChangesACM Transactions on the Web, 2012
- Evolutionary Generation of Whole Test Suites2011
- A framework for automated testing of javascript web applications2011
- Invariant-Based Automatic Testing of Modern Web ApplicationsIEEE Transactions on Software Engineering, 2011
- A Symbolic Execution Framework for JavaScript2010
- A strategy for evaluating feasible and unfeasible test cases for the evolutionary testing of object-oriented software2008
- State-Based Testing of Ajax Web Applications2008
- PathCrawler: Automatic Generation of Path Tests by Combining Static and Dynamic Analysis2005
- Hints on Test Data Selection: Help for the Practicing ProgrammerComputer, 1978