kirancodes.me
To Proof Maintenance & Beyond!

PYTHIA: Generating test cases with oracles for JavaScript applications

Shabnam Mirshokraie, Ali Mesbah, Karthik Pattabiraman

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.

BibTeX
@inproceedings{Mirshokraie-al:ASE13,
  author    = {Shabnam Mirshokraie and
               Ali Mesbah and
               Karthik Pattabiraman},
  title     = {{PYTHIA:} Generating test cases with oracles for {JavaScript} applications},
  booktitle = {ASE},
  pages     = {610--615},
  publisher = {{IEEE}},
  year      = {2013},
}

Related papers