Java Card Code Coverage Data Source Mechanism and Calculation

Author
ZhangLinLin
Advisor
LongDeFan
School
Beijing Jiaotong University
Major
Electronics and Communication Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2012
Downloads
33
Citations
0

Request the full text

Abstract

With the rapid development of Internet technology and applications, software products have been fully into our lives. At the same time, people are increasingly high requirements for the performance of the stability, security of the software products, so software testing has got more and more attention of software developers. Code coverage testing is an important part in the testing process. It has a very positive sense to improve the efficiency and quality of our testing.Code coverage analysis tools are all based on the JVM, but the running environment that the program run on the Java Card are provided by JCVM. With the JCVM developed by the Watch data system Co., Ltd.. In order to achieve the company’s actual needs, the company decided to develop a coverage testing tool based on JCVM. The design assumed soft simulation work in this project. We need to record and save the specified code running state in soft simulation within a certain period of time and output the log file by the specified format. First, get the instruction operation information by the instruction analyzer and perform database in JCVM, then projected the implementation of the source code through the debug information projects. Then get the coverage information of the running code and then output the EC and EM file that include the code coverage information for the development of the coverage testing tool. Finally, develop a test java card code coverage tool with the effort of Plug-in developers.Finally, we succeed to output the EC and EM file that include the code coverage running information. And develop a test java card code coverage tool with the effort of Plug-in developers. The testing tool has been used to test code coverage and the test results indicate that we can get accurate, detailed information about the statement coverage of the Java Card code by this method. And then, guided and improve our testing.

Table of contents

Thanks 5-6 Chinese abstract 6-7 ABSTRACT 7-8 directory 8-11 1 Introduction 11-19 1.1 background and significance 11-13 1.1.1 the background 11-12 1.1.2 significance of the topic 12-13 1.2 research status analysis 13-16 1.2.1 domestic research status 13-14 1.2. 2 foreign research status 14-16 1.3 Research objectives and content 16-18 1.3.1 research platform 16-17 1.3.2 research objectives 17 1.3.3 research 17-18 1.4 Summary 18-19 2.JAVA smart cards and card code coverage 19-29 2.1 JAVA smart card 19-21 2.1.1 Java Card define 20 2.1.2 Java Card system Architecture 20-21 2.2 JAVA card code coverage 21-28 2.2.1 coverage definition 21-22 2.2.2 Why test coverage rate 22-23 2.2.3 code coverage metrics 23-27 2.2.4 coverage using the principles 27-28 <br / > 2.3 Summary 28-29 3 study data source mechanisms . 29-49 3.1 JCVM introduced 29-31 3.2 CAP file format 31-35 3.2.1 component model 32-34 3.2.2 installed 34-35 associated with the source command nbsp 3.3 ; 35-42 3.3.1 Debug Component structure 35-36 3.3.2 class_debug_info structure 36-38 3.3.3 The field_debug_info structure 38-39 3.3.4 The method_debug_info structure 39-42 3.4 JCVM instruction set 42-48 3.4.1 assumes that : \\ 43-44 3.4.5 Java card virtual machine instruction set 44-48 3.5 Summary 48-49 4 coverage . calculation and implementation 49-68 4.1 overall design plan 49-50 4.2 coverage calculation principle and structure of the data records 50-52 4.2.1 coverage formula execution information recording principle 50 4.2.2 Directive 50-51 4.2.3 instruction Statistics Total 51 <br / > 4.2.4 coverage achieved 51-52 4.3 statement coverage achieved 52-55 4.4 code and the resulting output 55-59 4.4.1 JCVM changes 55-56 4.4.2 interface design 56-58 4.4.3 data recording and file output code 58-59 4.5 output and result presentation 59-66 4.5.1 output 59-61 4.5.2 results presentation 61 -66 4.6 Summary . 66-68 5 test 68-75 5.1 using the steps 68-72 5.2 export test reports 72-74 5.3 test results 74-75 6 Conclusion . 75-76 References 76-77 Author Biography 77-79 dissertation dataset 79

Related dissertations

  1. The Research and Realization on Java Card Code Coverage Measurement Technology
    ZhaoPanFeng ·Beijing Jiaotong University ·2012 ·Master's thesis
  2. The Research and Design of JCVM Interpreter
    XieJingJing ·Guangdong University of Technology ·2011 ·Master's thesis
  3. Research and Implementation of the EEPPROM Defragmentation on Java Smart Card
  4. Research and Implementation on Performance and Architecture Optimization of Finacial-Oriented Java Card
    CaoXiao ·Zhejiang University ·2012 ·Master's thesis
  5. Design of Interactive Service System for Push Services Based on Java Card
  6. The Design and Implementation of BMC Regression Test Selection Based on Code Coverage
    GuWeiDai ·Nanjing University ·2013 ·Master's thesis
  7. Research on Coverage-Based Fault Localization for Object-Oriented Programs
    XuQing ·Nanjing University ·2013 ·Master's thesis
  8. The Design of Performance Optimization for Dynamic Symbolic Execution
  9. Campus ID Design and Implementation Based on JAVA CARD
  10. Research and Implementation of Malware Analysis Tool Based on Virtualization
    ZhaoXiaoDong ·Nanjing University ·2012 ·Master's thesis
  11. The Design and Research of a Javacard Virtual Machine IP; Core
    ZhangHongJie ·Hunan University ·2010 ·Master's thesis
  12. Research of the Secure Computing Based on Java USIM Card
  13. Research on New Multi-Application Smart Card Technologies
  14. The Multi-Industry Application of Smart Card Based on JavaCard
  15. Smart Card Application Security Management Platform
  16. Research and Implement of Security of Data Interaction Based on Smart Card
    YuePei ·Beijing Jiaotong University ·2008 ·Master's thesis
  17. Based on binary executable code coverage testing technology research
  18. System Verilog Based System Level Verification and Design of Denoise Module in Image Signal Processing System
    PengCheng ·Hefei University of Technology ·2007 ·Master's thesis
  19. VHDL Implement of Float-point FFT and the Research on HDL Functional Verification Strategies
    ChengJun ·Hunan University ·2004 ·Master's thesis
  20. The Research of Campus One-card-through Application System Based on Java Card Technology
    RaoJun ·Tianjin Polytechnic University ·2004 ·Master's thesis