Research of Assistantly Constructing Testing Programs for Data Structure Algorithm Design Assignment

Author
ZhangWei
Advisor
WuWeiMin
School
Guangdong University of Technology
Major
Applied Computer Technology
Classification
TP311.12 Data structures
Degree
Master's thesis
Year
2012
Downloads
43
Citations
0

Request the full text

Abstract

Program testing is an important means to ensure the correctness of program. Its core is how to select and generate test data. However, currently most generation methods for test data in program testing are on numerical data, such as integer, real, etc., so they can’t directly be applied to dynamic data structures. These methods are basically generated manually; to some extent, this situation affects the development of generation methods. Therefore, study on how to generate test data and testing program for dynamic data structures is of great significance and with broad application prospect.The visualized assignment system of data structure and algorithm design AnyViewDS, developed by Professor Wu Weimin from Computer Faculty in Guangdong University of Technology, is an integrated environment for data structure curriculum to submit, run, debug and test students’ programming assignment. Students can finish programming of algorithm design on internet with this system. They only need to edit functions of input arithmetic. After that, the system will automatically test them. At present, test data and testing programs are hand-written by teachers; this extremely consumes time and effort of teachers. Therefore, it is necessary to design and develop a testing program generation system for dynamic data structure to improve the usefulness of AnyViewDS and reduce workload of teachers.Based on the above situation and problem, this paper combined the related program test techniques of test data generation for dynamic data, aimed at assignments submitted by students in AnyViewDS, studied on constructing testing programs for data structure algorithm design assignment. The main work of this paper is as follows.First, the author analyzed the drawback of AnyViewDS and then put forward the need of testing program generation. With the analysis and research on the existing programs, the author summarized common features of them, and then abstracted the summation as template for test program generation. With this template, the author put forward a method for test program generation. This method used to construct test data. For low coupling of the system, this paper draw support from auxiliary function library of test data. According to various data structures, this paper designed and implemented different auxiliary functions for test programs.Second, based on these work, based on human-computer interactive way, the author designed and implemented the Testing Program Generating System with Java Swing technique. This system can semi-automatically generate test program for AnyViewDS.Finally, in order to test and verify the test program generation method which is based on filling the template, the author integrated TPGS and AnyViewDS, and tested the functions of TPGS. The experimental results show that this method achieved the expected goal.

Table of contents

Summary 4-6 ABSTRACT 6-12 first chapter 12-19 1.1 research background 12-17 1.1.1 development Status program testing Status 12-16 1.1.2 AnyViewDS operating system research 16-17 1.2 and significance of this paper select 17-18 1.3 This article subjects the organizational structure 18 1.4 article 18-19 Chapter II test procedures related technologies to build auxiliary 19-25 2.1 software testing 19-20 2.2 dynamic data structure test data generation 20-22 2.3 automatic code generation 22-25 Chapter populated template-based test program generation methods testing Process 25-33 3.1 AnyViewDS operating system 25 3.2 template-based filling the test program generation method 25-33 3.2.1 analysis of existing test procedures template 26-28 3.2.2 test procedures 28-32 3.2.3 populated template-based test program generation method 32-33 Chapter IV test program generation system design and implementation 33-54 4.1 system the overall framework 33 flowchart module features a 4.2 system 33-35 4.3 system, each module 35-53 4.3. a system development environment achieve 35 4.3.2 functional modules configuration item policy nbsp 35-52 4.3.3 function parameters ; 52-53 <br / > 4.3.4 element type ElemType judgment of 53 section 4.4 of this chapter 53-54 Chapter V system testing and validation 54-63 5.1 system testing process 54-58 5.2 test procedures to verify the correctness of 58-59 5.2.1 experimental Design 58-59 5.2.2 analysis of experimental results code 59 5.3 test coverage analysis program conceptual 59-61 5.3.1 code coverage 59-60 <br / > 5.3.2 experimental Design 60-61 5.3.3 analysis of experimental results function Point 61 5.4 test program covering 61-62 <br / > 5.4.1 experimental Design 61-62 5.4.2 experimental results 62 5.4.3 analysis of experimental results 62 5.5 nbsp sections of this chapter ; 62-63 conclusion 63-64 References 64-68 pursue a master's degree in published papers during 68-70 Thanks 70

Related dissertations

  1. Exception Propagation Analysis and Its Applications
    JiangShuJuan ·Southeast University ·2006 ·Doctoral dissertation
  2. A Dynamic Data Structure--Pool and its Application in Intelligent VLSI Circuit Placement Design
  3. Constraint Based Prolog Semantics and Its Applications in the Testing, Analysis and Verification of Prolog Programs
  4. Plant Root System Simulation Rresearch Based on Dynamic Growth Model
    LvWei ·Southwestern University ·2006 ·Master's thesis
  5. Study and Implementation of the Method for Driver Design in VxWorks System