mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-27 03:10:08 +08:00
tests: update examples
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user