mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 06:27:36 +08:00
refactor: replace httpbin service with docker
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# NOTE: Generated By HttpRunner v4.1.4
|
||||
# NOTE: Generated By HttpRunner v4.3.5
|
||||
# FROM: basic.yml
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest
|
||||
|
||||
|
||||
class TestCaseBasic(HttpRunner):
|
||||
|
||||
config = Config("basic test with httpbin").base_url("https://httpbin.org/")
|
||||
config = Config("basic test with httpbin").base_url("${get_httpbin_server()}")
|
||||
|
||||
teststeps = [
|
||||
Step(
|
||||
@@ -13,7 +13,7 @@ class TestCaseBasic(HttpRunner):
|
||||
.get("/headers")
|
||||
.validate()
|
||||
.assert_equal("status_code", 200)
|
||||
.assert_equal("body.headers.Host", "httpbin.org")
|
||||
.assert_equal("body.headers.Host", "127.0.0.1")
|
||||
),
|
||||
Step(
|
||||
RunRequest("user-agent")
|
||||
|
||||
Reference in New Issue
Block a user