摘要
为提高GUI软件测试的效率、降低软件成本,提出一种针对GUI软件的测试工具。该工具由测试配置设定模块、测试用例设计模块和测试用例执行模块组成。首先根据测试需求进行测试配置设定生成INI文件,然后根据INI文件内容将测试对象窗体中需要测试的控件及属性设定到测试用例设计界面中,在界面中进行测试用例设计,并将设计数据保存到XML文件中,测试用例执行模块通过读取XML文件中的数据完成测试用例的自动执行,同时进行测试结果判断,最后生成测试报告。测试人员只需输入数据,不用编写测试脚就能实现测试用例的自动执行,能减轻测试人员负担,提高软件测试效率。
To improve the efficiency of the GUI software test,a kind of test tool for GUI software is put forward.The tool is composed of configuration setting module,test case design module and test case execution module.Firstly,according to the test requirements,INI configuration file is set,then the control,property and event are set in test case design form according to the INI file,the test case designed in test case form is saved to XML file,and finally the test case executiorn module executes the test cases by reading the data in the XML file.At the same time the test report is generated.The tester just need input the test case to test the software automatically without writing test script.Using this tool can reduce the burden on the tester,and improve the efficiency of software test.
出处
《计算机与数字工程》
2014年第2期346-350,共5页
Computer & Digital Engineering
关键词
GUI
测试工具
自动化测试
测试效率
graphical user interface
test tool
automatic test
test efficiency