Commit Graph

62 Commits

Author SHA1 Message Date
httprunner
24e47f5762 Merge branch 'master' of https://github.com/debugtalk/ApiTestEngine 2017-09-11 23:48:57 +08:00
luowentao
2b95289bea refactor: fix typos 2017-09-11 20:44:57 +08:00
httprunner
e226724d74 fix variable name 2017-09-07 16:47:04 +08:00
httprunner
cdae396fd2 bugfix: private property should be _single_leading_underscore 2017-09-04 11:35:02 +08:00
httprunner
c8543e51ea bugfix: imported module should not be considered as variable 2017-09-01 19:01:34 +08:00
httprunner
9e3b9c47cd search and filter module variables 2017-09-01 15:21:04 +08:00
httprunner
660549dc23 search expected function recursive upward 2017-08-31 12:25:36 +08:00
httprunner
b1f3ba34e8 separate get_imported_module 2017-08-31 11:06:11 +08:00
httprunner
4f154c5d88 relocate functions 2017-08-31 10:35:05 +08:00
httprunner
371fa8582b save testcase file path in testset config 2017-08-30 16:54:55 +08:00
httprunner
19a5580d34 filter if files do not include testcases 2017-08-30 12:18:32 +08:00
httprunner
cbb2dcdcb3 add match filter to load_foler_files 2017-08-30 12:15:44 +08:00
httprunner
5e7905e51c bugfix: numeric types should include long and complex 2017-08-29 18:10:55 +08:00
httprunner
953a1d54ca fix travis-ci job 152 2017-08-29 14:57:27 +08:00
httprunner
1080d620bd bugfix #34: handle exception when response content is empty 2017-08-29 14:44:44 +08:00
httprunner
accff05ce0 fix pep8 2017-08-23 15:42:47 +08:00
httprunner
2e9da796ef bugfix #31: comparator endswith 2017-08-22 17:51:31 +08:00
httprunner
73dd8128fa bugfix: Python2 does not support encoding parameter in open function; use codecs.open instead. 2017-08-17 21:56:43 +08:00
httprunner
78ac4049c1 bugfix: open file with utf-8 encoding 2017-08-17 17:15:41 +08:00
httprunner
dfba8143ee make comparator classified 2017-08-03 23:56:05 +08:00
httprunner
393fea8d84 bugfix: comparison with None should raise exception in Python 2.7 2017-08-02 16:44:51 +08:00
httprunner
74d653f94d bugfix: TypeError in match_expected 2017-08-02 15:21:37 +08:00
httprunner
4d471d7cda optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
httprunner
a18c7bc62f optimize exception type 2017-08-02 14:19:14 +08:00
httprunner
5267d4f5e5 restructure code: move code related to testcase from ate/utils.py to ate/testcase.py 2017-07-31 22:51:28 +08:00
httprunner
233978007e bugfix: when the bind value of variable is not in string type, it should be converted to string first, or it will raise TypeError in replace function 2017-07-31 21:04:19 +08:00
httprunner
c3856f7599 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +08:00
httprunner
16307e2ebe refactor mock server:
1, remove authentication switcher;
2, change authentication method: from verify request data's md5 to get token at the beginning.
2017-07-22 15:15:05 +08:00
httprunner
da04c8793e bugfix: variable name and function name could have _ 2017-07-20 12:24:44 +08:00
httprunner
fc6e4c8eef add match method: startswith 2017-07-05 15:14:10 +08:00
httprunner
3e8647e5fd deep_update_dict: update origin dict with override dict recursively 2017-07-04 18:28:08 +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
d941f3a3d5 parse functions: add support for variable argument 2017-07-04 15:17:45 +08:00
httprunner
f80ebdc511 add helpers to parse variable and functions 2017-07-04 14:45:03 +08:00
httprunner
ae151c3b09 match_expected comparator: add len_gt, len_lt, len_ge, len_le, etc. 2017-06-30 17:04:20 +08:00
httprunner
038a5d8aef bugfix: length equal 2017-06-30 16:57:56 +08:00
httprunner
d21f041437 match_expected: add comparator str_len/string_length 2017-06-29 17:32:49 +08:00
httprunner
387e5beeab bugfix: match_expected should raise ParamsError when comparator is not supported 2017-06-29 17:27:23 +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
246bf5e4e1 query_json: Do an xpath-like query with json_content. 2017-06-28 21:25:28 +08:00
httprunner
e538a86669 move response relevant code to ate/response.py 2017-06-28 15:29:40 +08:00
httprunner
93a9872a6c make variables marker unified to be 2017-06-27 23:56:59 +08:00
httprunner
dc1ea46036 load_testcases_by_path: make compatible with none exist path 2017-06-27 19:17:48 +08:00
httprunner
17d6fea218 load_testcases_by_path: ignore file path that is not JSON or YAML 2017-06-27 18:30:09 +08:00
httprunner
9da315620f update function doc strings 2017-06-27 16:14:31 +08:00
httprunner
0cdd1d9c1e load_testcases_by_path: testset has a config dict and a testcases list 2017-06-27 11:57:26 +08:00
httprunner
e7ca4f26fd load_testcases_by_path: return testcase sets list, each testset is corresponding to a file 2017-06-26 20:57:22 +08:00
httprunner
f2bc07ada5 load_testcases_by_path 2017-06-26 19:46:23 +08:00