XML技术在软件可靠性测试中的应用
Application of XML Technology in Software Reliability Test
-
摘要: 软件的可靠性测试是保证软件质量的重要措施。应用XML保存软件可靠性测试中生成的测试用例,提出了XML测试用例模型,实现了XML测试用例文件生成器与测试引擎,用测试驱动程序来读取测试用例,驱动被测程序运行,自动比较测试结果。能够自动、高效地对软件接口进行测试,测试数据与测试驱动程序相分离,有利于测试数据的维护与重用,在实际应用中取得了很好的效果。Abstract: Software reliability test is an important way to assure the quality of the software. This paper presents XML test case module and a way to store test cases of software reliability test by using (Extensible Markup Language) XML technology. XML test case file creator and a test engine is implemented. The test case is read by the test driver program, which drives the tested program to run and compares the test result automatically. In this way, the software interface will be tested automatically and efficiently. Test data is divorced from test driver program for maintenance and reuse of the test data.