摘要
随着互联网技术在全球范围内的迅速发展,各种Web应用程序已成为系统软件开发的主流,对应的自动化测试理论和工具日趋重要。基于开源的自动化测试工具Geb,介绍了它的大致原理,给出了一个简单可行的实践步骤。通过准备测试用例,编辑测试脚本,执行测试脚本的步骤,Geb可调用各子模块,根据脚本的要求,模仿真正的人手动操作浏览器、并得到测试结果。Geb可以跨浏览器,跨平台运行,进行本地或远程的测试,值得在真实开发场景中推广使用。
With the rapid development of Internet technology in the global scale, all kinds of Web applications has become the mainstream of software development, the corresponding theories and tools of automated testing have become increasingly important. Geb is an open source browser automation tool. This paper introduces the general principle of Geb, and givs a simple and feasible practical steps. By preparing the test cases, programing the test script, executing the scripts, Geb can directly call its sub-module. According to the requirement of the testing specification, imitation of human manual operation, and the test results are obtained. Geb is a cross-browser, cross-platform automation tool which supports also local and remote mode, is worth used widely in the real development scenarios.
出处
《微型机与应用》
2016年第17期23-25,共3页
Microcomputer & Its Applications