tests: update examples

This commit is contained in:
debugtalk
2020-07-06 16:16:04 +08:00
parent 0fc42f77cd
commit beef0f0a99
14 changed files with 26 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
# NOTE: Generated By HttpRunner v3.1.2
# NOTE: Generated By HttpRunner v3.1.3
# FROM: basic.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseBasic(HttpRunner):
config = Config("basic test with httpbin").base_url("https://httpbin.org/")
teststeps = [

View File

@@ -1,10 +1,12 @@
# NOTE: Generated By HttpRunner v3.1.2
# NOTE: Generated By HttpRunner v3.1.3
# FROM: hooks.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseHooks(HttpRunner):
config = Config("basic test with httpbin").base_url("${get_httpbin_server()}")
teststeps = [

View File

@@ -1,10 +1,12 @@
# NOTE: Generated By HttpRunner v3.1.2
# NOTE: Generated By HttpRunner v3.1.3
# FROM: load_image.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseLoadImage(HttpRunner):
config = Config("load images").base_url("${get_httpbin_server()}")
teststeps = [

View File

@@ -1,10 +1,12 @@
# NOTE: Generated By HttpRunner v3.1.2
# NOTE: Generated By HttpRunner v3.1.3
# FROM: upload.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseUpload(HttpRunner):
config = Config("test upload file with httpbin").base_url("${get_httpbin_server()}")
teststeps = [

View File

@@ -1,10 +1,12 @@
# NOTE: Generated By HttpRunner v3.1.2
# NOTE: Generated By HttpRunner v3.1.3
# FROM: validate.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseValidate(HttpRunner):
config = Config("basic test with httpbin").base_url("http://httpbin.org/")
teststeps = [