通过领域特定语言加速测试自动化
Accelerating Test Automation through a Domain Specific Language
摘要:
测试自动化涉及测试脚本的自动执行,而不是手动运行。这显著地减少了所需的手动工作量,因此对软件测试行业来说是非常有意义的。在现有的测试自动化工具和方法中存在两个关键问题- a)创建自动化测试脚本本质上是一个代码开发任务,大多数测试人员都没有接受过这方面的培训;以及b)自动化测试脚本很少可读,使得维护任务成为一个工作密集型过程。我们提出了加速测试自动化平台(ATAP),旨在使测试自动化非程序员访问。ATAP允许通过基于英语的领域特定语言创建自动化测试脚本。使用Selenium WebDriver将类似英语的测试脚本自动转换为机器可执行代码。ATAP的类英语测试脚本使非程序员很容易编写。ATAP脚本的功能流程也很容易理解,因此维护也更简单(当您几个月后重新访问它时,您可以理解测试脚本的流程)。ATAP是围绕Eclipse生态系统构建的,并已在实际测试项目中使用。我们提出了ATAP的实施细节和它在实践中的使用结果。
英文摘要:
Test automation involves the automatic execution of test scripts instead of being manually run. This significantly reduces the amount of manual effort needed and thus is of great interest to the software testing industry. There are two key problems in the existing tools and methods for test automation - a) Creating an automation test script is essentially a code development task, which most testers are not trained on; and b) the automation test script is seldom readable, making the task of maintenance an effort intensive process. We present the Accelerating Test Automation Platform (ATAP) which is aimed at making test automation accessible to non-programmers. ATAP allows the creation of an automation test script through a domain specific language based on English. The English-like test scripts are automatically converted to machine executable code using Selenium WebDriver. ATAP's English-like test script makes it easy for non-programmers to author. The functional flow of an ATAP script is easy to understand as well thus making maintenance simpler (you can understand the flow of the test script when you revisit it many months later). ATAP has been built around the Eclipse ecosystem and has been used in a real-life testing project. We present the details of the implementation of ATAP and the results from its usage in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。