Design of API Testing Automation System
- Author
- LinYou
- Advisor
- DongJun
- School
- East China Normal University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 175
- Citations
- 6
Abstract
Testing is a key peocess in software development. API (Application Program Interface)level testing tests the APIs being coded during coding stage, which is most important stage of all testing stage.API level testing is an excution-based dynamic test technology, which is necessary to code test driver programs, compile the driver progaram, excute the compiled driver program and analysis the results. The large amouts handwork lead to testing uncompletely, and the final software product with many bugs and poor quality. What’s more, the handwork testing sometimes is tedious, which also is one of the reasons of poor testing work. Hence, automation testing is the best alternative to reduce the development time and improve quality.After inevstigating the practice of testing, the APIs coded by the proceduer oriented and object oriented program language and testing technology, a system which has three components to surpport the whole process of testing is designed: API information management component, driver program generation component, testing excution and control component. The paper is dedicated to discussing how to design and implement the three component.In order to show how three components surpport the whole testing process, the system is applied to test a program module.Testing automation should be better than hand work.Currently,its test case generating function is not enough.How to generate the test case more automativly,such as extract design specification from the design tools and generate the test case consistent with it, is the future work.
Table of contents
The first chapter 9-12
1.1 Introduction need for test automation
1.2 9-11
1.2 a .1 a software error inevitability 9-10
1.2.2 manually write test code consideration of 10-11
1.3 the research content 11-12
Chapter II work 12-17
2.1 software testing foundation 12
2.1.1 software testing defined 12
2.1.2 API and API test nbsp 12
2.2 the benefits of automated testing; 12-15
2.2.1 produce reliable system 13
2.2.2 testing quality improvements 13-14
2.2.3 reduce testing and shorten progress 14-15
2.3 automated testing tools Research 15-17
Chapter API automation test 17-21
3.1 testing process 17-19
3.1.1 initialization conditions 17
3.1.2 API characteristics the 17-18
3.1.3 Output 18-19
3.2 API automated test system components 19-21
the 3.2.1 API information management system 19-20
3.2 .2 test generation system 20
3.2.3 test execution control system 20-21
Chapter the API information management system 21-29
4.1 required information to obtain 21-25
4.1.1 to establish the initial environmental information needed
21-22 4.1.2 call (driver) API information needed 22-23
4.1.3 output and analysis of test results required information 23-24
4.1.4 information Get 24-25
4.2 API information representation and storage 25-27
4.2.1 pure data The text is stored 25 <br / > 4.2.2 database storage the 25-26 4.2.3 XML storage
the 26-27
the 4.4 API information management system architecture 27-29
fifth. chapter test execution control system 29-38
5.1 Driver Manager 31-35
5.1.1 driver the procedural framework structure the 31-32
Manager 5.1.2 driver design and realization 32-34
5.1.3 Distributed test support 34-35
5.2 drive execution controller (TEC) the 35-38
5.2.1 compile and execution control 35-36
5 .2.2 failure recovery 36-38
Chapter test generation system 38-45
6.1 test case scripts 38-40 <br / > 6.2 test drivers automatically generated strategy 40-45
6.2.1 initialization 40
6.2.2 API driven 40 -42
the 6.2.3 results output 42-43
6.2.4 Other issues 43-45
Chapter VII of the practical application example 45-49
7.1 Introduction 45-46
7.1.1 system 45-46
7.1.2 system Design 46
7.2 applications 46-49
7.2.1 manual testing process 47
7.2.2 automate the testing process 47-49
Chapter VIII summarizes and future work to References 49-50
50-52
Appendix A is a practical test project various documents 52-75
A. Tested program module source file 52-62
A. API information of the source file to be tested 62-70
A. 3 test case script file 70-71
A. 4 test drive source files 71-73
A. The 5 execution control configuration 73-74
A. 5.1 compiler configuration file 73
A. 5.2 compiler directive file 73-74
A. 5.3 execution control script 74
A. 6 test results log file 74-75