Test data generation for web application using a UML class diagram with OCL constraints

被引:7
|
作者
Fujiwara, Shoichiro [1 ]
Munakata, Kazuki [1 ]
Maeda, Yoshiharu [1 ]
Katayama, Asako [1 ]
Uehara, Tadahiro [1 ]
机构
[1] Fujitsu Labs, Kawasaki, Kanagawa, Japan
关键词
Web application; Basic design; OCL; Testing; Data generation;
D O I
10.1007/s11334-011-0162-3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we report on our current work toward efficient and effective verification of web application's basic design. We use a UML class diagram with Object Constraint Language (OCL) to describe the application behaviors and data constraints. Then we generate test data from the formally represented specifications. We make the observation that key web application behaviors can be captured through table size constraints as well as data constraints like foreign key constraints. Based on the observation, we translate the OCL specification into the equivalent constraints using table size expressions. We present a scheme to generate test data from the translated constraints using a Satisfiability Modulo Theories solver. We employ two techniques to reduce constraints. The first is string handling and the other is decomposition of table structures. We also report on an experimental result of test data generation. The result indicates a potential that our scheme works well for real applications in reasonable times.
引用
收藏
页码:275 / 282
页数:8
相关论文
共 50 条
  • [1] Understanding B specifications with UML class diagram and OCL constraints
    Tatibouet, B.
    Jacques, I.
    ICEIS 2006: PROCEEDINGS OF THE EIGHTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS: INFORMATION SYSTEMS ANALYSIS AND SPECIFICATION, 2006, : 475 - +
  • [2] Normalizing OCL constraints in UML class diagram-based metamodels - AND/OR clauses
    Lengyel, L
    Levendovszky, T
    Charaf, H
    Eurocon 2005: The International Conference on Computer as a Tool, Vol 1 and 2 , Proceedings, 2005, : 579 - 582
  • [3] Test case automate generation from UML sequence diagram and OCL expression
    Li Bao-Lin
    Li Zhi-Shu
    Li Qing
    Chen Yan Hong
    CIS: 2007 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY, PROCEEDINGS, 2007, : 1048 - 1052
  • [4] Reasoning on UML class diagrams with OCL constraints
    Queralt, Anna
    Teniente, Ernest
    CONCEPTUAL MODELING - ER 2006, PROCEEDINGS, 2006, 4215 : 497 - +
  • [5] UML-test Application for Automated Validation of Students' UML Class Diagram
    Herout, Pavel
    Brada, Premek
    2016 IEEE 29TH CONFERENCE ON SOFTWARE ENGINEERING EDUCATION AND TRAINING (CSEE&T), 2016, : 222 - 226
  • [6] UML-test application for automated validation of students' UML class diagram
    Herout, Pavel
    Brada, Premek
    Proceedings - 2016 IEEE 29th Conference on Software Engineering Education and Training, CSEEandT 2016, 2016, : 222 - 226
  • [7] Constraints checking in UML class diagrams:: SQL vs OCL
    Berrabah, D.
    Boufares, F.
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PROCEEDINGS, 2007, 4653 : 593 - +
  • [8] Extending the UML class diagram with deontic constraints
    Ramos, PN
    7TH WORLD MULTICONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL I, PROCEEDINGS: INFORMATION SYSTEMS, TECHNOLOGIES AND APPLICATIONS, 2003, : 104 - 109
  • [9] Modeling Behavioral Deontic Constraints Using UML and OCL
    Vallecillo, Antonio
    Gogolla, Martin
    CONCEPTUAL MODELING, ER 2020, 2020, 12400 : 134 - 148
  • [10] Specification and validation of authorisation constraints using UML and OCL
    Sohr, K
    Ahn, GJ
    Gogolla, M
    Migge, L
    COMPUTER SECURITY - ESORICS 2005, PROCEEDINGS, 2005, 3679 : 64 - 79