Commit Graph

112 Commits

Author SHA1 Message Date
debugtalk
ed8d765f44 update README 2017-07-11 17:24:10 +08:00
debugtalk
d6afe73f9c update README 2017-07-10 12:26:10 +08:00
debugtalk
8e3aa461aa optimize Runner initialization 2017-07-07 14:49:17 +08:00
debugtalk
b7659b2ad4 add match method: startswith 2017-07-05 15:14:10 +08:00
debugtalk
7fbacea3c2 bugfix: update testset request config with testcase request config recursively 2017-07-04 18:29:24 +08:00
debugtalk
37d3034e0d deep_update_dict: update origin dict with override dict recursively 2017-07-04 18:28:08 +08:00
debugtalk
da191032b1 bugfix: initialize context before each test 2017-07-04 17:37:47 +08:00
debugtalk
d881b8e632 bugfix: correct kwargs key name 2017-07-04 17:05:17 +08:00
debugtalk
29b660b3db 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
debugtalk
9d68340eaa parse functions: add support for variable argument 2017-07-04 15:17:45 +08:00
debugtalk
b63e5cf41d add helpers to parse variable and functions 2017-07-04 14:45:03 +08:00
debugtalk
3c7a930cdc fix testcase name 2017-07-03 23:50:01 +08:00
debugtalk
a409beb548 specify logging level from CLI 2017-07-03 16:40:59 +08:00
debugtalk
f833fe9143 set base_url in testset config.request 2017-07-03 16:33:44 +08:00
debugtalk
6887bb7c08 change class name, TestRunner -> Runner 2017-07-03 16:03:37 +08:00
debugtalk
f6477fd6be change method name 2017-07-03 16:02:16 +08:00
debugtalk
e46c376674 HttpSession can be called with full url or with only path 2017-07-03 12:48:18 +08:00
debugtalk
f32578bbb8 move HttpNtlmAuth from runner to client 2017-07-03 12:13:56 +08:00
debugtalk
ba64e82947 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
debugtalk
07cb8d1d55 add test for get_eval_value 2017-07-01 22:31:49 +08:00
debugtalk
ac5f81cacf add test for get_parsed_request 2017-07-01 22:08:00 +08:00
debugtalk
d4493a8283 add test for import_module_functions 2017-07-01 21:54:14 +08:00
debugtalk
dc7a4b69bc 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
debugtalk
da445df78b add HttpNtlmAuth 2017-06-30 19:56:19 +08:00
debugtalk
31a98501ca match_expected comparator: add len_gt, len_lt, len_ge, len_le, etc. 2017-06-30 17:04:20 +08:00
debugtalk
1efb0a497b bugfix: length equal 2017-06-30 16:57:56 +08:00
debugtalk
20f2e6b943 add support for import module custom functions 2017-06-30 13:24:00 +08:00
debugtalk
7de283233e api_server: return JSON format if 403 occurred 2017-06-30 12:01:17 +08:00
debugtalk
c3ce0c53fd we can set public filed in testset.config, and each testcase can inherit from it 2017-06-29 19:20:57 +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
abcba302ae match_expected: add comparator str_len/string_length 2017-06-29 17:32:49 +08:00
debugtalk
c9de871485 bugfix: match_expected should raise ParamsError when comparator is not supported 2017-06-29 17:27:23 +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
e5c934e8d2 add entrance 2017-06-28 22:20:19 +08:00
debugtalk
7f362385b6 apiserver: add interface /api/token 2017-06-28 22:19:01 +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
be60e8f0c0 bind_extractors: Bind named extractors to value within the context. 2017-06-28 21:38:43 +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
83ca01c0b5 query_json: Do an xpath-like query with json_content. 2017-06-28 21:25:28 +08:00
debugtalk
4250992ad9 move response relevant code to ate/response.py 2017-06-28 15:29:40 +08:00
debugtalk
fbb7df5826 update doc string 2017-06-28 11:43:23 +08:00
debugtalk
12f20023b6 add unittest: test_parse_content_with_variables 2017-06-28 00:02:44 +08:00
debugtalk
887845493d make variables marker unified to be 2017-06-27 23:56:59 +08:00