摘要
为了实现对资产管理系统Web端自动化测试,研究了一种基于Selenium的unittest框架并采用数据驱动测试技术。利用Selenium提供的Webdriver定位元素,应用数据驱动模式进行测试用例脚本执行、用例重启、测试日志和测试报告自动生成等关键功能的自动执行,执行完成后将测试过程和测试结果以直观的方式反馈给测试人员。实践证明,在Web端使用自动化测试,有效节省了测试时间,提高了测试效率。
In order to realize the automatic test of the Web side of the assets management system,a unittest framework based on Selenium is studied and data driven testing technology is adopted.Uses the Webdriver provided by Selenium to locate elements.Data driven mode is applied to automatically execute key functions such as test case script execution,case restart,automatic generation of test log and test report.After execution,the test process and test results are fed back to testers in an intuitive way.Practice has proved that using automatic test on the Web side can effectively save test time and improve test efficiency.
作者
郑根让
ZHENG Genrang(Zhongshan Polytechnic,Zhongshan 528404,China)
出处
《现代信息科技》
2021年第18期21-23,27,共4页
Modern Information Technology
基金
广东省教育厅2020年度普通高校认定类科研项目(2020KTSCX333)。