Server Interface Descriptions for Automated Testing of JavaScript Web Applications

Research output: Contribution to book/anthology/report/proceedingArticle in proceedingsResearchpeer-review

8 Citations (Scopus)

Abstract

Automated testing of JavaScript web applications is complicated by the communication with servers. Specifically, it is difficult to test the JavaScript code in isolation from the server code and database contents. We present a practical solution to this problem. First, we demonstrate that formal server interface descriptions are useful in automated testing of JavaScript web applications for separating the concerns of the client and the server. Second, to support the construction of server interface descriptions for existing applications, we introduce an effective inference technique that learns communication patterns from sample data.

By incorporating interface descriptions into the testing tool Artemis, our experimental results show that we increase the level of automation for high-coverage testing on a collection of JavaScript web applications that exchange JSON data between the clients and servers. Moreover, we demonstrate that the inference technique can quickly and accurately learn useful server interface descriptio
Original languageEnglish
Title of host publicationProceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering, ESEC/FSE 2013
Editors Bertrand Meyer, Luciano Baresi, Mira Mezini
Number of pages11
PublisherAssociation for Computing Machinery
Publication date2013
Pages510-520
ISBN (Print)978-1-4503-2237-9
DOIs
Publication statusPublished - 2013
Event9th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE) -
Duration: 18 Aug 201326 Aug 2013

Conference

Conference9th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE)
Period18/08/201326/08/2013

Cite this