httprunner
7edba7be51
add extractors back, make compatible with older version
2017-11-01 14:47:33 +08:00
httprunner
49797c51fd
rename validators to validate
2017-11-01 14:43:28 +08:00
httprunner
62c64e9309
rename extractor/extractors to extract
2017-11-01 14:30:36 +08:00
httprunner
a1bc8dd964
locusts: support group url
2017-10-30 20:22:14 +08:00
httprunner
5476ed70e1
print http request kwargs when exception occured.
2017-10-30 19:24:43 +08:00
httprunner
351000b20b
print http response content when exception occured.
2017-10-30 17:54:04 +08:00
httprunner
fa82c26e9f
rename keyword: variable_binds => variables
2017-10-24 15:59:09 +08:00
httprunner
05d390169a
rename keyword: extract_binds => extractors
2017-10-24 15:40:59 +08:00
httprunner
4a36781b65
bugfix: UnboundLocalError occured when _run_testset failed
2017-09-28 14:21:54 +08:00
httprunner
102af87e61
runner: rename method name
2017-09-25 15:52:52 +08:00
httprunner
94b6202d2d
runner: replace run_testsets method
2017-09-25 15:32:42 +08:00
httprunner
8fb3e0b73a
support run test suites set file
2017-09-24 14:09:25 +08:00
httprunner
cf6c7e1a76
bugfix: keys that are not in 'request' of config shall not be lower cased
2017-09-20 21:14:14 +08:00
httprunner
9161e48844
move print_output function from runner.py to utils.py
2017-09-19 23:27:38 +08:00
httprunner
ccce1357c4
bind_variables: variable_binds now can be ordered dict
2017-09-19 18:33:27 +08:00
httprunner
041152c00f
run_testset: add variables_mapping parameter
2017-09-19 17:07:07 +08:00
httprunner
1b847d562d
fix doc string
2017-09-19 16:14:55 +08:00
httprunner
4197ed26ca
add output:
...
1, change return value of running testset;
2, print extracted variables at the end of testset.
2017-09-19 15:24:11 +08:00
httprunner
93d4a78210
lower testcase key
2017-09-13 16:17:21 +08:00
httprunner
8d568d9e0d
request in config should also be parsed
2017-09-12 22:32:52 +08:00
httprunner
5e89c279cd
refactor: adjust code location
2017-09-12 19:34:37 +08:00
httprunner
eb4dcb64a3
add setup and teardown block, in these blocks, we can exec functions such as sleep
2017-09-05 10:25:22 +08:00
httprunner
27e796f810
bugfix: extract_binds should be list
2017-09-04 22:04:57 +08:00
httprunner
1013971cf9
hot plugin support: search variables recursive upward from testset file
2017-09-04 11:22:43 +08:00
httprunner
ca9d41544e
hot plugin support: search functions recursive upward from testset file
2017-08-31 12:51:39 +08:00
httprunner
d41545dcc6
fix doc string
2017-08-30 16:59:11 +08:00
httprunner
34d0c6a1e8
rename fixture module name
2017-08-29 22:12:08 +08:00
httprunner
862a2928f4
update docstring of run_test
2017-08-15 19:34:50 +08:00
httprunner
4d471d7cda
optimize response validation: if validation failed, then raise ValidationError directly
2017-08-02 15:10:38 +08:00
httprunner
4de4cfe3a3
specify run times in testcase
2017-07-27 14:44:32 +08:00
httprunner
4849a25ea2
refactor variable context:
...
1, variable context has two level, testset and testcase;
2, testset level variables can be used in whole test suite, while testcase level variables can only be used in testcase;
3, when variable binds with functions, the funtions will be called and the result will be set to the variable.
2017-07-20 22:43:18 +08:00
httprunner
952d682dbb
optimize Runner initialization
2017-07-07 14:49:17 +08:00
httprunner
99e5430206
bugfix: initialize context before each test
2017-07-04 17:37:47 +08:00
httprunner
17bf07f012
change variable marker and function marker:
...
1, variable marker: ${var} => $var;
2, function marker: {'func': 'gen_random_string', 'args': [5]} => ${gen_random_string(5).
2017-07-04 16:45:18 +08:00
httprunner
4bb6d3f526
set base_url in testset config.request
2017-07-03 16:33:44 +08:00
httprunner
efb3890973
change class name, TestRunner -> Runner
2017-07-03 16:03:37 +08:00
httprunner
e57e5d547c
change method name
2017-07-03 16:02:16 +08:00
httprunner
3c60bbfac3
HttpSession can be called with full url or with only path
2017-07-03 12:48:18 +08:00
httprunner
7fd0f715ca
move HttpNtlmAuth from runner to client
2017-07-03 12:13:56 +08:00
httprunner
9586915322
create HttpSession as wrapper of requests.Session, in order to log more information of request and response
2017-07-03 12:07:40 +08:00
httprunner
5dc5ca950d
refactor context:
...
1, testset and testcase are in different context level;
2, testset context will be initialized when a file is loaded, and testcase level context initializes when each testcase starts;
3, testcase context should inherit from testset context configs, and the testcase context has high priority.
2017-07-01 21:44:04 +08:00
httprunner
1dbd86efeb
add HttpNtlmAuth
2017-06-30 19:56:19 +08:00
httprunner
434e82f95e
add support for import module custom functions
2017-06-30 13:24:00 +08:00
httprunner
eff16d7232
we can set public filed in testset.config, and each testcase can inherit from it
2017-06-29 19:20:57 +08:00
httprunner
87ef0b3cd6
change validators from dict to list, as there may be several tests on one filed
2017-06-29 18:15:28 +08:00
httprunner
bfa2227d10
do not need to config extract_binds if only want to validate results
2017-06-29 17:19:06 +08:00
httprunner
67a5de3575
refactor: add extract_binds and validators
2017-06-29 15:27:26 +08:00
httprunner
b139459195
extract_response when initialize ResponseObject
2017-06-28 23:35:56 +08:00
httprunner
895553e158
change method name
2017-06-28 23:25:08 +08:00
httprunner
f5705e37f8
create ResponseObject, each test result will be associated with a ResponseObject
2017-06-28 23:08:17 +08:00