Font Size: a A A

Component Interface Validation And Test Based On XML

Posted on:2009-11-11Degree:DoctorType:Dissertation
Country:ChinaCandidate:N NieFull Text:PDF
GTID:1118360275470959Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Modern software engineering usually adopts hierarchical and modular architecture, and its developing methods often use modularization design. Component-based software system is a loosely coupled architecture of heterogeneity components, which has better interoperability, expansibility and reusability compared with traditional software, and its reliability dominantly depends on component quality. Component software can be usually used in network distributed environment, and its independent components use interface invocation and message queue to realize system coupling and communication. Because it is difficult to define grammar and semantic between heterogeneous environments communication, there are a lot of problems related with system coupling, harmony and unification management. So component software development and test has become a research hotspot and difficulty. Component interface plays an important and special role in component software, hence the research about interface becomes the key problem of component development and test.On the other hand, XML published by W3C is used to describe and process most data types in computer science and technology field. It can represent many classes of data, including semi-structured records, structured documents. So it can process the data set of traditional software interface development. With the rapid development of software test, XML can be used to describe and operate system data.XML can assure data consistence ,complete and reliability of components between independent sofewares, and it makes the system data and test data exchange of internal and external system to become simple and easy. As a result, XML becomes more and more important in interface development. XML-based software development has became a flourish field, XML will show its mightiness functions in component software interface development and testing.Firstly, it uses XML and validation techniques to develop Component IDL compiler and validate its correction .Then it provides how to process and validate IDL symbol table and intermediate code by XML API. It puts emphasis on IDL API extension towards DOM API based on the idea of combining XML with IDL compilers. At last, the IDL compiler design framework based on XML API is given, in which compiler front end can be managed by some XML techniques and tools, IDL API can be validated to its data on the basis of test, so IDL intermediate code is provided with maintainability, portability and generation. Therefore it laid a foundation for the component interface extension and test.In order to adapt different languages and platforms, On the basis of the traditional component interface mutation, it is necessary to provide an XML API-based extension interface mutation testing approach. Firstly, the framework of component extension interface testing is given, and the Definition Model towards Extension Interface (DMEI)is defined. According to XML API, XML-based data validator which extends component interface is built to process dataset inside the component. Then XML Schema mutation operator outside of component validates the component data set and tests interface functions parameters automatically. Compared with traditional component interface mutation,the test approach has a lot of advantages, such as the muti-functional and visual testing interface, cross-platform and general-purpose test–script language. Our preliminary experiments show that it can be applied in many component testing environments, such as CORBA, EJB and COM.Component Extension Interface Test ( CEIT) framework built on different components is proposed. CEIT includes a lot of interface functions, in which component's access control and its test interface can be realized by XACML. Then a kind of three level access control policies towards component is provided by XACML, Component interaction, interface invocation and references access all can be protected by XACML policies. On the basis of it, the mutation test policies is designed, rule mutations lead to policy mutation, policy mutations lead to policies mutation and vice versa. Both the case and semantical verification show that all kinds of component interface and interaction can be protected by XACML testing strategies.At last, it mainly talks about how to apply xml development and test techniques into the integration test system towards COM component (CSTS). CSTS adopts xml file of COM interface analysis as test input, and the test oracle template can be built automatically. Then it is compiled to the dll file. CSTS uses testdriver to drive dll to realize dynamic monitor of component running. At last, CSTS analyzes test result and designs a universal test report. It puts emphasis on the interface mutation fault injection weighted combination test and its related test oracle reduction.In a word, according to XML techniques, the paper realizes the complete design scenario towards component interface development, test and security management. So it laid a foundation for the research of component interface trusted management language model.
Keywords/Search Tags:Component Testing, Component Extension Interface, XML Schema, Access Control Interface, Mutation Test
PDF Full Text Request
Related items