GUI Testing Technique for J2ME Programs Based on FSM

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

Request the full text

Abstract

J2ME has been widely adopted as the embedded languages of choice for mobile applications in recent years. J2ME provides a kind of highly optimized Java runtime environment; J2ME expands the platform-independent to the embedded device. In J2ME programs, graphical user interface (GUI) is the indispensable part as the interactive means between user and program. GUI improves the usability of J2ME programs, but it also increases the complexity of program testing. On the other hand, J2ME does not have the reflection mechanism due to the implementation complexity, also J2ME devices only have limited storage and computing power, so traditional software testing systems cannot be directly used for testing J2ME programs. At present time, there are few testing tools indeed supporting J2ME programs. Moreover, Record/Replay mechanism is the mainstream GUI testing technique used by most software testing systems. They require users’ interaction with desktop applications at the record stage, but sometimes the interaction can be tedious and time-consuming, in particular when testing coverage requirement is enforced.To settle these problems, this paper designs and implements an automatic testing system (hereinafter called testing system), which applies a test case generation technique and program instrumentation to handle GUI testing of J2ME programs. The testing system generates test cases from a finite state machine (FSM) specification extracted from the implementation under test (IUT), runs the test cases on an emulator, and then yields a test report. This paper evaluates the experimental results on a real J2ME audio player. It shows that testing system can decently handle GUI testing on J2ME progans, and thus generated test cases maximize the chances of detecting bugs with nice error coverage.

Table of contents

Abstract 5-6 Abstract 6-10 Chapter 1 Introduction 10-14 1.1 Background 10-11 120 research 11-13 1.3 paper structure 13-14 Chapter 2, model-based software testing technology 14-24 2.1 test model 14-18 2.1.1 finite state machine model 14-15 2.1.2 UML model 15-17 2.1.3 Markov chain model 17-18 2.1.4 Grammar Model 18 2.2 support tools 18-19 2.2.1 support for finite state machine model tools 18 2.2.2 support the UML model tools 18 2.2.3 support tools of the Markov chain model 18-19 2.3 test steps 19-21 2.3.1 full understanding of the tested software 19 2.3.2 Select the test model 19-20 2.3.3 construct test models 20 2.3.4 generate and execute test cases 20-21 2.3.5 evaluation test case implementation of 21 2.4 Evaluation 21-24 2.4.1 based on the model of software testing technology advantage, 21-22 2.4.2 lack of model-based software testing technology 22-24 Chapter 3 based on the finite state machine model of software testing technology 24-36 3.1 definitions of terms 24-25 3.2 classic test methods 25-36 3.2.1 T method 26-27 3.2.2 U method 27-28 3.2.3 D method 28-30 3.2.4 W method 30-33 3.2.5 Wp method 33-36 Chapter 4 GUI testing 36-48 4.1 GUI Introduction 36-37 4.2 GUI testing features 37-41 4.2.1 coverage standard 37-38 4.2.2 test oracle 38 4.2.3 regression testing 38-39 huge 4.2.4 interactive space 39-41 4.2.5 hidden synchronization and dependencies 41 4.3 GUI testing steps 41-42 4.3.1 determine the test content 41 4.3.2 construct test cases 41-42 4.3.3 to generate the expected output 42 4.3.4 to execute test cases and verify that the output 42 4.3.5 evaluation to test the adequacy of 42 4.3.6 regression testing 42 4.4 J2ME graphical user interface 42-48 4.4.1 advanced user interface and event handling mechanism 43-45 4.4.2 Low-level user interface and event handling mechanism 45-47 4.4.3 Summary 47-48 Chapter 5 test system framework and 48-64 5.1 system architecture 48-50 5.1.1 the program under test snap 49 5.1.2 program Statute generation unit 49 5.1.3 finite state machine to generate unit 49 5.1.4 test case generation unit 49-50 5.1.5 test set creation unit 50 5.1.6 test set of snap- 50 5.2 system 50-64 5.2.1 Wizard panel 50-52 5.2.2 program Statute parser detailed design 52-53 5.2.3 finite state machine to determine the detailed design 53-55 5.2.4 finite state machine parser design 55-57 5.2.5 Test Case Generation detailed design 57-59 5.2.6 Instrumentation program generator design 59-64 Chapter 6, experimental results 64-70 6.1 The experimental environment 64 6.2 experimental data 64-65 6.3 Experimental results and related analysis 65-70 6.3.1 the number of test cases sequence 65-66 6.3.2 Instrumentation code amount 66-68 6.3.3 memory usage 68-70 Chapter 7 Summary and outlook 70-72 7.1 summarize 70 7.2 Looking 70-72 References 72-78 published papers during the study for a degree 78-80 thank 80-82 graduate resume 82

Related dissertations

  1. Model-based GUI Test Case Generation
    ZhuangXueWei ·Nanjing University ·2012 ·Master's thesis
  2. Design and Implementation of a GUI Testing Plugin for the Eclipse Platform
    ZhaoXu ·Dalian Maritime University ·2012 ·Master's thesis
  3. The Research on GUI Testing Based on Relating Event
    HeTianChi ·Hunan University ·2008 ·Master's thesis
  4. And the realization of software testing reuse management subsystem design
  5. Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
    XiongLiPing ·Hunan University ·2013 ·Master's thesis
  6. Research on software testing technology based on complex network theory
  7. Design and Implementation of Automated GUI Testing Framework Based on Android
  8. Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
    FuLiYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  9. The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
    YaoZuo ·Harbin University of Commerce ·2013 ·Master's thesis
  10. Research of Software Testing Method Based on Cloud Computing
  11. Research on Path-oriented Test Data Generation
    WangShiTao ·Hunan University ·2013 ·Master's thesis
  12. Research on Process Improvement in Y Co. Based on CMM
    FengFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  13. Method Research and System Development of Software Automatic Testing
    LiangYueYuan ·Chang'an University ·2013 ·Master's thesis
  14. Research and implementation of TaaS test management services
    YangDan ·Northwestern University ·2013 ·Master's thesis
  15. The Design and Implementation of Banking Software Testing Based on Bugfree
  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. Research on Several Issues of Legacy System Reengineering
    LiHan ·Dalian University of Technology ·2013 ·Doctoral dissertation
  19. Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
    ZhangYan ·China University of Mining and Technology ·2012 ·Doctoral dissertation
  20. Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B