我想进入测试自动化,我已经看过允许进行功能测试的selenium。我还看到了性能测试和负载/压力测试。我想知道是否有可能用gatling进行功能测试?
答案 0 :(得分:1)
这是其文档中功能规范的示例:
class GatlingFunSpecExample extends GatlingHttpFunSpec {
val baseURL = "http://example.com"
override def httpConf = super.httpConf.header("MyHeader", "MyValue")
spec {
http("Example index.html test")
.get("/index.html")
.check(pageHeader.exists)
}
}
object GatlingFunSpecExample {
def pageHeader = css("h1")
}
链接到文档: https://gatling.io/docs/2.3/general/functional_specs/