Change Impact Analysis and Its Applications in Refactoring

Author
LvJun
Advisor
XuBaoWen
School
Nanjing University
Major
Computer Software and Theory
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2013
Downloads
12
Citations
0

Request the full text

Abstract

Refactoring is a popular activity in software development. It is the process of changing a software system to improve its internal structure without changing its ob-servable behaviors. Manual refactorings are widely used by developers consciously or unconsciously. Before the invention of "Refactoring Browser", a lot of jobs were done manually. Refactoring tools are crucial because manual refactoring activity is te-dious and error-prone. Indeed, there are many refactoring tools to assist in refactoring, such as Eclipse JDT, IntelliJ IDEA, NetBeans, etc. Although many of the refactor-ing tools are product-level, there are many bugs in them. Sometimes using automated refactoring tools will change the software’s observable behaviors or make the software uncompilable. More and more academic researchers have concerned for the security of refactoring. Software testing, especially regression testing, is a technique to guard the software’s behavior. We often run the tests before and after refactoring. Compar-ing the test results before and after refactoring, we can find some clue for the safety of refactoring. If the results are the same, it is possible that the refactoring process is safe. If not, we should focus our attention on the differences. However, in the real situation, we often find that there are not adequate test cases, or even no test cases. If we want to refactor, we have to write tests as refactoring process must be guarded by a "safety net". In the test phase, we have to know where to put the test. Impact analysis is a technique to evaluate the potential effects of a software change. It identifies which entities will be directly changed, which entities will be potentially affected. Its purpose is to make the change more transparent to the developer.In this paper, we propose an impact analysis technique towards refactoring. It decomposes refactoring into a series of atomic changes, makes impact analysis for every atomic change, and then it combines all these impact sets. The technique rerun the process after refactoring because the program change dependent graph are usually changed by the refactoring. Comparing the results before and after refactoring, we can conclude if the refactoring process is safe or not. In this paper, we also apply this technique in the fields of test case generation and test case prioritization.

Table of contents

Summary 5-6 Abstract 6-8 directory 8-12 first chapter 12-18 <br / > 1.1 Background 12-13 1.2 Research Status 13-15 1.2.1 reconstructed using 13 1.2.2 Reconstruction correctness 13-14 1.2.3 impact Analysis 14-15 1.2.4 reconfigurable test 15 1.3 This work 15-16 1.4 thesis structure 16-18 chapter relevant technical background 18-36 2.1 software reconfigurable 18 - 28 2.1.1 Reconstruction definition 18-19 2.1.2 reconstruction purposes 19-20 2.1.3 remodeling 20-21 2.1.4 behavior remains 21-25 2.1.5 refactoring tools 25-26 2.1.6 refactoring tools error example 26-28 2.2 impact Analysis 28-33 2.2.1 impact Analysis process 29-31 2.2.2 classification nbsp impact analysis ; 31-33 2.2.3 impact Analysis application 33 2.3 reconstruct the relevant test 33-34 2.3.1 for testing reconstruction 33-34 2.3.2 test sort 34 2.4 Summary 34-36 the third chapter analyzes the impact of technology -oriented reconstruction 36-58 3.1 modification impact analysis 36-48 3.1.1 atomic changes 36-40 3.1.2 program , said 40-44 3.1.3 affect the calculation 44-48 3.2 Reconstruction impact analysis 48-56 3.2.1 reconstruction decomposition 48-52 3.2.2 reconstruction restore 52-55 3.2.3 remodeling 55-56 3.3 Summary 56 - 58 the fourth chapter analyzes the impact of the application in the test 58-74 4.1 Recommended test points 58-65 4.1.1 analysis Tools 58 4.1.2 subjects 58-60 4.1.3 recommended techniques 60-62 4.1.4 Case Study 62-65 4.2 test sort 65-72 4.2.1 perfect number of classifiers and analysis 65-67 4.2.2 test sequencing technology 67 -69 4.2.3 traditional test sort 69-71 4.2.4 reconfigurable test sort 71-72 4.3 Summary 72-74 Chapter summary and Outlook 74-76 5.1 summary 74 5.2 Prospect 74-76 References 76-82 resume and research 82-84 Thanks 84-85

Related dissertations

  1. A Study on Code Optimization Method of eOLC Control Algorithm
  2. Impact Analysis of the Environmental Interference on Target Tracking Algorithm
  3. And the realization of software testing reuse management subsystem design
  4. Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
    XiongLiPing ·Hunan University ·2013 ·Master's thesis
  5. Research on software testing technology based on complex network theory
  6. Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
    FuLiYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  7. The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
    YaoZuo ·Harbin University of Commerce ·2013 ·Master's thesis
  8. Research of Software Testing Method Based on Cloud Computing
  9. Research on Path-oriented Test Data Generation
    WangShiTao ·Hunan University ·2013 ·Master's thesis
  10. Research on Process Improvement in Y Co. Based on CMM
    FengFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  11. Method Research and System Development of Software Automatic Testing
    LiangYueYuan ·Chang'an University ·2013 ·Master's thesis
  12. Research and implementation of TaaS test management services
    YangDan ·Northwestern University ·2013 ·Master's thesis
  13. Design and Implementation of Java Refactoring Plug-in Based on Eclipse
  14. The Design and Implementation of Banking Software Testing Based on Bugfree
  15. The Software Refactoring Technology Based on Data Mining and Its Application to the Software Asset Management
  16. Automatic Generation of Test Data Based on Heuristic Search Algorithm
    LiuJia ·Tianjin University ·2012 ·Master's thesis
  17. Research on Combinatorial Testing Technique and Its Application
    ChenXiang ·Nanjing University ·2011 ·Doctoral dissertation
  18. Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
    ZhangYan ·China University of Mining and Technology ·2012 ·Doctoral dissertation
  19. Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
  20. A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
    FengLuLu ·Zhejiang Sci-Tech University ·2014 ·Master's thesis