Formal specification directed software testing

Pao Yue-kong Library Electronic Theses Database

Formal specification directed software testing

 

Author: Ho, Chi-yin
Title: Formal specification directed software testing
Degree: M.Sc.
Year: 1995
Subject: Z (Computer program language)
Computer software -- Testing
Hong Kong Polytechnic University -- Dissertations
Department: Multi-disciplinary Studies
Pages: v., 251 p. : ill. ; 30 cm
Language: English
InnoPac Record: http://library.polyu.edu.hk/record=b1224925
URI: http://theses.lib.polyu.edu.hk/handle/200/2789
Abstract: In this dissertation, I proposed a formal specification directed software testing technique called Z Formal Specification Directed Software Testing (ZDST). The methodology being developed consists of specifying an application system in the formal specification language Z. From the specification, types, states and functions can be identified precisely. These entities are used to derive test cases for programs implementing the system specification. This leads to potential benefits over a natural language specification which is usually incomplete and informal for vigorous test case derivation. The technique based on ZDST is systematic but becomes ineffective if ZDST is applied manually to complicated and large systems. It is therefore decided to automate ZDST with a software testing tool. By employing the YACC and LEX tools under UNIX, I developed an automated software testing tool called Z Specification Test Data Generator (ZTG). ZTG is capable of generating test data automatically, based on a given Z specification. I have conducted three case studies to evaluate the practicability of ZDST and ZTG. Two of the studies are a payroll system and a triangle program, both are trivial but academically interesting problems. The third one is a cost estimation system which is a real life application in my work place (The Housing Department). Evaluation on these case studies reveals that there are limitations on the use of ZTG, especially on the enumeration of sets. However, ZTG performs quite satisfactorily when it is used in predicate-based testing. This leads to the conclusion that ZDST assisted by ZTG is a viable software testing method. Finally, future direction of formal specification directed software testing is explored.

Files in this item

Files Size Format
b12249257.pdf 6.555Mb PDF
Copyright Undertaking
As a bona fide Library user, I declare that:
  1. I will abide by the rules and legal ordinances governing copyright regarding the use of the Database.
  2. I will use the Database for the purpose of my research or private study only and not for circulation or further reproduction or any other purpose.
  3. I agree to indemnify and hold the University harmless from and against any loss, damage, cost, liability or expenses arising from copyright infringement or unauthorized usage.
By downloading any item(s) listed above, you acknowledge that you have read and understood the copyright undertaking as stated above, and agree to be bound by all of its terms.

     

Quick Search

Browse

More Information