摘要
Web应用的迅猛发展及其自身的复杂特性给其测试带来了一定的难度,使得传统的测试方法已不能满足需求,迫切需要新的Web测试方法和技术.定义了Web应用模式并构造其关系图以对Web应用进行建模.关系图用来建立产生路径表达式的路径生成图,继而提出一种测试路径生成方法.若提供输入值,则测试路径可以很容易地构造测试用例.为了说明问题,给出了一个简单Web登录系统作为案例.此外,根据"分而治之"的原理,当被测Web应用过于复杂时,给出了一种路径生成策略.该策略使得Web应用简单而易控制,在某种程度上限制了状态空间的爆炸.最后,从理论上阐明了本文给出方法和规则的通用性及正确性.
The swift development of Web applications and their own complex characteristics have brought certain difficulty for their test.Thus,the demand cannot be satisfied by the traditional test methods and some bran-new Web test approaches are urgently required.This work defines Web application schema and constructs Web application relation graph in order to model Web applications.An approach to generating test paths is presented by establishing path-generating graph which is derived from the relation graph and used to produce path expressions.The test paths can be easily employed to construct test cases if user input values are provided.As a case study,a simple Web login system is exemplified.Moreover,a path generation strategy is suggested in accordance with the 'divide and conquer' principle when the Web application under test is complicated.The strategy makes the Web application less complex and more controllable.This also restricts the state space explosion in a sense.Finally,it illuminates in theory the generality and correctness of the approach and rules proposed.
出处
《小型微型计算机系统》
CSCD
北大核心
2013年第3期486-491,共6页
Journal of Chinese Computer Systems
基金
国家自然科学基金项目(61262010
61163007)资助
江西省教育厅科技计划项目(GJJ12743)资助
江西省自然科学基金项目(2010GQS0048)资助