作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (16): 52-56. doi: 10.3969/j.issn.1000-3428.2012.16.013

• 软件技术与数据库 • 上一篇    下一篇

Web应用中数据库交互行为验证

孙茂华 1,2,缪淮扣 1,2,高洪皓 1,2   

  1. (1. 上海大学计算机工程与科学学院,上海 200072;2. 上海市计算机软件评测重点实验室,上海 201112)
  • 收稿日期:2011-10-19 修回日期:2011-11-28 出版日期:2012-08-20 发布日期:2012-08-17
  • 作者简介:孙茂华(1986-),男,硕士研究生,主研方向:形式化方法;缪淮扣,教授、博士生导师;高洪皓,博士研究生
  • 基金资助:
    国家自然科学基金资助项目(60970007);上海市科学技术委员会基金资助项目(10510704900);上海市重点学科建设基金资助项目(J50103)

Verification of Database Interaction Behavior for Web Applications

SUN Mao-hua 1,2, MIAO Huai-kou 1,2, GAO Hong-hao 1,2   

  1. (1. School of Computer Engineering and Science, Shanghai University, Shanghai 200072, China; 2. Shanghai Key Laboratory of Computer Software Evaluating & Testing, Shanghai 201112, China)
  • Received:2011-10-19 Revised:2011-11-28 Online:2012-08-20 Published:2012-08-17

摘要: 采用定理证明和逆向工程的方法,对Web应用中的数据库交互行为进行验证。使用Z规格说明描述需求模型,根据数据库交互的源代码和转换规则得到实现模型。从实现模型中获取Web应用的相关性质,通过Z/EVES定理证明器验证这些性质是否在需求模型的 Z规格说明中得到满足。在此基础上,设计该方法的验证框架,并开发相应的原型系统。通过图书馆数据库管理系统实例证明该方法的有 效性。

关键词: 形式验证, Z规格说明, 数据库交互, 逆向工程, 定理证明

Abstract: This paper introduces theorem proving method and reverse engineering method to verify database interactions of Web application. Z specification considered as the requirement model is used to describe user’s requirements. According to the proposed transformation rules, abstract database interactions from source code of Web application as implementation model, then transform these codes to Z specification. Z/EVES is used to prove whether the implementation model conforms to its properties which are written as theorems. On this basis, it designs the verify framework for the proposed method and the prototype is developed. The library database management system shows the validity of this method.

Key words: formal verification, Z specification, database interaction, reverse engineering, theorem proving

中图分类号: