A framework for automated testing of javascript web applications
The DOI matches its Crossref record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
Current practice in testing JavaScript web applications requires manual construction of test cases, which is difficult and tedious. We present a framework for feedback-directed automated test generation for JavaScript in which execution is monitored to collect information that directs the test generator towards inputs that yield increased coverage. We implemented several instantiations of the framework, corresponding to variations on feedback-directed random testing, in a tool called Artemis. Experiments on a suite of JavaScript applications demonstrate that a simple instantiation of the framework that uses event handler registrations as feedback information produces surprisingly good coverage if enough tests are generated. By also using coverage information and read-write sets as feedback information, a slightly better level of coverage can be achieved, and sometimes with many fewer tests. The generated tests can be used for detecting HTML validity problems and other programming errors.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
DART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065036 · Cited by 2,067
CUTE: a concolic unit testing engine for C
Sen, K., Marinov, D., & Agha, G. (2005) · Proceedings of the 10th European software engineering conference held jointly with 13th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1081706.1081750 · Cited by 1,651 · cited 3×
“Also, although we focus on random testing in this paper, our general framework does permit more general forms of feed-back, such as combined concrete and symbolic execution [7,22,24], which we plan to investigate in future work.”
BackgroundMethodDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065036 · Cited by 1,570 · cited 2×
“Also, although we focus on random testing in this paper, our general framework does permit more general forms of feed-back, such as combined concrete and symbolic execution [7,22,24], which we plan to investigate in future work.”
BackgroundPrioritizing test cases for regression testing
Rothermel, G., Untch, R. H., Chu, C., & Harrold, M. J. (2001) · IEEE Transactions on Software Engineering · doi:10.1109/32.962562 · Cited by 1,338
Feedback-Directed Random Test Generation
Pacheco, C., Lahiri, S. K., Ernst, M. D., & Ball, T. (2007) · 29th International Conference on Software Engineering (ICSE'07) · doi:10.1109/icse.2007.37 · Cited by 863 · cited 2×
“By instantiating these parameters appropriately, various forms of feedback-directed random testing (e.g., in the spirit of Randoop [19]) can be performed.”
BackgroundMethodA Symbolic Execution Framework for JavaScript
Saxena, P., Akhawe, D., Hanna, S., Mao, F., McCamant, S., & Song, D. (2010) · 2010 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2010.38 · Cited by 455 · cited 8×
“Also, although we focus on random testing in this paper, our general framework does permit more general forms of feed-back, such as combined concrete and symbolic execution [7,22,24], which we plan to investigate in future work.”
BackgroundMethodInfluentialJensen, S. H., Møller, A., & Thiemann, P. J. (2009) · Lecture notes in computer science · doi:10.1007/978-3-642-03237-0_17 · Cited by 416 · cited 1×
“Static analysis for JavaScript has emerged as a complementary technique for detecting errors [8, 9, 12], however this direction of work is still at an early stage.”
MethodSelf-citationGATEKEEPER: mostly static enforcement of security and reliability policies for javascript code
Guarnieri, S., & Livshits, B. (2009) · USENIX Security Symposium · Cited by 281
RWset: Attacking Path Explosion in Constraint-Based Test Generation
Boonstoppel, P., Cadar, C., & Engler, D. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-78800-3_27 · Cited by 234
An event‐flow model of GUI‐based applications for testing
Memon, A. M. (2007) · Software Testing, Verification and Reliability · doi:10.1002/stvr.364 · Cited by 232 · cited 1×
“Memon has described an approach to automated testing of GUI applications that consist of hierarchically organized modal dialogs [16].”
MethodInvariant-based automatic testing of AJAX user interfaces
Mesbah, A., & van Deursen, A. (2009) · 2009 IEEE 31st International Conference on Software Engineering · doi:10.1109/icse.2009.5070522 · Cited by 201 · cited 3×
“Other work on automated testing for JavaScript is not very explicit about how coverage is measured [18, 22], which makes direct comparisons difficult.”
MethodCrawling AJAX by Inferring User Interface State Changes
Mesbah, A., Bozdag, E., & van Deursen, A. (2008) · 2008 Eighth International Conference on Web Engineering · doi:10.1109/icwe.2008.24 · Cited by 188 · cited 2×
“The Crawljax tool by Mesbah et al. [17] applies dynamic analysis to construct a state-flow graph that models the states of an AJAX application’s user-interface and the transitions between these states.”
MethodFinding bugs in dynamic web applications
Artzi, S., Kieżun, A., Dolby, J., Tip, F., Dig, D., Paradkar, A. M., & Ernst, M. D. (2008) · International Symposium on Software Testing and Analysis · doi:10.1145/1390630.1390662 · Cited by 185 · cited 2×
“We are also interested in integrating Artemis with Apollo [2] to extend automated testing to applications that span both server and client code, and in generalizing the framework to accommodate for multiple concurrent users that interact via a shared server.”
MethodSelf-citationUsing static analysis for Ajax intrusion detection
Guha, A., Krishnamurthi, S., & Jim, T. (2009) · International World Wide Web Conference (WWW) · doi:10.1145/1526709.1526785 · Cited by 172
MINTS: A general framework and tool for supporting test-suite minimization
Hsu, H.-Y., & Orso, A. (2009) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2009.5070541 · Cited by 115 · cited 1×
“Furthermore, the framework can provide a basis for studying fault localization techniques [1], test suite minimization [11], and detection of security vulnerabilities [8,9,22] for JavaScript applications.”
BackgroundAJAX Crawl: Making AJAX Applications Searchable
Duda, C., Frey, G., Kossmann, D., Matter, R., & Zhou, C. (2009) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde.2009.90 · Cited by 88 · cited 1×
“The approach by Duda et al. [5] also builds finite-state models of AJAX applications.”
MethodPractical fault localization for dynamic web applications
Artzi, S., Dolby, J., Tip, F., & Pistoia, M. (2010) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/1806799.1806840 · Cited by 74 · cited 2×
“References to DOM nodes in test inputs are expressed as access paths from the global object ( window ) to the node objects, for example window.document.childNodes [1].childNodes[0] .”
BackgroundSelf-citationContract-Driven Testing of JavaScript Code
Heidegger, P., & Thiemann, P. J. (2010) · Lecture notes in computer science · doi:10.1007/978-3-642-13953-6_9 · Cited by 40
Iterative execution-feedback model-directed GUI testing
Yuan, X., & Memon, A. M. (2009) · Information and Software Technology · doi:10.1016/j.infsof.2009.11.009 · Cited by 39 · cited 1×
“In later work, Memon and Yuan employed execution feedback to enhance coverage by taking interactions between event handlers into account and refining test cases iteratively in batches [25,26].”
Method
Cited by
An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
Schäfer, M., Nadi, S., Eghbali, A., & Tip, F. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3334955 · Cited by 431
“Artemis [74] is a framework for automated test generation that iteratively generates tests for client-side JavaScript applications consisting of sequences of events, using a heuristics-based strategy that considers the locations read and written by each event handler to focus on the generation of…”
MethodSelf-citationJalangi: a selective record-replay and dynamic analysis framework for JavaScript
Sen, K., Kalasapur, S., Brutch, T., & Gibbs, S. (2013) · Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2491411.2491447 · Cited by 270
Software testing: a research travelogue (2000–2014)
Orso, A., & Rothermel, G. (2014) · Future of Software Engineering Proceedings · doi:10.1145/2593882.2593885 · Cited by 211
“It is true that there is increasingly greater attention being paid, by the research community, to the problems involved in testing these applications ( e.g., [4,12,123]).”
BackgroundMethodTrade-offs in continuous integration: assurance, security, and flexibility
Hilton, M., Nelson, N., Tunnell, T., Marinov, D., & Dig, D. (2017) · Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering · doi:10.1145/3106237.3106270 · Cited by 207
“Other work related to CI and automated testing includes generating acceptance tests from unit tests [21], black-box test prioritization [18], ordering of failed unit tests [17], generating automated tests at runtime [1], and prioritizing acceptance tests [43].”
Background
Metadata
- Authors
- Artzi, S., Dolby, J., Jensen, S. H., Møller, A., & Tip, F.
- Venue
- Proceedings of the 33rd International Conference on Software Engineering
- Publisher
- ACM
- Published
- 2011-05-21
- Pages
- 571-580
- ISSN
- 0270-5257 (ISSN-L)
- OpenAlex
- W2134741696
- Cited by
- 199
- References
- 19
- FWCI
- 14.17
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.