The Design and Implementation of BMC Regression Test Selection Based on Code Coverage
- Author
- GuWeiDai
- Advisor
- ShaoDong , LiuQin
- School
- Nanjing University
- Major
- Software Engineering
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 6
- Citations
- 0
Abstract
BMC firmware is an embedded Linux OS run on ARM architecture.To be confident to release a BMC revision, testers have to execute a universal test suite during regression, because it’s hard to demarcate which part of BMC system is adversely affected by modified codes. This regression strategy costs a lot of time and effort.Referred to regression test selection and reduction, this dissertation summarizes thoughts and practices these years from IEEE papers, and finally generates the test selection method based on code coverage information. With the intention of cover BMC code, I also make a deep research on code coverage.This method first delivers code coverage on BMC. Then I perform certain test cases and collect their coverage information. Here I call this mapping from test case to code a forward index. After execution of the universal test suite, I achieve a system to gather all these coverage measurements and transfer all the forward indexes to the mapping from code to test case, named reverse index. Given line number of changed code in regression revision, regression suite can be accurately located.In this dissertation, I prove that under strictly controlled test conditions, this method can select all test cases from original set that may expose newly introduced software faults, and, this method can exclude all test cases that are impossible to introduce new software faults. I implement a system to manage the code coverage measurements and select regression test cases. One forth of the universal test cases set are selected as a regression test plan, which is an obvious reduction in deed. Besides, certain approaches are needed to apply code coverage instrument on BMC cross compilation which is performed in Linux x86. This dissertation provides a detail implementation.
Table of contents
Summary 5-6
Abstract 6-9
LIST 9-11
table directory 11-12
the first chapter 12-20
1.1 research background and significance 12-14
1.2 domestic and foreign research status and development trend 14-16
1.3 This paper studies the work organizational structure 16-18
1.4 article 18-19
1.5 Summary 19-20
Chapter II technical Summary 20-31
2.1 traditional testing techniques 20-23
2.1.1 regression testing using specific practice examples chosen 20-22
2.1.2 black box testing and white box concrete practice of 22-23
2.1.3 test results measure 23
2.2 code coverage analysis tool 23-30
2.2.1 using gcov code coverage statistics 24-25
2.2.2 using Bullseye statistical code coverage 25-26
2.2. 3 gcov and Bullseye contrast 26-30
2.3 Summary 30-31
Chapter III code coverage statistics based on regression test selection system analysis and design 31-48
3.1 technology roadmap and design ideas 31-32
3.2 system Requirements Analysis 32-36
3.3 code coverage data collection outlined 36-39
3.4 regression test selection system overview 39-47
3.4.1 conventions non- generic terms 39
3.4.2 test Case Selection System design 39-43
3.4.3 test case selection system schematic 43-47
3.5 regression test optimization results summarized 47
3.6 Summary 47-48
Chapter IV BMC code coverage data collected 48-64
4.1 to compile and run properly BMC 48-52
4.1 .1 BMC compile ready 49-50
4.1.2 BMC compiled 50-51
4.1.3 BMC run 51-52
4.2 added BMC code coverage mechanism to compile and run 52-63
4.2.1 BMC compile ready 52-54
4.2.2 BMC compiled 54-61
4.2.3 BMC run and collect code coverage data 61-63
4.3 Summary 63-64
Chapter BMC regression test suite selection system to achieve 64-79
5.1 code coverage data file 64-66
5.1.1 code coverage data file contents 64-65
5.1.2 code coverage data file statistics 65-66
5.2 code coverage data processing 66-74
5.2.1 traverse the XML tree 66-68
5.2 .2 establish the initial code coverage information database 68-69
5.2.3 test cases to code mapping from the forward index 69-70
5.2.4 mapping from code to reverse index test case 70-74
5.3 test suite selected 74-77
5.3.1 code changes 74-76
5.3. 2 Select the regression test suite 76-77
5.4 index granularity 77-78
5.5 Summary 78-79
Chapter VI BMC return test Optimization effect measure 79-83
6.1 theoretical analysis 79-80
6.1.1 tightly controlled testing environment 79
6.1.2 effective proof 79-80
6.2 practice data 80-82
6.3 summary 82-83
Chapter VII summary and Outlook 83-86
7.1 summary 83-84
7.2 project Looking 84-86
References 86-89
Thanks 89-91
Related dissertations
- Bounded Model Checking for Concurrent Behavior Based on Scheduler
- Study on the Relationship between Economic Growth and Development of the Specialized Market
- The Research of Automated Software Testing-Research on Test Suite Optimizing Strategy
- Multi-objective Test Case Optimization Method and Its Accelerate Research on GPU
- Java Card Code Coverage Data Source Mechanism and Calculation
- Researching the Maintenance Phase Reliability Based Weh Logs Analysis
- Research on Coverage-Based Fault Localization for Object-Oriented Programs
- The Optimized Selection Research of Regression Test Cases
- GUI Regression Testing Based on EIG-T
- The Design of Performance Optimization for Dynamic Symbolic Execution
- Research and Implementation of Malware Analysis Tool Based on Virtualization
- The Research and Realization on Java Card Code Coverage Measurement Technology
- Research on the Modification of Low-density Bulk Moulding Compound
- Lumbar Spinal Endplate Damage and Its Related Factors
- Researching on Regression Test Selection Technique for Object-Oriented Software-Test Suite Minimization
- Implementation of the Intelligent Platform Management System Based on IPMI
- A Study on Effects of Metabolic Syndrome and Type 2 Diabetes Mellitus to Metabolism of Bones
- Based on binary executable code coverage testing technology research
- Hebei Province, part of the sports college athletes body composition
- System Verilog Based System Level Verification and Design of Denoise Module in Image Signal Processing System