Font Size: a A A

Design And Implementation Of Automatic Testing Script For System Configuration Based On TCL Language

Posted on:2008-09-28Degree:MasterType:Thesis
Country:ChinaCandidate:L XiaFull Text:PDF
GTID:2178360215982270Subject:Software engineering
Abstract/Summary:PDF Full Text Request
As computer hardware costs are declining, software in the entire cost of the computer system plays an increasingly high percentage. How to improve software quality becomes a major issue in the entire computer software industry. Software testing software development as the core part of the software quality assurance, improves the reliability of software. Along with the enormous increase task of software testing, the development of an effective, replicable, easy to operate automated testing software tool become an important component in the software testing advancing. Tcl(Tool Command Language) is widely used in software testing automation with its powerful extensibility and cross-platform execution ability. Tcl also have many built-in functions and procedures that particularly suited for the development of automated testing scripts. TclTest that bundled in Tcl introduced a test suite to simplify the test script development process.This paper first introduces the theory of software testing and automated testing principles, Tcl and the built-in TclTest structure, then analyse the process of testing the system configuration of a company's broadband access products. Based on the analyzing result and the existing testing APIs, a set of automation testing scripts are designed to automate the system configuration testing. These scripts based on the TclTest framework, use the Tcl built-in regular expression support to read system configuration files and extract keywords, then interact with the command line console in the system to access the current system configuration. Finally, compare the file and the output to generate log and test results report. In specific Tcl code writing, interactive system with the introduction of the abstract part of the hierarchical structure, to eliminate the difference among different command line exist in different versions of the operating system. This structure also gives the test script clearer accessibility as it split the higher-level procedures and the bottom command line transmission.In this paper also some examples are given to explain the script structure and execution flow. The scripts introduced in this paper have been deployed in the company's actually testing environment, and pass the acceptance check.
Keywords/Search Tags:software testing, test automation, TCL, regular expressions
PDF Full Text Request
Related items