Test frame updating in CPM testing of Prolog programs

  • Authors:
  • Lingzhong Zhao;Tianlong Gu;Junyan Qian;Guoyong Cai

  • Affiliations:
  • Electronic Engineering School, Xidian University, Xi'an, China 710071 and School of Computer and Control, Guilin University of Electronic Technology, Guilin, China 541004;School of Computer and Control, Guilin University of Electronic Technology, Guilin, China 541004;School of Computer and Control, Guilin University of Electronic Technology, Guilin, China 541004;School of Computer and Control, Guilin University of Electronic Technology, Guilin, China 541004

  • Venue:
  • Software Quality Control
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Category Partition Method (CPM) is a general approach to specification-based program testing, where test frame reduction and refinement are two important issues. Test frame reduction is necessary since too many test frames may be produced, and test frame refinement is important since during CPM testing new information about test frame generation may be achieved and considered incrementally. Besides the information provided by testers or users, implementation related knowledge offers alternative information for reducing and refining CPM test frames. This paper explores the idea by proposing a call patterns semantics based test frame updating method for Prolog programs, in which a call patterns analysis is used to collect information about the way in which procedures are used in a program. The updated test frames will be represented as constraints. The effect of our test frame updating is two-fold. On one hand, it removes "uncared" data from the original set of test frames; on the other hand, it refines the test frames to which we should pay more attention. The first effect makes the input domain on which a procedure must be tested a subset of the procedure's input domain, and the latter makes testers stand more chance to find out the faults that are more likely to show their presence in the use of the program under consideration. Our test frame updating method preserves the effectiveness of CPM testing with respect to the detection of faults we care. The test case generation from the updated set of test frames is also discussed. In order to show the applicability of our method an approximation call patterns semantics is proposed, and the test frame updating on the semantics is illustrated by an example.