基于 Selenium 的 Web 自动化测试技术的研究与应用 Research and Application of Testing Automation in Web Based on Selenium 中文摘要本文通过对基于 Selenium 自动化测试技术的研究与分析,对需要进行自动化测试的 Web 应用进行整体的需求分析及用例设计;之后通过Selenium 与 Python3 相结合,使用 po 模型,关键字模型,数据驱动 ,Unittest 测试框架等测试技术与思想理念,对 Web 应用设计高质量的自动化测试脚本代码。通过这样设计和编写的自动化测试脚本拥有较高的稳定性,高效性,健壮性和代码的简洁性,这样可以让我们自己编写的自动化测试脚本不仅仅只适用于一个系统,还可以适用于大多数相似功能的系统,这将大大降低自动化测试的成本。最后可以进行自动化测试脚本的执行与测试报告的生成,分析测试结果。通过自动化测试脚本代码来执行一些人类难以执行或重复机械的用例,这样可以解放测试人员的劳动力,将他们从机械化的工作中解放出来,令他们有更多的时间与精力去发现新的 bug,设计更高效的测试用例,从而提高应用整体的质量。关键词: Selenium Python3 自动化测试AbstractIn this paper, through the research and analysis based on Selenium automated testing technology, the overall needs analysis and use case design of the Web application that needs to be automated tested; afterwards, through the combination of Selenium and Python3, use the po model, keyword model, data driven, Unittest Test technologies and ideas such as test frameworks, and design high-quality automated test script codes for Web applications. Automated test scripts designed and written in this way have high stability, efficiency, robustness and code simplicity, which allows us to write automated test scripts that are not only applicable to one system, but also applicable to large Most systems with similar functions will greatly reduce the cost of automated testing. Finally, the execution of automated test scripts and the generation of test reports can be performed to analyze test results.Execut...