Font Size: a A A

Research And Implemention Of Automated Test System Base On XML

Posted on:2011-10-17Degree:MasterType:Thesis
Country:ChinaCandidate:X J PanFull Text:PDF
GTID:2178360308951240Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Automated test combines specific pieces of equipment with operation platformby applying software system and integrates into a platform to test system according toadvanced testing process and test on object detection and back to test result forreference. With many factors involved as test target, measuring equipment, testingsoftware platform and testing records, it is a complicating system integration project.System test works as an important technical method to test whether the product willmeet the expected performance and target and the quality will be achieved afterputting into mass production. Nowdays it is widely applied in all fields.This thesis is dedicated to put forward a feasible frame of automated test systemand make it come true by researching the technology and methods of the softwareautomated test linked to the specific request of quality control in hardware production.The automated test system introduces XML to describe test data, and drives testsystem to complete all tests, and enhances its flexibility as to answer to all kinds oftest data, test methods, modification in the test process and expected test resultwithout the need to revise code processing logic. It is to solve the problem of highcoupling between data of test case and test system better, and to avoid the frequentmodification due to test request. The method builds an automatic test framework inwhich XML script works as an entrance of test system throughout the separationbetween test data and test processing logic and accomplishes 3 steps of test scriptincluding parsing,execution, and result output by means of script manager container,test execution unit and test output unit. The thesis introduces the methods ofcompiling test data and driving test and builds XML test script by analysing commoncharacter of test case, identifying test object and abstractly testing script model.The thesis applies XML script driven test model to realize the automated testsystem in the production line of one telecommunication products, automaticallyexecutes test script and output test report. Firstly, it fully analyses the request of automated test system, abstracts the common part and variable part,applies XML object-oriented design principles to complete the design of XML test script model and compiles recognizable automated system script according to the definition of XML model. When designing XML model, expandability, flexibility, variability of test script should be adequately considered, as well as the characteristics of the XML parser. The test objects should be designed into different levels, it can imporve the parsing speed of test script and make it easy the package management of test processing data. Secondly,when realizing system, the test system only needs to realize the recognizable part of test script because the variable factors has been extracted and put into XML script. To execute script order quickly and accurately and output the result, the system adopts MVC pattern when it is designed to optimize system structure and improve system complexity through controlling the model layer and view layer. Finally, the development and testing of the system has been completed, it has been applied in the production line. Compared with the original test system, the new version has a betterefficiency and reliability. The test script varies as test request and the test procedures and date can be revised.
Keywords/Search Tags:Automated Test, XML, Data-Driven Testing, Design Pattern
PDF Full Text Request
Related items