httprunner
3e8647e5fd
deep_update_dict: update origin dict with override dict recursively
2017-07-04 18:28:08 +08:00
httprunner
99e5430206
bugfix: initialize context before each test
2017-07-04 17:37:47 +08:00
httprunner
8707b9c110
bugfix: correct kwargs key name
2017-07-04 17:05:17 +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
afff81ab6d
fix testcase name
2017-07-03 23:50:01 +08:00
httprunner
b294107bcb
specify logging level from CLI
2017-07-03 16:40:59 +08:00
httprunner
4bb6d3f526
set base_url in testset config.request
2017-07-03 16:33:44 +08:00
httprunner
efb3890973
change class name, TestRunner -> Runner
2017-07-03 16:03:37 +08:00
httprunner
e57e5d547c
change method name
2017-07-03 16:02:16 +08:00
httprunner
3c60bbfac3
HttpSession can be called with full url or with only path
2017-07-03 12:48:18 +08:00
httprunner
7fd0f715ca
move HttpNtlmAuth from runner to client
2017-07-03 12:13:56 +08:00
httprunner
9586915322
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
httprunner
562a028129
add test for get_eval_value
2017-07-01 22:31:49 +08:00
httprunner
7ce4603944
add test for get_parsed_request
2017-07-01 22:08:00 +08:00
httprunner
d9ca96aba6
add test for import_module_functions
2017-07-01 21:54:14 +08:00
httprunner
5dc5ca950d
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
httprunner
1dbd86efeb
add HttpNtlmAuth
2017-06-30 19:56:19 +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
434e82f95e
add support for import module custom functions
2017-06-30 13:24:00 +08:00
httprunner
80a775e97e
api_server: return JSON format if 403 occurred
2017-06-30 12:01:17 +08:00
httprunner
eff16d7232
we can set public filed in testset.config, and each testcase can inherit from it
2017-06-29 19:20:57 +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
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
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
638733d9b6
add entrance
2017-06-28 22:20:19 +08:00
httprunner
a2bf2f6ee1
apiserver: add interface /api/token
2017-06-28 22:19:01 +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
6438fe653a
bind_extractors: Bind named extractors to value within the context.
2017-06-28 21:38:43 +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
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
2391f54d2c
update doc string
2017-06-28 11:43:23 +08:00
httprunner
884462a767
add unittest: test_parse_content_with_variables
2017-06-28 00:02:44 +08:00
httprunner
93a9872a6c
make variables marker unified to be
2017-06-27 23:56:59 +08:00
httprunner
b0e11e6b9b
start entrance
2017-06-27 19:29:44 +08:00
httprunner
dc1ea46036
load_testcases_by_path: make compatible with none exist path
2017-06-27 19:17:48 +08:00
httprunner
db9f427088
change import mode
2017-06-27 18:46:14 +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
fde4901724
run_test: add doc string
2017-06-27 14:16:26 +08:00
httprunner
de218878d7
run_testsets: optimize testsets structure
2017-06-27 12:11:40 +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
e8845ba3ad
update coverage
2017-06-27 11:18:52 +08:00
httprunner
e9dfb03026
ignore .coverage
2017-06-26 22:12:50 +08:00
httprunner
99a6051c24
update coverage
2017-06-26 22:06:15 +08:00
httprunner
f1a2ec1397
coverage: replace codecov with coveralls
2017-06-26 21:47:57 +08:00
httprunner
a7155ce22a
add codecov
2017-06-26 21:16: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
c31a24d233
remove unused import
2017-06-26 16:22:39 +08:00
httprunner
378147a83b
TestRunner: testsets can be configured in public config
2017-06-26 15:47:45 +08:00
httprunner
5ac8491c2d
change testcase data structure, in order to distinguish config and test
2017-06-26 15:27:27 +08:00
httprunner
139036dbad
TestcaseParser: add update_variables_binds
2017-06-26 14:43:06 +08:00
httprunner
20d173ce9a
TestRunner: change method name
2017-06-26 11:58:07 +08:00
httprunner
967f2bbc3f
TestRunner: run testcase writen in separate template
2017-06-26 11:51:08 +08:00
httprunner
2fe161f82d
TestcaseParser: variable binds of testcase parser instance cat be updated.
2017-06-26 10:55:17 +08:00
httprunner
7396bcd853
Context: Manages binding of variables
2017-06-26 00:57:58 +08:00
httprunner
ae9750b4a0
TestcaseParser: parse testcase_template, replace all variables with bind value.
2017-06-25 23:33:49 +08:00
httprunner
6a578e7851
change demo testcase file name
2017-06-25 20:29:59 +08:00
httprunner
e81d682c50
gen_md5: pass in *args
2017-06-24 19:44:40 +08:00
httprunner
dc7d14439d
add testcases for TestRunner, with authentication enabled
2017-06-24 16:29:55 +08:00
httprunner
572b511130
change testcase name
2017-06-24 12:25:41 +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
ebed17d741
use utils.gen_md5 function to generate md5 value
2017-06-23 14:43:04 +08:00
httprunner
8c32d96c13
update README
2017-06-22 23:31:56 +08:00
httprunner
3e96ad0e8d
improve exception notification
2017-06-22 23:14:33 +08:00
httprunner
e833531e3c
move public functions to utils.py
2017-06-22 23:08:01 +08:00
httprunner
66f184e13f
ApiServer: add testcases for MD5 authentication
2017-06-22 19:51:50 +08:00
httprunner
567eec21fd
ApiServer: add support MD5 authentication
2017-06-22 18:37:48 +08:00
httprunner
50f5373c41
TestRunner: add testcase suite writen in YAML
2017-06-21 19:17:29 +08:00
httprunner
3b380bf464
TestRunner: run testcase suite
2017-06-21 18:43:15 +08:00
httprunner
3550f1debd
TestRunner: run single testcase
2017-06-21 18:26:02 +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
1bd2281be6
apiserver: get_customized_response, including status code and headers
2017-06-21 13:39:08 +08:00
httprunner
0304263931
apiserver: add get_response_with_headers
2017-06-21 13:19:31 +08:00
httprunner
9a18fd326d
diff http response: status code
2017-06-21 12:17:51 +08:00
httprunner
d5d73d70a9
apiserver: add get_response_with_status_code
2017-06-21 11:43:21 +08:00
httprunner
f07172c3d2
bugfix: make compatible with python 2.7/3.3/3.4
2017-06-20 21:04:00 +08:00
httprunner
50f120f9d7
bugfix: add PyYAML to requirements.txt
2017-06-20 20:52:28 +08:00
httprunner
e5d6ac7371
remove tox
2017-06-20 20:49:04 +08:00
httprunner
5f04f1be3a
add tox.ini
2017-06-20 20:42:25 +08:00
httprunner
06839ac51c
add travis badge
2017-06-20 20:37:21 +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
5383b1deea
create ApiServerUnittest for public use
2017-06-20 20:04:10 +08:00
httprunner
b45ef317cd
add requirements.txt
2017-06-20 19:48:55 +08:00