基于Selenium的Web自动化测试解释器
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


Web Automatic Test Inerpreter Based on Selenium
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    Selenium自动化测试工具在测试领域已经被广泛应用.使用时它需要依赖其它编译器或解释器才能执行测试.一方面让测试人员需要熟练的编程技术才能使用,另一方面让测试开发难度过高.为了降低自动化测试门槛,针对Web自动化测试设计了一种基于Selenium的解释器.首先深入剖析Selenium的测试原理,依据它测试接口的使用状况对主要的测试类构建依赖关系,然后根据Web程序的测试需求构建解释器的各个模块.参照编程人员的编码习惯和参考Python、JQuery等语法对每个模块的语法详细设计.最后设计一个具体的测试用例对解释器进行评价.实验结果表明,该解释器克服了使用Selenium门槛高的缺点,让编写的测试脚本更加简短整洁,测试性能也有明显的提高.

    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

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2018-03-19
  • 最后修改日期:2018-04-11
  • 录用日期:
  • 在线发布日期: 2018-10-24
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号