Testing of AJAX-Based Web Applications Using Hierarchical State Model

Chien-Hung Liu, Chiachih Wu, Hsi-Min Chen
{"title":"Testing of AJAX-Based Web Applications Using Hierarchical State Model","authors":"Chien-Hung Liu, Chiachih Wu, Hsi-Min Chen","doi":"10.1109/ICEBE.2016.050","DOIUrl":null,"url":null,"abstract":"As Ajax, a widely used web development technique, is able to dynamically construct the structures of DOM elements on the browser side, more and more executions of business logic have been shifted from back-end servers to front-end browsers. Moreover, by means of Ajax technique, updates of Web content can take place asynchronously in the background without requesting the whole web pages from servers so it gains the benefit from reducing the amount of network traffic between browsers and web servers. However, in term of web application testing, the existing approaches, adopting web-browsing paths as test cases, are failed to apply in such web applications. In this paper, we propose a test model for Ajax-based web applications based on a hierarchical state machine. The test model is established from observing the state changes of HTML element's attributes and the events that trigger the changes, and then transformed into state transition test trees. Finally, it generates corresponding test cases composed by triggered events to test the behavior of Ajax-based web applications.","PeriodicalId":305614,"journal":{"name":"2016 IEEE 13th International Conference on e-Business Engineering (ICEBE)","volume":"33 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE 13th International Conference on e-Business Engineering (ICEBE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICEBE.2016.050","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

As Ajax, a widely used web development technique, is able to dynamically construct the structures of DOM elements on the browser side, more and more executions of business logic have been shifted from back-end servers to front-end browsers. Moreover, by means of Ajax technique, updates of Web content can take place asynchronously in the background without requesting the whole web pages from servers so it gains the benefit from reducing the amount of network traffic between browsers and web servers. However, in term of web application testing, the existing approaches, adopting web-browsing paths as test cases, are failed to apply in such web applications. In this paper, we propose a test model for Ajax-based web applications based on a hierarchical state machine. The test model is established from observing the state changes of HTML element's attributes and the events that trigger the changes, and then transformed into state transition test trees. Finally, it generates corresponding test cases composed by triggered events to test the behavior of Ajax-based web applications.
使用分层状态模型测试基于ajax的Web应用程序
由于Ajax这种广泛使用的web开发技术能够在浏览器端动态构造DOM元素的结构,越来越多的业务逻辑的执行已经从后端服务器转移到前端浏览器。此外,通过Ajax技术,Web内容的更新可以在后台异步进行,而无需从服务器请求整个Web页面,因此它可以减少浏览器和Web服务器之间的网络流量。然而,在web应用程序测试方面,现有的以web浏览路径为测试用例的方法无法应用于此类web应用程序。在本文中,我们提出了一个基于层次状态机的基于ajax的web应用测试模型。通过观察HTML元素属性的状态变化和触发这些变化的事件,建立测试模型,并将其转化为状态转换测试树。最后,生成由触发事件组成的相应测试用例,以测试基于ajax的web应用程序的行为。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信