Contract-based testing for web services

被引:0
|
作者
Dai, Guilan [1 ]
Bai, Xiaoying [2 ]
Wang, Yongbo [2 ]
Dai, Fengjun [1 ]
机构
[1] Tsinghua Univ, Res Inst Informat Technol, Beijing, Peoples R China
[2] Tsinghua Univ, Dept Comp Sci & Technol, Beijing, Peoples R China
基金
北京市自然科学基金; 美国国家科学基金会;
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Service-oriented architectures introduce some important issues that need to be considered when performing software testing. In a service-oriented scenario, users just invoke a service, instead of physically integrating it (as it happens for components). The service provider can decide to maintain the service, and the user could not be aware of that. The dynamically constructed service-based system has to be tested dynamically and automatically at runtime without human intervention. This paper examines the use of Design by Contract for web service descriptions, and explores the issues and solutions Of automatic test case generation and test oracle generation in the context of WS testing based on contracts. In our approach, the traditional concept of contracts (pre-condition, post-condition, and invariant) is extended to contain richer information, such as process control, to support automatic test generation. Contracts are used to specify the relation between a component and its clients as a formal agreement, expressing each party's rights and obligations. Contracts can be expressed in the OWL-S process model. By checking whether the web service respects its contracts, we can ascertain its validity. Therefore, contracts provide the basis for the automation of the testing process. Test case generation includes test data generation and test process generation. Valid test data are generated for all WS behaviors using the complete WS input and precondition. The control constructs of contracts are transformed to Petri-Net model, and then generated test process based on the Petri-Net behavior analysis. A test oracle provides a means for determining whether an implementation functions according to its specification. Using the output and effect of the contract of a web service and corresponding test cases, it can automatically derive the expected state for every Perform in the test case. The actual state of an executing web service in terms Of Perform and their properties can be monitored and collected. Using the actual state acquired from an execution monitor, it can automatically compares the expected and actual states after each Perform to verify the correctness of the web service for the test case.
引用
收藏
页码:517 / +
页数:3
相关论文
共 50 条
  • [41] Contract-Based Verification of Hierarchical Systems of Components
    Quinton, Sophie
    Graf, Susanne
    SEFM 2008: SIXTH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, PROCEEDINGS, 2008, : 377 - 381
  • [42] A Contract-Based Formalism for the Specification of Heterogeneous Systems
    Benvenuti, Luca
    Ferrari, Alberto
    Mangeruca, Leonardo
    Mazzi, Emanuele
    Passerone, Roberto
    Sofronis, Christos
    2008 FORUM ON SPECIFICATION, VERIFICATION AND DESIGN LANGUAGES, 2008, : 166 - +
  • [43] Managing Reputation in Contract-Based Distributed Systems
    Baldoni, Roberto
    Doria, Luca
    Lodi, Giorgia
    Querzoni, Leonardo
    ON THE MOVE TO MEANINGFUL INTERNET SYSTEMS: OTM 2009, PT 1, 2009, 5870 : 760 - 772
  • [44] Contract-Based Program Repair without the Contracts
    Chen, Liushan
    Pei, Yu
    Furia, Carlo A.
    PROCEEDINGS OF THE 2017 32ND IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE'17), 2017, : 637 - 647
  • [45] Contract-Based Integration of Automotive Control Software
    Sehnke, Tobias
    Schultalbers, Matthias
    Ernst, Rolf
    PROCEEDINGS OF THE 2017 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2017, : 1611 - 1614
  • [46] Cooperative Spectrum Sharing: A Contract-Based Approach
    Duan, Lingjie
    Gao, Lin
    Huang, Jianwei
    IEEE TRANSACTIONS ON MOBILE COMPUTING, 2014, 13 (01) : 174 - 187
  • [47] A contract-based model for directed network formation
    Johari, Ramesh
    Mannor, Shie
    Tsitsiklis, John N.
    GAMES AND ECONOMIC BEHAVIOR, 2006, 56 (02) : 201 - 224
  • [48] Contract-based coordination of distributed object systems
    Giese, H
    Graf, J
    Wirtz, G
    INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS I-V, PROCEEDINGS, 1999, : 25 - 31
  • [49] Smart Contract-based Car Insurance Policies
    Bader, Lennart
    Buerger, Jens Christoph
    Matzutt, Roman
    Wehrle, Klaus
    2018 IEEE GLOBECOM WORKSHOPS (GC WKSHPS), 2018,
  • [50] A Theory of Adaptable Contract-Based Service Composition
    Bernardi, G.
    Bugliesi, M.
    Macedonio, D.
    Rossi, S.
    PROCEEDINGS OF THE 10TH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND NUMERIC ALGORITHMS FOR SCIENTIFIC COMPUTING, 2009, : 327 - 334