Title :
Contract-Based Testing for Web Services
Author :
Dai, Guilan ; Bai, Xiaoying ; Wang, Yongbo ; Dai, Fengjun
Author_Institution :
Tsinghua Univ., Beijing
Abstract :
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.
Keywords :
Web services; object-oriented programming; ontologies (artificial intelligence); program testing; Web services; automatic test case generation; contract-based testing; object oriented design; ontology Web language-S process model; test oracle generation; Automatic testing; Contracts; Humans; Microstrip; Performance evaluation; Runtime; Service oriented architecture; Software testing; System testing; Web services;
Conference_Titel :
Computer Software and Applications Conference, 2007. COMPSAC 2007. 31st Annual International
Conference_Location :
Beijing
Print_ISBN :
0-7695-2870-8
DOI :
10.1109/COMPSAC.2007.100