Research of Software Test Case Automatic Generation Based on Efsm

Author
NianXiaoLing
Advisor
CaiHuai
School
Southwest Jiaotong University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2005
Downloads
503
Citations
20

Request the full text

Abstract

Software has been used in many fields of society with the rapid development of the information technology, so the quality of software becomes the common focus of users and developers. Software test is one of the important approaches of software quality assurance. According to statistics, the cost of software test accounts for about 50% of the total cost of software development. That is to say, software test is very important to the dependability of software. Because of the large cost on software test, people try to automate the software test process automatically. The automatic generation of software test case will chang the traditonal methods greatly which employ only intuition and experience, and lighten loads of work on writing the case of software test.This thesis researched automatic generation of software test case based on extanded finite state machine(EFSM). Preconditions have effect on the feasibility of the routes when states had been changed, so we analysed this problem and turned the undeterminate EFSM to determinate EFSM. When choosing the input data for the test, the ’subsection gradient optimal descent algorithm’ will be used. Before using the method, turning the expression to the normal expression and shortening the variable value’s area have been done in this thesis in order to automate software test input data generation.EFSM is used in many areas like behavior of objects and relations among objects in objected oriented software systems. At the same time, because the state diagram is much similar to EFSM, The automatic generation of software test case makes sense in pracice to research the automatic generation of software test case.

Table of contents

The first chapter 9-13 1.1 paper background 9 1.2 research status 9-10 1.3 the main research work and its significance 10-11 1.4 papers organization 11-13 Chapter II software testing 13-19 <br / > 2.1 test Overview 13 2.2 tests related concepts 13-14 2.3 beta 14-16 2.4 Based on the Statute of the software testing 16-19 2.4.1 Overview 16-17 2.4.2 formal methods and formal specification 17-19 Chapter III of object-oriented software testing 19-24 3.1 object-oriented programming on the impact of software testing 19-21 3.1.1 information hiding and encapsulation effects on the test 19-20 3.1.2 inheritance influence on the test 20 3.1.3 polymorphism and dynamic binding effect on the test 20-21 3.2 object-oriented software testing strategy and scoping 21-22 3.3 object-Oriented software test coverage criteria 22-24 Chapter EFSM -based test sequences automatically generated 24-44 4.1 finite state machine (FSM) related definitions 24-27 4.2 Overview of extended finite state machines and related concepts 27-29 4.3 EFSM -based test basic idea 29-31 <br / > 4.4 based on extended finite state machine test coverage criteria 31-33 4.5 EFSM to determine the initial EFSM conversion 33-36 4.5 .1 sub-state generation 33-34 4.5.2 test Setup 34-36 4.6 based on finite state machine of the four classical testing methods 36-44 4.6.1 T method 36-37 4.6.2 U method 37-40 4.6 .3 D method 40-41 4.6.4 W method 41-44 Chapter test input data is automatically generated 44-56 <br / > 5.1 state transition regular expression generation 44-48 5.1.1 variables affect the determination of the scope 45-46 5.1.2 general regex expression to convert 46-48 5.2 to determine the input variable interval 48-49 5.3 test input data to determine 49 -56 5.3.1 objective function to determine 49-51 5.3.2 gradient descent to determine the direction 51 5.3.3 optimal step determination 51-53 5.3.4 Break optimal gradient descent algorithm 53-56 Conclusion and Outlook 56-58 Thanks 58-59 References 59-63 papers published during the study for a degree 63