The ASTOOT approach to testing object-oriented programs

Author:

Doong Roong-Ko1,Frankl Phyllis G.2

Affiliation:

1. Sun Microsystems Labs, Mountain View, CA

2. Polytechnic Univ., Brooklyn, NY

Abstract

This article describes a new approach to the unit testing of object-oriented programs, a set of tools based on this approach, and two case studies. In this approach, each test case consists of a tuple of sequences of messages, along with tags indicating whether these sequences should put objects of the class under test into equivalent states and/or return objects that are in equivalent states. Tests are executed by sending the sequences to objects of the class under test, then invoking a user-supplied equivalence-checking mechanism. This approach allows for substantial automation of many aspects of testing, including test case generation, test driver generation, test execution, and test checking. Experimental prototypes of tools for test generation and test execution are described. The test generation tool requires the availability of an algebraic specification of the abstract data type being tested, but the test execution tool can be used when no formal specification is available. Using the test execution tools, case studies involving execution of tens of thousands of test cases, with various sequence lengths, parameters, and combinations of operations were performed. The relationships among likelihood of detecting an error and sequence length, range of parameters, and relative frequency of various operations were investigated for priority queue and sorted-list implementations having subtle errors. In each case, long sequences tended to be more likely to detect the error, provided that the range of parameters was sufficiently large and likelihood of detecting an error tended to increase up to a threshold value as the parameter range increased.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference29 articles.

1. Automatically checking an implementation against its formal ~specification;~ANTOY S.;Tech. Rep. TR 91-1, Rev. 1, Portland State Univ., Portland, Ore.,1992

2. Using assertions about traces to write abstract ~specifications for software modules. In Software Specification Techniques. Addison-Wesley, ~Reading;~BARTUSSEK W.;Mass.,1986

3. Software testing based on formal specifications: a theory and a tool

4. Test data generation using a prolog with constraints. In Proceedmgs ofthe ~Workshop on Software Testing. IEEE Computer Society, Washington;~CHOQUET N.;D.C.,1986

Cited by 117 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automatic Detection of Interaction Errors;2022 IEEE/ACIS 20th International Conference on Software Engineering Research, Management and Applications (SERA);2022-05-25

2. Discovering boundary values of feature-based machine learning classifiers through exploratory datamorphic testing;Journal of Systems and Software;2022-05

3. Metamorphic Fuzzing of C++ Libraries;2022 IEEE Conference on Software Testing, Verification and Validation (ICST);2022-04

4. A Comprehensive Analysis of Testing Efforts Using the Avisar Testing Tool for Object Oriented Softwares;Intelligent Sustainable Systems;2021-12-17

5. Syntax‐based metamorphic relation prediction via the bagging framework;Expert Systems;2021-12-15

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3