Research and Implementation of Test Oracle Techniques Based on Log File Analysis

Author
TuDan
Advisor
ChenRong
School
Dalian Maritime University
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
72
Citations
0

Request the full text

Abstract

As software becomes an important element in daily life,there is a growing concern for software quality and reliability.As a mainstream technique for assuring software quality,Software Testing is the process used to help identify the correctness, completeness,security,and quality of developed computer software.This includes the execution of a program or application with the intent of finding errors.The essence of standards in dynamic software testing is test oracle,which is used to judge whether the software under test has behaved correctly on a particular execution.Log file analysis is a typical specification-based test oracle technique,where the specification is defined by a Finite State Machine(FSM) language and is independent of source code and programming language,and can be used to describe a variety of software behavior.The FSM language can express much more than assertions,and has a strong flexibility and a wide range of applications.Moreover,the testing is done on log files,so it is independent of the choice and the execution of the test case,it only concerns on the judgment of test result and monitoring software dynamic behavior.In this paper,we mainly work on the test oracle techniques based on log file analysis and implement a testing tool in Java.We provide APIs for writing log file, extend Andrew’s state machine language,design and implement the data structure for state machine and the test oracle algorithm,and even apply our tool for monitoring a real software running.The experimental results show that our tool can detect errors which violate constraints at both the unit level test and the system level test.

Table of contents

Abstract 5-6 Abstract 6-9 Chapter 1 Introduction 9-13 1.1 Background 9 1.2 history and development of the status quo 9-11 1.3 research 11-12 1.4 paper structure 12-13 Chapter 2 test oracle Overview 13-39 2.1 test oracle 13-14 2.2 converter predicted 14-16 2.3 embedded assertions language 16-26 2.3.1 Anna 18-19 2.3.2 C language assertion system 19-21 2.3.3 Eiffel 21-23 2.3.4 Java assertion system 23-26 2.4 external interface contract 26-29 2.4.1 ADL 26-27 2.4.2 TOG 27-29 2.5 pure specification language 29-36 2.5.1 Z language, and Z object 29-32 2.5.2 Timing predicted 32-34 2.5.3 SCR 34-36 2.6 track check 36-39 Chapter 3, log file analysis method 39-49 3.1 log files 39-41 3.2 state machine 41-42 3.3 log file analyzer 42-45 3.4 log file analysis language LFAL 45-48 3.5 some discussion 48-49 Chapter 4 Design and 49-63 4.1 architecture 49-52 4.1.1 offline log analysis 50-51 4.1.2 online status monitoring 51-52 4.2 log strategy 52-53 4.3 LFAL parser with the JavaCC.; 53-55 4.4 data structures 55-59 4.4.1 state 55 4.4.2 event 55-56 4.4.3 state machine 56-59 4.5 algorithm 59-63 4.5.1 log file filtering algorithms 60-61 4.5.2 test oracle algorithm 61-63 Chapter 5, experimental results 63-71 5.1 Elevator 63-65 5.2 parser 65-67 5.3 backgammon game 67-71 Chapter 6 Summary and Outlook 71-73 6.1 summarizes 71 6.2 Looking 71-73 References 73-77 published papers during the study for a degree 77-79 thank 79-81 graduate resume 81

Related dissertations

  1. Research and design of on-board control universal testing platform software
  2. Design and Implementation of Automated Test Case Generator
  3. The Design and Implementation of Public Client Business System of Internet Bank Based on J2EE
    XuYingJun ·Tianjin University ·2011 ·Master's thesis
  4. Web Based Metwork-Security Tool Testing and Analysis
  5. Research on Website Traffic Statistical Analysis Technology
    DanZhe ·Harbin Engineering University ·2012 ·Master's thesis
  6. Software development for a launch vehicle
  7. Research on Software Automatic Testing and Its Application in Online Bank System
    AiWen ·Jilin University ·2012 ·Master's thesis
  8. Research and Implementation of Automatic Stub Generation Technology in Unit Test
  9. Research on Android-based Keyword-driven Automated Testing Framework
    HouJuMin ·Sun Yat-sen University ·2012 ·Master's thesis
  10. Study on Neural Network and Its Application in Software Fault Localization
    JiaoDongBin ·Dalian Maritime University ·2012 ·Master's thesis
  11. Research and Implementation of Automatic Software Testing Platform for Adsl Access Device
    MaJunFei ·Shanghai Jiaotong University ·2009 ·Master's thesis
  12. Design and Realization of Software Testing Management Tool
  13. Research on Application of automatic test case generation based on Improved Genetic Algorithm
    PengZuoDong ·Jiangxi University of Technology ·2012 ·Master's thesis
  14. Design and implementation of Automatic Pharmacy software system of TCM formula granule
  15. The Analysis and Design of Government Auto Office System Based SSH Framework
    LiuFeng ·Shandong University ·2012 ·Master's thesis
  16. Research of Software Testing Services in the Cloud Computing Environment
    MengXiangChao ·Dalian Maritime University ·2013 ·Master's thesis
  17. The Application of Embedded TCL Technology in MPLS VPN Test
    ChenRong ·Nanchang University ·2013 ·Master's thesis
  18. The Research and Implementation of VoIP Software Auto Test System
  19. Study on the Risk Assessment of Android Smartphone Software Testing
  20. The Key Technologies of Software Parallel Test Based on Cloud Computing
    LiuWei ·Donghua University ·2013 ·Master's thesis