Commit Graph

28 Commits

Author SHA1 Message Date
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
httprunner
e81d682c50 gen_md5: pass in *args 2017-06-24 19:44:40 +08:00
httprunner
9221265d32 bugfix: In Python3, convert request.data(bytes) to str first 2017-06-24 12:13:27 +08:00
httprunner
8339b7f2ab handle_req_data: sort data with keys if request data is json type 2017-06-24 11:19:20 +08:00
httprunner
e833531e3c move public functions to utils.py 2017-06-22 23:08:01 +08:00
httprunner
b72725e139 diff http response: body 2017-06-21 17:20:50 +08:00
httprunner
908a2e522a change varaible name: response content => response body 2017-06-21 16:03:12 +08:00
httprunner
5e03acba5f diff http response: headers 2017-06-21 15:56:01 +08:00
httprunner
9a18fd326d diff http response: status code 2017-06-21 12:17:51 +08:00
httprunner
f07172c3d2 bugfix: make compatible with python 2.7/3.3/3.4 2017-06-20 21:04:00 +08:00
httprunner
5834594d6c parse_response_object: load response content as json format if possible 2017-06-20 20:24:38 +08:00
httprunner
fdc7824de5 add parse_response_object 2017-06-20 20:06:36 +08:00
httprunner
0fd8f95e34 utils: testcases loader 2017-06-20 19:43:44 +08:00