把下面的中文翻译成英文首先论文讨论了自动化测试的背景和意义确立了对自动化测试进行研究的重要意义在调研了自动化测试的国内外研究现状的基础上分析其他学者的自动化测试工具确定了设计通用的针对Web应用程序的自动化测试框架的必要性。接着根据UI测试的发展历程对比基于数据驱动和基于关键字驱动这两类主流测试驱动模式的区别和联系论文选择了两者结合的混合驱动模式和Selenium测试框架搭建整体架构。其次在对we
Firstly, this paper discusses the background and significance of automated testing, establishes the importance of researching automated testing, and analyzes the research status of automated testing both domestically and abroad. Based on this, the necessity of designing a universal automated testing framework for web applications is determined by analyzing other scholars' automated testing tools. Then, according to the development history of UI testing, the differences and connections between the two mainstream test-driven modes based on data-driven and keyword-driven are compared, and a hybrid-driven mode combining the two is selected, along with the Selenium testing framework, to build the overall architecture.
Secondly, after analyzing the testing requirements for web-based systems, this paper designs the overall functional modules of the framework, including the driver module, execution module, image processing module, test report module, and log module. The driver module includes a hybrid-driven mode based on both data-driven and keyword-driven to design the testing framework, as well as a browser driver for interacting with the browser. The execution module encapsulates the framework execution process and common methods for reading test cases. The image processing module uses the feature matching algorithm Akaze to solve the problem of non-web controls that Selenium framework cannot recognize, and uses the OCR recognition tool Tesseract to handle the CAPTCHA problem during login. The test report module uses the Allure framework to generate customizable and visually appealing test reports. The log module uses Python's logger module to record the entire testing execution process and integrate the generated logs into the Allure report.
Finally, using the same test cases, this paper compares and analyzes the automated testing framework designed in this paper with other mainstream testing frameworks in terms of functional coverage, test pass rate, test efficiency, and test cost. The test results show that the automated testing framework designed in this paper has certain improvements in all aspects compared to other testing frameworks, with a higher cost-effectiveness and more suitable for unmanned automated testing of web systems, and has high practical value.
原文地址: https://www.cveoy.top/t/topic/brjl 著作权归作者所有。请勿转载和采集!