Commit Graph

287 Commits

Author SHA1 Message Date
httprunner
c2e21de051 bugfix: POST content-type is application/x-www-form-urlencoded 2018-11-30 22:46:09 +08:00
httprunner
527a0b2b7b fix base_url: teststep have base_url but is empty 2018-11-29 19:31:11 +08:00
httprunner
04a74dcad1 fix base_url with api referrence 2018-11-29 15:15:45 +08:00
httprunner
b4247e0f0d make extract in testcase template compatible with mapping style:
new mapping style:
    extract: {
        a: content.a,
        b: text.b
    }

    Also, the former list style is still valid:
    extract: [
        {a: content.a},
        {b: text.b}
    ]
2018-11-29 14:43:12 +08:00
httprunner
e9d08b0de4 fix base_url with variables 2018-11-29 11:54:33 +08:00
httprunner
72918df69e try to fix unittest failure in Python 2.7 2018-11-28 22:24:39 +08:00
httprunner
84fd49eeeb fix a4ce29e656: make variables independent on order 2018-11-28 13:18:27 +08:00
httprunner
9a62f778fb make variables in testcase template compatible with mapping style:
new mapping style:
"variables": {
    "a": 1,
    "b": 2
}

Also, the former list style is still valid:
"variables": [
    {"a": 1},
    {"b": 2}
]
2018-11-28 12:14:06 +08:00
httprunner
a4ce29e656 bugfix: parse test variables with config variables 2018-11-27 23:59:33 +08:00
httprunner
055b2d5ad0 fix html report for HttpRunner 2.0 2018-11-27 17:58:06 +08:00
httprunner
a079c2e134 adjust arguments for html report 2018-11-25 23:12:36 +08:00
httprunner
ebfb0e6157 fix commit 4cf2a17cd0 2018-11-24 00:49:13 +08:00
httprunner
c6076acb8b implement hook assignment: save returned value from hook function to teststep scope variable 2018-11-24 00:23:57 +08:00
httprunner
3652a713c5 rename teststeps to tests 2018-11-23 17:56:53 +08:00
httprunner
b103fd0d2b update locusts with HttpRunner 2.0 2018-11-23 17:14:43 +08:00
httprunner
bae0f03c68 fix environment variable invoke:
environment variable maybe loaded in debugtalk.py
thus .env file should be loaded before loading debugtalk.py
2018-11-22 20:43:27 +08:00
httprunner
f05f190d24 HttpRunner 2.0 is comming!
1, new design for testcase format;
2, refactor testcase layer mechanism.
2018-11-22 19:25:00 +08:00
httprunner
87a80ecc7f add unittest: variables in testcase teststep should override api's 2018-11-16 14:50:14 +08:00
httprunner
fc9f828ed3 add args and kwargs validation for ENV() and P() 2018-11-16 12:45:06 +08:00
httprunner
c3b52bbc79 .env variables should be referenced with builtin ENV/environ function 2018-11-16 12:29:02 +08:00
httprunner
4142867fbd refactor testcase config data structure 2018-11-15 21:49:05 +08:00
httprunner
efc2520e81 update parse_parameters 2018-11-15 21:09:22 +08:00
httprunner
80c36eaeee remove obsolete key words: variable_binds, extractors, extract_binds, validators 2018-11-15 20:35:44 +08:00
httprunner
675d4e372b refactor is_function 2018-11-15 20:05:57 +08:00
httprunner
8423c41f36 remove unused utils functions 2018-11-15 19:58:26 +08:00
httprunner
a6df9bc36c relocate functions related to .env 2018-11-15 19:37:50 +08:00
httprunner
0d057785bc relocate functions related to debugtalk.py 2018-11-15 17:12:31 +08:00
httprunner
64a960d490 remove debugtalk.py variables mechanism 2018-11-15 14:48:44 +08:00
httprunner
2c90c64dc2 set_os_environ before parsing testcase, unset_os_environ after parsing testcase 2018-11-14 22:11:14 +08:00
httprunner
934c209a2e ensure variables are in mapping format. 2018-11-14 16:15:04 +08:00
httprunner
c318f9bdbb fix variables priority: passed in > .env > debugtalk.py > parameters > config variables 2018-11-14 15:41:41 +08:00
httprunner
aad7b1972d fix merge & override api variables/validate/extract/hooks/etc 2018-11-06 23:44:46 +08:00
httprunner
ea297c4152 locusts support weight feature 2018-10-29 22:16:41 +08:00
httprunner
a51bf44a62 split _load_teststeps from _load_testcase 2018-10-29 15:00:04 +08:00
httprunner
6868adc5c0 refactor _load_test_file 2018-10-29 13:01:30 +08:00
httprunner
a361487f4f fix unittest for Python2.7
https://travis-ci.org/HttpRunner/HttpRunner/jobs/447602404
2018-10-29 11:11:19 +08:00
httprunner
37976e301e fix #418: deepcopy testcase when testcase contains BufferReader 2018-10-27 18:37:58 +08:00
httprunner
8d7e1a7e44 rename testset => testcase 2018-10-03 00:02:38 +08:00
httprunner
41dcd00a10 make HttpRunner().run as main interface for running testcases 2018-10-02 00:50:39 +08:00
httprunner
592583ba52 relocate parse_tests 2018-10-01 18:02:21 +08:00
httprunner
9b6cc7ca29 refactor pipline 2018-10-01 17:27:51 +08:00
httprunner
f479b59205 Merge branch 'master' into pipline 2018-09-29 14:21:20 +08:00
httprunner
cf766e9a06 rename HttpRunner method name: initialize => add_tests 2018-09-17 21:28:00 +08:00
httprunner
182393497c initialize TextTestRunner in HttpRunner initialization 2018-09-17 20:35:46 +08:00
httprunner
3248a5ad31 Merge branch 'bugfix' of https://github.com/httprunner/HttpRunner into bugfix 2018-09-17 15:36:19 +08:00
httprunner
8e89246cbe fix #392: multiple '=' in .env file 2018-09-17 15:16:35 +08:00
httprunner
f5ce789eb2 update create_scaffold 2018-09-11 00:40:47 +08:00
httprunner
471bf0e2de fix unittest for httpbin response time 2018-09-10 07:51:48 +08:00
httprunner
7590f4772b fix unittest 2018-09-06 11:52:06 +08:00
httprunner
5cfb1146a2 fix #112: RecursionError when running locust 2018-09-06 08:53:08 +08:00