Font Size: a A A

Tunnel Monitoring System Automated Test Design And Implementation

Posted on:2011-08-21Degree:MasterType:Thesis
Country:ChinaCandidate:Z LiFull Text:PDF
GTID:2208360305998666Subject:Software engineering
Abstract/Summary:PDF Full Text Request
According to the modern software engineering theory, test is the last stage of development. It's a process to check the quality of product. When the scale of software is bigger and bigger, there are more and more bugs. Quality Assurance will be a difficult work. For resolving the problem, people try to assure software quality by rigorous development process. Test is an important part of that.This paper studys a method to test a certain tunnel monitor system. The main study results of this text contain six parts:(1) Putting forward a test method which sends messages to windows by windows api.It can simulate users'operation. It contains mouse move, click, text input, combo box selectting and etc.(2)Realizing python load C library and call funtions in it. And converting python datatype to C datatype.(3)Realizing xml document parsing.Extracting elements by pulldom.(4)Realizing a simple udp communication emulator. First declaring socket object by socket. socket(socket. AF_INET, socket. SOCK_DGRAM). Then sending data to certain port.(5)Realizing callback function by python CFUNCTYPE (),and passing it to interface as parameter.(6)Displaying test result by fitnesse is accomplished. Right or wrong result is displayed in red or green. It is more convenient.After using the method in this text, the problem of interface function test separately is resolved. When function and graphical user interface are designed by different work group, test should be done separately. The time for waiting other projects is reduced. Calling function can analyse parameter boundary more directly. Test intensity is enhanced. In udp module python programe has the functionality as an emulator to send data. It saves the cost of purchasing external emulator. The number of defect decreases sharply during user using. The quality and user satisfaction are improved.
Keywords/Search Tags:Software Test, Windows Api, Python
PDF Full Text Request
Related items