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 条
  • [31] Validating specifications: A contract-based approach
    Nellore, R
    IEEE TRANSACTIONS ON ENGINEERING MANAGEMENT, 2001, 48 (04) : 491 - 504
  • [32] Verification of Contract-based Communicating Systems
    Salauen, Gwen
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2013, (138):
  • [33] Mandatory and Contract-based Shareholding Disclosure
    Enriques, Luca
    Gargantini, Matteo
    Novembre, Valerio
    UNIFORM LAW REVIEW, 2010, 15 (3-4) : 713 - 742
  • [34] On the Significance of Contract-Based Typestate Specification
    Khairunnesa, Samantha Syeda
    Hoan Anh Nguyen
    Rajan, Hridesh
    WASPI'18: PROCEEDINGS OF THE 1ST ACM SIGSOFT INTERNATIONAL WORKSHOP ON AUTOMATED SPECIFICATION INFERENCE, 2018, : 13 - 14
  • [35] Contract-Based Cooperative Spectrum Sharing
    Duan, Lingjie
    Gao, Lin
    Huang, Jianwei
    2011 IEEE INTERNATIONAL SYMPOSIUM ON DYNAMIC SPECTRUM ACCESS NETWORKS (DYSPAN), 2011, : 399 - 407
  • [36] A Contract-Based Semantics and Refinement for Simulink
    Sun, Quan
    Zhang, Wei
    Wang, Chao
    Liu, Zhiming
    DEPENDABLE SOFTWARE ENGINEERING. THEORIES, TOOLS, AND APPLICATIONS, SETTA, 2022, 13649 : 134 - 148
  • [37] ARCHITECTURAL MALPRACTICE - CONTRACT-BASED APPROACH
    不详
    HARVARD LAW REVIEW, 1979, 92 (05) : 1075 - 1102
  • [38] Contract-Based Verification of Simulink Models
    Bostrom, Pontus
    FORMAL METHODS AND SOFTWARE ENGINEERING, 2011, 6991 : 291 - 306
  • [39] Trustworthy Web Services based on testing
    Yu, WD
    Supthaweesuk, P
    Aravind, D
    SOSE 2005: IEEE International Workshop on Service-Oriented System Engineering, 2005, : 159 - 169
  • [40] Mutation Based Testing of Web Services
    da Silva Solino, Andre Luiz
    Vergilio, Silvia Regina
    LATW: 2009 10TH LATIN AMERICAN TEST WORKSHOP, 2009, : 135 - 140