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 条
  • [21] WebAssembly - Hope for Fast Acceleration of Web Applications Using Java']JavaScript
    Fras, Krystian
    Nowak, Ziemowit
    [J]. INFORMATION SYSTEMS ARCHITECTURE AND TECHNOLOGY, ISAT 2019, PT I, 2020, 1050 : 275 - 284
  • [22] CSRF protection in Java']JavaScript frameworks and the security of Java']JavaScript applications
    Peguero, Ksenia
    Cheng, Xiuzhen
    [J]. HIGH-CONFIDENCE COMPUTING, 2021, 1 (02):
  • [23] An Architecture for Enforcing Java']JavaScript Randomization in Web2.0 Applications
    Athanasopoulos, Elias
    Krithinakis, Antonis
    Markatos, Evangelos P.
    [J]. INFORMATION SECURITY, 2011, 6531 : 203 - 209
  • [24] Toward Analysis and Bug Finding in Java']JavaScript Web Applications in the Wild
    Ryu, Sukyoung
    Park, Jihyeok
    Park, Joonyoung
    [J]. IEEE SOFTWARE, 2019, 36 (03) : 74 - 82
  • [25] Java']JavaScript essentials: Creating interactive Web applications - Manger,J
    Gillespie, T
    [J]. LIBRARY JOURNAL, 1996, 121 (20) : 138 - 138
  • [26] Java']JavaScript Offloading for Web Applications in Mobile-Cloud Computing
    Yu, Meihua
    Huang, Gang
    Wang, Xudong
    Zhang, Ying
    Chen, Xiangqun
    [J]. 2015 IEEE THIRD INTERNATIONAL CONFERENCE ON MOBILE SERVICES MS 2015, 2015, : 269 - 276
  • [27] Dynamic web worker pool management for highly parallel java']javascript web applications
    Verdu, Javier
    Jose Costa, Juan
    Pajuelo, Alex
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2016, 28 (13): : 3525 - 3539
  • [28] An Automated Framework for Migrating Java']Java Applications to Ethereum Solidity Applications
    Fajge, Akshay M.
    Thakur, Siddharth
    Kumar, Rahul
    Halder, Raju
    [J]. 2021 3RD CONFERENCE ON BLOCKCHAIN RESEARCH & APPLICATIONS FOR INNOVATIVE NETWORKS AND SERVICES (BRAINS), 2021, : 1 - 3
  • [29] Automated Construction of Java']JavaScript Benchmarks
    Richards, Gregor
    Gal, Andreas
    Eich, Brendan
    Vitek, Jan
    [J]. OOPSLA 11: PROCEEDINGS OF THE 2011 ACM INTERNATIONAL CONFERENCE ON OBJECT ORIENTED PROGRAMMING SYSTEMS LANGUAGES AND APPLICATIONS, 2011, : 677 - 693
  • [30] Designing and developing portable large-scale Java']JavaScript web applications within the Experiment Dashboard framework
    Andreeva, J.
    Dzhunov, I.
    Karavakis, E.
    Kokoszkiewicz, L.
    Nowotka, M.
    Saiz, P.
    Tuckett, D.
    [J]. INTERNATIONAL CONFERENCE ON COMPUTING IN HIGH ENERGY AND NUCLEAR PHYSICS 2012 (CHEP2012), PTS 1-6, 2012, 396