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 条
  • [21] Using memetic algorithm for robustness testing of contract-based software models
    Anvar Bahrampour
    Vahid Rafe
    Artificial Intelligence Review, 2021, 54 : 877 - 915
  • [22] Contract-Based Cost Analytics
    Beaulieu, Philip R.
    JOURNAL OF EMERGING TECHNOLOGIES IN ACCOUNTING, 2020, 17 (01) : 11 - 19
  • [23] A contract-based approach to adaptivity
    Schroeder, Andreas
    Bauer, Sebastian S.
    Wirsing, Martin
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2011, 80 (3-5): : 180 - 193
  • [24] Contract Based, Non-invasive, Black-Box Testing of Web Services
    Averstegge, Michael
    Kraemer, Bernd J.
    SERVICE-ORIENTED COMPUTING - ICSOC 2010, PROCEEDINGS, 2010, 6470 : 695 - +
  • [25] Smart contract-based security architecture for collaborative services in municipal smart cities
    Siddiqui, Shahbaz
    Hameed, Sufian
    Shah, Syed Attique
    Khan, Abdul Kareem
    Aneiba, Adel
    JOURNAL OF SYSTEMS ARCHITECTURE, 2023, 135
  • [26] Using Contract-based Component Specifications for Virtual Integration Testing and Architecture Design
    Damm, Werner
    Hungar, Hardi
    Josko, Bernhard
    Peikenkamp, Thomas
    Stierand, Ingo
    2011 DESIGN, AUTOMATION & TEST IN EUROPE (DATE), 2011, : 1023 - 1028
  • [27] An approach to testing black-box components using contract-based mutation
    Jiang, Ying
    Hou, Shan-Shan
    Shan, Jin-Hui
    Zhang, Lu
    Xie, Bing
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2008, 18 (01) : 93 - 117
  • [28] A contract-based architecture for business networks
    Rittgen, Peter
    INTERNATIONAL JOURNAL OF ELECTRONIC COMMERCE, 2008, 12 (04) : 115 - 145
  • [29] A Contract-based Accountability Service Model
    Wang, Chen
    Chen, Shiping
    Zic, John
    2009 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES, VOLS 1 AND 2, 2009, : 639 - 646
  • [30] CONDEnSe: Contract-Based Design Synthesis
    Santos, Cesar Augusto
    Saleh, Amr Hany
    Schrijvers, Tom
    Nicolai, Mike
    2019 ACM/IEEE 22ND INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS 2019), 2019, : 250 - 260