###
计算机系统应用英文版:2018,27(11):51-56
←前一篇   |   后一篇→
本文二维码信息
码上扫一扫!
基于Selenium的Web自动化测试解释器
(1.东华大学 计算机科学与技术学院, 上海 201620;2.中国科学院 软件研究所, 北京 100190)
Web Automatic Test Inerpreter Based on Selenium
(1.Computer Science and Technology Academy, Donghua University, Shanghai 201620, China;2.Institute of Software, Chinese Academy of Sciences, Beijing 100190, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1583次   下载 2497
Received:March 19, 2018    Revised:April 11, 2018
中文摘要: Selenium自动化测试工具在测试领域已经被广泛应用.使用时它需要依赖其它编译器或解释器才能执行测试.一方面让测试人员需要熟练的编程技术才能使用,另一方面让测试开发难度过高.为了降低自动化测试门槛,针对Web自动化测试设计了一种基于Selenium的解释器.首先深入剖析Selenium的测试原理,依据它测试接口的使用状况对主要的测试类构建依赖关系,然后根据Web程序的测试需求构建解释器的各个模块.参照编程人员的编码习惯和参考Python、JQuery等语法对每个模块的语法详细设计.最后设计一个具体的测试用例对解释器进行评价.实验结果表明,该解释器克服了使用Selenium门槛高的缺点,让编写的测试脚本更加简短整洁,测试性能也有明显的提高.
中文关键词: 解释器  Selenium  Web  自动化测试
Abstract:Selenium automated testing tools have been widely used in the field of testing. In the scenario, they need to rely on other compilers or interpreters to perform tests. On the one hand, testers need sophisticated programming skills to use the tools, and on the other hand, test development is too difficult. In order to reduce the automation test threshold, an interpreter based on Selenium is designed for Web automated testing. Firstly, it analyzes the testing principle of Selenium, and builds dependencies on the main test classes based on the usage of the test interface, and then constructs the modules of the interpreter according to the testing requirements of the Web program. For detailed design of each module's syntax, we referred to the programmer's coding conventions, Python, JQuery, and other syntax. Finally, a specific test case is designed to evaluate the interpreter. The experimental results show that the interpreter overcomes the disadvantages of using Selenium's high threshold, makes the written test script more concise and cleaner, and the test performance has also been significantly improved.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
沈大框,黄永锋,罗保国.基于Selenium的Web自动化测试解释器.计算机系统应用,2018,27(11):51-56
SHEN Da-Kuang,HUANG Yong-Feng,LUO Bao-Guo.Web Automatic Test Inerpreter Based on Selenium.COMPUTER SYSTEMS APPLICATIONS,2018,27(11):51-56