Commit Graph

22 Commits

Author SHA1 Message Date
debugtalk
895478719d make logging string unicode 2017-11-02 20:40:56 +08:00
debugtalk
6e65f5cf0c fix typo error 2017-11-02 13:10:43 +08:00
debugtalk
bd8540622d extractor: add support to extract value from html text with regex string 2017-10-31 23:26:38 +08:00
debugtalk
7b64b8233b rename keyword: extract_binds => extractors 2017-10-24 15:40:59 +08:00
debugtalk
99da071fba refactor handling binds data structure 2017-09-19 18:10:54 +08:00
debugtalk
cb7bb253da make extract_response return as ordered dict 2017-09-19 18:05:12 +08:00
debugtalk
223cb20f72 bugfix #34: handle exception when response content is empty 2017-08-29 14:44:44 +08:00
debugtalk
57b1f35e4d optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
debugtalk
297dabca60 optimize response validation 2017-08-02 13:33:07 +08:00
debugtalk
f41729094a 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
debugtalk
cd4e635d83 change validators from dict to list, as there may be several tests on one filed 2017-06-29 18:15:28 +08:00
debugtalk
63c9d209e9 do not need to config extract_binds if only want to validate results 2017-06-29 17:19:06 +08:00
debugtalk
7e3f1bdcc8 validate response: check validators and variables_mapping 2017-06-29 16:36:59 +08:00
debugtalk
2a904ec36a add comparators 2017-06-29 16:13:20 +08:00
debugtalk
d065864e4b change method of checking python version 2017-06-29 15:39:14 +08:00
debugtalk
6854607cf0 refactor: add extract_binds and validators 2017-06-29 15:27:26 +08:00
debugtalk
997e9d642b extract_response when initialize ResponseObject 2017-06-28 23:35:56 +08:00
debugtalk
207998a2f5 change method name 2017-06-28 23:25:08 +08:00
debugtalk
c3d975133e create ResponseObject, each test result will be associated with a ResponseObject 2017-06-28 23:08:17 +08:00
debugtalk
3d9777ba57 can only use parameter names (sep, maxsplit) in Python 3.x, not supported in Python2.x 2017-06-28 21:47:10 +08:00
debugtalk
6c32fd751b extract_response: extract content from requests.Response, and bind extracted value to context.extractors 2017-06-28 21:35:18 +08:00
debugtalk
4250992ad9 move response relevant code to ate/response.py 2017-06-28 15:29:40 +08:00