检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]北京化工大学信息科学与技术学院,北京100029
出 处:《计算机科学与探索》2018年第1期101-111,共11页Journal of Frontiers of Computer Science and Technology
基 金:国家自然科学基金Nos.61170082;61472025;教育部新世纪优秀人才计划项目No.NCET-12-0757~~
摘 要:AJAX(asynchronous Java Script and XML)技术广泛应用于Web应用程序,实现了异步发送请求。在异步请求过程中,由于程序代码设计不合理和网络延迟等原因,会引发异步请求错误。目前的研究提出了静态和动态的分析方法检测AJAX错误,然而忽略了返回数据中包含可能存在事件操作的异步请求,同样可以引发异步请求错误。在动态分析技术的基础上,通过URL参数从服务器端获取完整的返回数据并解析其中的事件操作,分析事件操作之间或与原有的异步请求之间可能引发的问题,并将此类问题定义为异步请求时序问题;然后将两者一起构成异步请求交错图,通过图的连通关系检测可能发生的异步请求错误;最后在此基础上提出了一个完整的工具原型,用于自动化检测Web应用程序中的异步请求时序问题。利用所提出的方法,针对现有5个特定Web应用程序和5个开源Web应用程序,检测异步请求中的三类问题,并通过控制网络条件进行验证,结果表明了该检测方法的有效性,与之前的方法相比,该方法能够实现更多的Web应用程序问题检测。AJAX(asynchronous Java Script and XML) has been widely adopted in Web applications, which achieves asynchronous interaction. In an AJAX process, improper code design and network delays may lead to data errors and asynchronous faults. Static and dynamic approaches have been proposed to detect such faults, however a fact is ignored, i.e., the return data of an asynchronous operation may contain events that can further trigger asynchronous request and result in asynchronous faults. In this paper, based on dynamic approaches, the complete return data of asynchronous request from the server side is acquired via the URL parameter whose return data contain event operation, in which the events are abstracted. The possible asynchronous faults are analyzed between two return event operations or between one of them and original asynchronous request, which is defined as the asynchronous request sequence problems. Then the asynchronous request interleaving graph is constituted to detect asynchronous request errors by the connected relationship of the graph. Based on the proposed approach, a tool prototype is established for automated testing asynchronous request in Web applications. Five case applications and five open source Web applications are selected for experiments. By controlling the verify network conditions, the results show that the proposed approach is effective for detecting the asynchronous request faults. Moreover, compared with previous methods,it even can detect more Web application errors.
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.15.189.95