为了实现软件功能测试的自动化并达到软件功能测试事半功倍的效果,给出测试逻辑、测试数据(集)和测试用例(集)的数学定义及其相互之间的关系,并提出了1种软件自动测试技术:基于LoadRunner和正交试验设计法的数据驱动测试技术。首先,借助于软件测试工具LoadRunner生成1个测试逻辑;其次,基于正交试验设计法生成该测试逻辑较少的、高质量的、典型的测试数据;最后,借助于软件测试工具LoadRunner自动执行该测试逻辑的测试用例集并分析其测试结果。同时给出该软件自动测试技术的应用实例,实验结果表明,该技术能够减少测试用例数量且提高测试效率。
In order to realize the automation and get twice the result with half the effort in functional testing of software,mathematic definitions of test logic,test data(set) and test case(set) are introduced,and the relationships among these definitions are also given.And then an automatic testing technology of software is presented,which is a data-driven testing technology based on LoadRunner and design method of orthogonal test.Firstly,a test logic is generated by means of software testing tool LoadRunner.Secondly,comparatively fewer logic,high-quality and typical test data are generated based on the design method of orthogonal test.Finally,by means of software testing tool LoadRunner a test case set of this test logic is executed automatically,and correspondingly its test results are analyzed.At the same time,an application example of the automatic test technology of software is given.Experimental results show that this technology can reduce the number of test cases and improve test efficiency.