Commit Graph

15 Commits

Author SHA1 Message Date
httprunner
4d471d7cda optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
httprunner
cd27f325eb optimize response validation 2017-08-02 13:33:07 +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
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
1bca625f42 validate response: check validators and variables_mapping 2017-06-29 16:36:59 +08:00
httprunner
5da07a1652 add comparators 2017-06-29 16:13:20 +08:00
httprunner
a9c4af3a82 change method of checking python version 2017-06-29 15:39:14 +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
httprunner
4f87c14f53 can only use parameter names (sep, maxsplit) in Python 3.x, not supported in Python2.x 2017-06-28 21:47:10 +08:00
httprunner
fc9218c70c extract_response: extract content from requests.Response, and bind extracted value to context.extractors 2017-06-28 21:35:18 +08:00
httprunner
e538a86669 move response relevant code to ate/response.py 2017-06-28 15:29:40 +08:00