高级检索
    吴国全, 何妹妹, 魏峻, 钟华, 黄涛. 基于捕获/重放的Web应用跨浏览器兼容性检测[J]. 计算机研究与发展, 2017, 54(3): 623-632. DOI: 10.7544/issn1000-1239.2017.20151051
    引用本文: 吴国全, 何妹妹, 魏峻, 钟华, 黄涛. 基于捕获/重放的Web应用跨浏览器兼容性检测[J]. 计算机研究与发展, 2017, 54(3): 623-632. DOI: 10.7544/issn1000-1239.2017.20151051
    Wu Guoquan, He Meimei, Wei Jun, Zhong Hua, Huang Tao. Cross-Browser Issues Detection in JavaScript-Based Web Applications Based on Record/Replay[J]. Journal of Computer Research and Development, 2017, 54(3): 623-632. DOI: 10.7544/issn1000-1239.2017.20151051
    Citation: Wu Guoquan, He Meimei, Wei Jun, Zhong Hua, Huang Tao. Cross-Browser Issues Detection in JavaScript-Based Web Applications Based on Record/Replay[J]. Journal of Computer Research and Development, 2017, 54(3): 623-632. DOI: 10.7544/issn1000-1239.2017.20151051

    基于捕获/重放的Web应用跨浏览器兼容性检测

    Cross-Browser Issues Detection in JavaScript-Based Web Applications Based on Record/Replay

    • 摘要: 由于浏览器实现技术的差异以及对标准支持程度的不同,Web应用的跨浏览器不兼容性(cross-browser incompatibilities, XBI)已成为Web应用开发者面临的严重问题.现有的兼容性检测工具仅考虑用户交互事件而忽略了浏览器内部事件,无法保证在不同的浏览器平台上有相同的执行,导致检测结果出现大量误报和漏报.提出了一种基于捕获/重放技术的Web应用跨浏览器兼容性检测方法,在事件捕获阶段记录Web应用在参考浏览器平台运行时产生的各种非确定性事件,并在重放阶段在测试浏览器平台中进行远程重放.通过在重放过程中采集页面信息,保证了检测结果的准确性.为避免重复检测,设计了一种增量式的检测算法提高了检测效率.实验结果表明了所提出方法的有效性.

       

      Abstract: With the advent of Web 2.0 application, and the increasing number of browsers and platforms on which the Web applications can be executed, XBI (cross browser incompatibilities) is becoming a serious problem for organizations to develop Web based software with good user experience. Although some techniques and tools have been proposed to identify XBI, they cannot assure the same execution when Web application is rendered in different platforms as only user interactions events are considered, which may result in generating both false positives and false negatives. To address this limitation, by leveraging existing record/replay technique, this paper develops X-CHECK, a novel cross browser incompatibilities testing approach and tool, which can faithfully reproduce a previous execution and facilitate XBI detection by directly replaying the captured event trace in different platforms. The same execution in different platforms improves the accuracy in detecting XBI. By observing DOM mutations during the replay, X-CHECK also designs an incremental cross-browser detection algorithm, which only detects mutational content of Web page. This algorithm improves the performance in detecting XBI. The empirical evaluation shows that X-CHECK is effective, efficient and improves on the state of the art, and can provide useful support to developers for diagnosis and (eventually) elimination of XBI.

       

    /

    返回文章
    返回