浏览器自动化测试解決方案 Geb

码农软件 · 软件分类 · 常用工具包 · 2019-08-15 19:26:33

软件介绍

Geb 是浏览器自动化(browser automation)测试解決方案

它以强大的 WebDriver 为基础,搭配优雅的 jQuery 选择器,健壮的 Page Object 模型,以及富于表现力的 Groovy 语言。

可以简单的做为程序脚本运行,也可以无缝整合 Spock、 JUnit或 TestNG 等测试框架进行功能测试、web测试和验收测试。

代码示例:

import geb.Browser
 
Browser.drive {
    go "http://myapp.com/login"
     
    assert $("h1").text() == "Please Login"
     
    $("form.login").with {
        username = "admin"
        password = "password"
        login().click()
    }
     
    assert $("h1").text() == "Admin Section"
}

本文地址:https://www.codercto.com/soft/d/12442.html

Programming Amazon Web Services

Programming Amazon Web Services

James Murty / O'Reilly Media / 2008-3-25 / USD 49.99

Building on the success of its storefront and fulfillment services, Amazon now allows businesses to "rent" computing power, data storage and bandwidth on its vast network platform. This book demonstra......一起来看看 《Programming Amazon Web Services》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具