arrow
返回

An incremental method for extracting tests from object-oriented specification

delete2016-10-01
delete2
PRE
AI
M
Mohammad Ghoreshi
H
Hassan Haghighi *
DOI:10.1016/j.infsof.2016.05.005delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Context: The nature of the object-oriented development process is iterative and incremental, and through this process, software artifacts are refined and evolved continuously; however, most of proposed methods for deriving test cases from formal, object-oriented specifications have been adapted from previous structural techniques and are not aligned with such an incremental process. These methods are not adaptive with changes in the software specification, and there is no mechanism to evolve test artifacts respectively. Moreover, the existing methods do not cover all different object-oriented testing levels, i.e., intra-method, inter-method, intra-class and inter-class levels. Objective: This paper presents an incremental method for extracting tests from formal, object-oriented specifications. Extracted tests are adaptive with changes in the class specification. In addition, the proposed method covers all different object-oriented testing levels. Method: We first make a test machine (as a new notion introduced in this paper) for each class operation to cover the intra-method test level. With the combination of these test machines, new test machines covering the inter-method and intra-class test levels can be made. Extracted tests can be easily modified when the class specification is modified, and, in this way, our approach enables iterative and incremental test derivation. With test machines corresponding to a class hierarchy, this approach can also be used for deriving inter-class tests. Results: As a case study, we applied our method to the specification of a computer game. Results indicate that test machines can incrementally be extracted through a class hierarchy, and a parent test machine can be used to obtain its corresponding child test machines (by reusing test artifacts). Furthermore, by running extracted test cases on the implemented game, we discovered some real bugs. Conclusion: The proposed approach can incrementally extract tests and bring extendibility and reusability as two main advantages of the object- oriented paradigm to the test domain. (C) 2016 Elsevier B.V. All rights reserved.
Keyword:
Test case generation
Formal specification
Specification-based testing
Object orientation
Object-Z
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
7.7K

机构

S
Shahid Beheshti University
学者数:
7.6K
论文数: 6.8K
被引数: 6.9K
引用论文

引用论文

An automated framework for software test oracleoracle软件测试自动化框架
err2011-07-01
err44
PREAI
errShahamiri, Seyed Reza; Kadir, Wan Mohd Nasir Wan; Ibrahim, Suhaimi; Hashim, Siti Zaiton Mohd
err分享
err收藏
The relationship between self-presentation styles and coping with social stress
err2004-03-01
err0
PREAI
errKarl-heinz Renner; Lothar Laux; Astrid Schütz; James T. Tedeschi
err分享
err收藏
On the notion of inheritance
err1996-09-01
err107
errOAAI
errTaivalsaari, A
err分享
err收藏
Usefulness of minipigs for predicting human pharmacokinetics: Prediction of distribution volume and plasma clearance
err2016-02-01
err0
PREAI
errHiromichi Yoshimatsu; Yoshihiro Konno; Kunikazu Ishii; Masahiro Satsukawa; Shinji Yamashita
err分享
err收藏
err分享
err收藏
The Oracle Problem in Software Testing: A Survey软件测试中的Oracle问题: 调查
err2015-05-01
err665
errOAAI
errBarr, Earl T.; Harman, Mark; McMinn, Phil; Shahbaz, Muzammil; Yoo, Shin
err分享
err收藏
Occurrence of myasthenia gravis in a patient with congenital myotonia
err1982-11-01
err0
PREAI
errHiroyuki Matsumoto; Toshiro Sugiyama; Masaharu Ito; Akira Yachi
err分享
err收藏
没有更多内容