利用关键字驱动生成自动化测试代码的实现  被引量:3

Implementation of Generating Automatic Test Code Using Keyword-driven

在线阅读下载全文

作  者:王枝 WANG Zhi(Xiamen Hymake Technology CO.,LTD.Digital Construction Division,Xiamen,China,361008)

机构地区:[1]厦门海迈科技股份有限公司数字建造事业部,福建厦门361008

出  处:《福建电脑》2021年第11期9-13,共5页Journal of Fujian Computer

摘  要:为了降低自动化测试对测试人员开发能力的依赖,以及解决维护成本高的问题,通过对传统自动化框架的研究,自行开发基于关键字驱动并自动生成测试代码的自动化测试框架。该自动化测试框架基于Selenium+Java+TestNG开发实现,采用层次化的结构设计,通过用例、数据与代码分离,实现了利用关键字驱动自动生成自动化脚本,适用于各种Web服务的自动化测试。实践结果表明,采用该自动化测试框架,能够减少对测试开发能力的依赖,并能快速响应系统的界面和需求变化。In order to reduce the dependence on testers'development capabilities of Automated testing,and solve the problem of high maintenance cost,Through the research on the traditional automation framework,an automatic test framework based on Keyword Driven and automatic test code generation is developed.The automated testing framework is developed and implemented based on Selenium+Java+TestNG.It adopts hierarchical structure design and realizes the automatic generation of automated scripts driven by keywords through the separation of use cases,data and code.It is suitable for the automated testing of various Web services.The practice results show that the automatic test framework can reduce the dependence on the test development ability,and can quickly respond to the changes of system interface and requirements.

关 键 词:自动化测试 关键字驱动 数据驱动 自动生成测试代码 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象