Research and Implement of Automatic Environment Configuring Tool AutoHCI on Software Testing
- Author
- YuFei
- Advisor
- JinChengBai
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 96
- Citations
- 0
Abstract
With the development of information technology, software testing plays more and more important role in the development and application of computer science. We just paid attention to the testing work itself before; actually, the testing environment configuring work is also very important in software testing work. Testers need to prepare different testing environments for different test purpose, and each testing environment may be deployed to different machines. Furthermore, the work may repeat many times in the whole test lifecycle.Traditionally, testers configure the testing environment manually; it might be Time-consuming and not satisfactory. Firstly, the testing environment configuring work is complex and even stymied, which often includes many steps and checkpoints. So it needs testers to keep on monitoring the target machine, following the steps and checkpoints and reacting according to the status of the computer. It would be inefficient because the testers may spend too much time on testing environment configuring work rather then the work itself as the checkpoint which needs timely reaction can not be expected. Secondly, it is inevitable that manual testing environment configuring work may take some mistakes which cause terrible result to the further testing work.Many of new research achievements and products have emerged in the software testing field, and automated testing is an important researching direction. In order to solve the problem we mentioned above, we add the automated testing technology into the testing environment configuring work. We research and implement the automatic software testing environment configuring tool AutoHCI which would be helpful in improving the efficiency and quality of the tester. AutoHCI releases the testers from complicated manual testing environment configuring work.AutoHCI automatically simulates the operation of mouse as well as keyboard and analyzes the state of the computers. Although testing environment configuring work is complex and even some trivial, it still can be decomposed to a series of basic operations of mouse and keyboard on computer. Therefore, we can record these operations of mouse and keyboard into a configuration file according to the special grammar, and then AutoHCI starts to parse the configuration file and simulate the operation of mouse and keyboard. At last, the testing environment will be configured automatically rather than manually.In the practice application, the software testing environment will be deployed on the different platforms. AutoHCI can support Windows and Unix platforms effectively. Actually, there are some slight differences in configuration files and deploying method between different platforms. During the implementation of AutoHCI, we use X Window and Extra!X tool to make AutoHCI support the testing environment configuring work on Windows as well as Unix platforms in instead of developing different versions of AutoHCI for different platforms.AutoHCI includes following parts: Configuration File Processing part, mouse and keyboard Simulating part, as well as state Judgment part.In the configuration file processing part, we design a kind of grammar with XML Format for testing environment configuration file, which combine the features of program Language(eg, designing jump command to improve the flexibility of configuration file)and record the information of operation of mouse and keyboard and judgment of the state.We use DOM as the XML parser when reading established testing environment configuration file. After traversing XML tree of the corresponding configuration file, we save the content in one command buffer,so that it could not only release the burden of memory caused by XML tree but also improve the efficiency of program. When traversing XML tree, we should firstly make a judgment on the category of node according to the design of configuration file. Furthermore, we have already processed the jump command in advance when saving in command buffer.In the mouse and keyboard simulating part, we simulate the operation of mouse and keyboard by“java.awt.Robot”provided by JDK. Firstly, we read from the command buffer one by one in the part of configuration file processing, then go into different process, and simulate the operation of mouse and keyboard by Robot. We adopt the system of state judgment to ensure that the real operating window of Robot is the target window.In the state judgment part, we implement with the windows dll,which is regarding some methods of positioning and operating windows. Few state judgments are implemented by other methods. Finally, we implement AutoHCI with Java language and Eclipse Develop KitWe should notice that if software testing environment need to be configured on the Unix platform, the deployment of AutoHCI and the content of testing environment configuration file should accord to the requirement.Nowadays, as the fast development of computer science, we are expected to perfect AutoHCI with other technology such as HCI. What is more, we could release more people from complex work by applying AutoHCI into more and more fields.
Table of contents
Summary 4-7
first chapter 7-14
1.1 herein background 7-13
1.1.1 software testing produces concept 7
1.1.2 software testing development and current status of 7-9
1.1.3 automated testing 9-10
1.1.4 software the importance of environmental test configuration research status 10-11
1.1.5 test environment configuration software testing field 11-13
1.2 This work 13
1.3 The paper is 13-14
chapter AUTOHCI Overview 14-23
2.1 AutoHCI About 14-18
2.1. a manual configuration software test environment scene 14-16
2.1.2 AutoHCI functional description 16-18
2.2 AutoHCI deployment and application 18-22
2.2.1 AutoHCI deployment 18-20
2.2.2 AutoHCI application 20-22
2.3 development environment and runtime environment 22 - 23
Chapter AUTOHCI design and implementation 23-51
3.1 AutoHCI design ideas 23-25 ??
3.2 AutoHCI system design 25 - 30
3.2.1 AutoHCI module structure chart 26-28
3.2.2 AutoHCI of UML class diagrams 28-30
syntax 3.3 AutoHCI profile 30-36
3.4 configuration files created 36
3.5 configuration file parsing 36-44
3.5.1 basic processes 36 - 37
3.5.2 parser select 37-39
3.5.3 DOM parser works 39-41
3.5.4 command buffer data structure 41-44
3.5.5 command extracts - achieve extractCommand method nbsp 44
3.6 simulate mouse and keyboard ; 44-51
3.6.1 Robot class Introduction 44-46
3.6.2 related classes and control flow 46-47
3.6.3 auto-configuration process - to achieve AutoConfig method 47 -49
3.6.4 state judge - window positioning and control is achieved (WinFunction class ) 49-51
Chapter IV application examples 51-54
Chapter V Conclusion advantage to 54-56
5.1 AutoHCI testers brought 54
5.2 AutoHCI applications in other fields 54-55 <br / > 5.3 future research directions 55-56
References 56-58
Summary 58-61
ABSTRACT 61-64
Thanks 64
Related dissertations
- Common Software Development and Application of Automated Testing Framework
- The Study and Application of Software Testing Method Based on IRUP
- Embedded software automatic testing technology research
- Study on Application of Lean Production Theory in Large Polymer Battery New Line of LS Company
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Design and Use of Automatic Drainage of Main Pumping Station Underground Coal Mine
- Research on Tcl-based Automatic Test Technology on IPv6Network
- Analysis Based on Petri Nets and Automatic Implementation of Sdn-Oriented Protocol Heartbeat Mechanism
- The Oil Industry Vertical Search Engine Technology Research
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing
- Research and implementation of TaaS test management services
- The Design and Implementation of Banking Software Testing Based on Bugfree