The Improvement and Implementation of Test Case Prioritization in Regression Testing

Author
Wu
Advisor
ZhaoZhiHong
School
Nanjing University
Major
Computer Science and Technology
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2012
Downloads
75
Citations
1

Request the full text

Abstract

With the development of software technology, the size and complexity of the software systems increase gradually, which leads to the increment of faults and defects. Therefore, software testing becomes more and more important in order for quality assurance. Regression testing is one of the most important methods for software testing. It aims to assure that the modification of the software systems do not influence the correctness of the original functions. Naturally, regression testing asks for retesting all of the test cases, which is impractical and the cost is huge. Therefore, decreasing the cost of the regression testing and increasing the efficiency of it is necessary and meaningful. Many techniques have been proposed to solve this problem partially, one of which is test case prioritization. Test case prioritization rearranges test cases according to some criteria, so that test cases with a higher priority are executed earlier in order to meet some goals, for example, to increase the rate of fault detection.Similarity-based test case prioritization is one of the most widely-used methods in these days. The basic idea is that: rearranging test cases in such a manner as to maximize diversity of test cases with respect to the similarity measure of the features of test cases. The three main points of the similarity-based test case prioritization is that: the information of test cases that need to be evaluated, the method how this evaluation should be done and the strategy for maximizing test cases. Previous studies used the code coverage information as the feature of test cases, and ignored the contributions of the relative execution counts of program elements. In this paper, we consider this factor and propose a new technique called "test case prioritization utilizing relative execution counts of program elements", which improves the current similarity-based test case prioritization techniques from the following three points. For the new technique, we characterize each execution profile as the sorted sequence of its elements, where the sorting key is the number of times each element executed, and use edit distance as the dissimilarity metric in order to emphasize the ordering within each execution profile. At the same time, we use farthest-first algorithm as the strategy to maximize test cases. In this paper, we conduct three experiments for comparing the efficiency between the new technique and other test case prioritization techniques, including other similarity-based test case prioritization techniques and the traditional coverage-based test case prioritization techniques. The empirical study shows that: our new technique can significantly increase the rate of fault detection and detect the bugs in loops more quickly than other techniques. Meanwhile, our new technique is complementary with the coverage-based test case prioritization techniques.Finally, we implement an eclipse plug-in called TCP plug-in, to support test case prioritization techniques. The TCP plug-in is implemented on the basis of the previous implementation and has a significant improvement. The improved TCP plug-in integrates the new proposed technique and can be used to support the industry projects and huge test suites.

Table of contents

Summary 5-7 Abstract 7-11 LIST 11-12 table directory 12-13 Chapter 1 Introduction 13-19 1.1 test case prioritization techniques outlined 13-15 Status 1.2 test case prioritization technique 15-17 <br / > 1.3 main work of this paper 17-18 1.4 This article organizational structure 18-19 chapter based on similarity of test case prioritization techniques 19-25 2.1 technical Summary 19-20 2.2 typical algorithms described 20-24 2.2.1 adaptive random test case prioritization techniques 20-22 2.2.2 test case prioritization based on clustering technology 22-24 2.3 Summary 24-25 Chapter III relative execution the most distant times and priority algorithm in priority techniques 25-31 3.1 new technology research motivation 25-26 3.2 test characteristics and differences equation choice improved 26-28 3.3 test case diversity strategy 28-29 3.4 Summary 29-31 Chapter IV experiment and tools to achieve 31-54 4.1 experimental target 31 4.2 contrast technology 31-33 4.3 experimental procedures 33-34 4.4 experimental Procedure 34-38 4.4.1 sectional collect information 34-36 4.4.2 algorithm execution 36-37 4.4.3 variation of error generated 37-38 4.5 experimental results and analysis 38-47 4.6 experimental risk analysis 47-48 <br / > 4.7 tools to achieve 48-52 4.7.1 Implementation Details 48-50 4.7.2 metrics 50-51 4.7. 3 Use the flow 51-52 4.8 summary 52-54 Chapter summary and Outlook 54-56 5.1 summarizes 54-55 5.2 Prospects for further work 55-56 References 56-62 Thanks 62-63 involved in the project 63-65

Related dissertations

  1. Research on String Edit Similarity Join
    CaoHai ·Harbin Institute of Technology ·2012 ·Master's thesis
  2. Research of Long Speech and Text Alignment
    ZhouChen ·Xiangtan University ·2013 ·Master's thesis
  3. Approximate String Matching and Optimizition Techniques Using Reversed Filter
    PeiTao ·Northeastern University ·2013 ·Master's thesis
  4. Research on the Spectrum-based Fault Localization for Software Systems
    GongLiang ·Tsinghua University ·2013 ·Master's thesis
  5. Research and Implementation on Corresponding Method between Chinese Name of Transportation Data and Standard Terminology
    LiNanNan ·Chang'an University ·2013 ·Master's thesis
  6. Research and Implementation of Duplicate Web-Pages Removal Technology
  7. Research on Intelligent Crawler Technology of Web Vulnerability Scanner
  8. An Algorithm of Computing String Similarity Based on Improved Levenshtein Distance
    HanAnZuo ·Northeast Normal University ·2013 ·Master's thesis
  9. System of syntactic chunks Chinese FAQ based question answering
  10. An Improved String Similarity Join Algorithm
    HeXiaoMing ·Fujian Normal University ·2013 ·Master's thesis
  11. The Structuring&Matching of Address in Chinese Address Recogniton System
    YaoXinYu ·East China Normal University ·2012 ·Master's thesis
  12. Lossless Compression Techniques for Similar Data
    ZhaoGuoYi ·Northeastern University ·2011 ·Master's thesis
  13. Multi-objective Test Case Optimization Method and Its Accelerate Research on GPU
  14. Research of Edit Distance Based on Text Zero-Watermark Algorithm
    WangXianLong ·Lanzhou University ·2013 ·Master's thesis
  15. Approximate String Matching Based on Sufifx Array
  16. Parallel algorithms for approximate string matching based on GPU
    LiuYu ·Heilongjiang University ·2012 ·Master's thesis
  17. Objects Recognition and Unusual Events Modelling&analysing in Intelligent Video Surveillance
    ZhangYi ·Shanghai Jiaotong University ·2010 ·Doctoral dissertation
  18. A Study on Computer Processing of Errors in Chinese Interlanguage Corpus
    WangJie ·Beijing Language and Culture University ·2008 ·Doctoral dissertation
  19. Research on Similarity Query over Sequence Data
    DaiDongBo ·Fudan University ·2009 ·Doctoral dissertation
  20. Research on Key Issues of Spam Detection and Filtration
    LiuWeiHong ·South China University of Technology ·2010 ·Doctoral dissertation