A Framework for Automated Testing of Java']JavaScript Web Applications

被引:0
|
作者
Artzi, Shay [1 ]
Dolby, Julian [1 ]
Jensen, Simon Holm [2 ]
Moller, Anders [2 ]
Tip, Frank [1 ]
机构
[1] IBM Res Corp, Yorktown Hts, NY 10598 USA
[2] Aarhus Univ, Aarhus, Denmark
关键词
AJAX; Automated testing; Debugging; Event driven; !text type='Java']Java[!/text]Script; Random testing; Web applications; MODEL;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:571 / 580
页数:10
相关论文
共 50 条
  • [1] Guided Mutation Testing for Java']JavaScript Web Applications
    Mirshokraie, Shabnam
    Mesbah, Ali
    Pattabiraman, Karthik
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (05) : 429 - 444
  • [2] Advances in Testing Java']JavaScript-Based Web Applications
    Mesbah, Ali
    [J]. ADVANCES IN COMPUTERS, VOL 97, 2015, 97 : 201 - 235
  • [3] Model-based automated testing of Java']JavaScript Web applications via longer test sequences
    Gao, Pengfei
    Xu, Yongjie
    Song, Fu
    Chen, Taolue
    [J]. FRONTIERS OF COMPUTER SCIENCE, 2022, 16 (03)
  • [4] An Empirical Study of the Framework Impact on the Security of Java']JavaScript Web Applications
    Peguero, Ksenia
    Zhang, Nan
    Cheng, Xiuzhen
    [J]. COMPANION PROCEEDINGS OF THE WORLD WIDE WEB CONFERENCE 2018 (WWW 2018), 2018, : 753 - 758
  • [5] SymJS']JS: Automatic Symbolic Testing of Java']JavaScript Web Applications
    Li, Guodong
    Andreasen, Esben
    Ghosh, Indradeep
    [J]. 22ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (FSE 2014), 2014, : 449 - 459
  • [6] Automated Discovery of Java']JavaScript Code Injection Attacks in PHP Web Applications
    Gupta, Shashank
    Gupta, B. B.
    [J]. 1ST INTERNATIONAL CONFERENCE ON INFORMATION SECURITY & PRIVACY 2015, 2016, 78 : 82 - 87
  • [7] Elysia: Optimizing Java']JavaScript Web Framework
    Archiwaranguprok, Chayapatr
    Khunpanitchot, Kongkeit
    Mano, Phoomparin
    Toahchoodee, Manachai
    [J]. 39TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2024, 2024, : 1789 - 1796
  • [8] A Java']Javascript Web Framework for Rapid Development of Applications in IoT Systems for eHealth
    Wahslen, Jonas
    Lindh, Thomas
    [J]. 2018 IEEE 20TH INTERNATIONAL CONFERENCE ON E-HEALTH NETWORKING, APPLICATIONS AND SERVICES (HEALTHCOM), 2018,
  • [9] JaVerT: Java']JavaScript Verification and Testing Framework
    Gardner, Philippa
    [J]. PPDP'18: PROCEEDINGS OF THE 20TH INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, 2018,
  • [10] JS']JSOPT: A Framework for Optimization of Java']JavaScript on Web Browsers
    Waqas, Muhammad
    Khan, Minhaj Ahmad
    [J]. MEHRAN UNIVERSITY RESEARCH JOURNAL OF ENGINEERING AND TECHNOLOGY, 2018, 37 (01) : 95 - 104