Commit Graph
60 Commits
Author SHA1 Message Date
httprunner 0ac4ed4bc8 fix: handle the case when variable_binds is OrderedDict or some other data structure 2017-09-20 22:14:52 +08:00
httprunner ffed8c38a2 lower_config_dict_key: add test for config['request'] is not dict 2017-09-20 21:17:20 +08:00
httprunner cf6c7e1a76 bugfix: keys that are not in 'request' of config shall not be lower cased 2017-09-20 21:14:14 +08:00
httprunner dc673a0d19 bugfix: substitute_variables_with_mapping, handle when value is None, bool, empty string 2017-09-20 19:55:25 +08:00
httprunner 07daa2b781 bugfix: UnicodeEncodeError when value is in Chinese 2017-09-20 15:01:19 +08:00
httprunner b679a1514d make ApiTestSuite class to hold ApiTestCase 2017-09-19 23:33:09 +08:00
httprunner 6085dd407d refactor handling binds data structure 2017-09-19 18:10:54 +08:00
httprunner c53ff6992b make extract_response return as ordered dict 2017-09-19 18:05:12 +08:00
httprunner 041152c00f run_testset: add variables_mapping parameter 2017-09-19 17:07:07 +08:00
httprunner 4197ed26ca add output:
1, change return value of running testset;
2, print extracted variables at the end of testset.
2017-09-19 15:24:11 +08:00
httprunner 1262d92816 subsititue api call args 2017-09-18 21:53:22 +08:00
httprunner 8c05afaed5 bugfix: adjust functions location to avoid cross reference 2017-09-18 16:01:19 +08:00
httprunner cb2555291c new feature: testcases can be layered, now we can define interface in api block individually 2017-09-18 15:21:50 +08:00
httprunner 999625635d refactor load_folder_files: change filter behavior 2017-09-18 11:45:12 +08:00
httprunner 62fbe7759f strip from extracted function 2017-09-14 20:54:19 +08:00
httprunner 93d4a78210 lower testcase key 2017-09-13 16:17:21 +08:00
httprunner 8d568d9e0d request in config should also be parsed 2017-09-12 22:32:52 +08:00
httprunner 09d58818e7 bugfix: when binding variable is None, it should be None other than raise ParamsError" 2017-09-12 17:10:04 +08:00
httprunner 78b1dec782 search variables in debugtalk.py recursively upward 2017-09-12 17:08:39 +08:00
luowentao 2b95289bea refactor: fix typos 2017-09-11 20:44:57 +08:00
httprunner eb4dcb64a3 add setup and teardown block, in these blocks, we can exec functions such as sleep 2017-09-05 10:25:22 +08:00
httprunner 1013971cf9 hot plugin support: search variables recursive upward from testset file 2017-09-04 11:22:43 +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 6c39b07b0f get bind functions from upward searched debugtalk.py 2017-08-31 12:46:38 +08:00
httprunner 660549dc23 search expected function recursive upward 2017-08-31 12:25:36 +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 34d0c6a1e8 rename fixture module name 2017-08-29 22:12:08 +08:00
httprunner 70bdbb90e1 #36: add debugtalk.py local per-directory plugins 2017-08-29 21:33:02 +08:00
httprunner d3a068cb6d prepare_kwargs: reference kwargs do not need to return 2017-08-29 15:17:52 +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 4ca827ada6 if request content-type is application/json, request data should be dumped 2017-08-28 19:18:06 +08:00
httprunner c606bf373b convert keys in request headers to lowercase 2017-08-28 18:52:55 +08:00
httprunner 20677b8731 refactor ate/testcase.py: organise code with TestcaseParser, reduce passing parameters 2017-08-25 21:10:34 +08:00
httprunner fdb08e978d fix #33: invoke functions in url 2017-08-25 20:08:58 +08:00
httprunner 2e9da796ef bugfix #31: comparator endswith 2017-08-22 17:51:31 +08:00
httprunner dfba8143ee make comparator classified 2017-08-03 23:56:05 +08:00
httprunner 5485b5a532 Merge pull request #14 from diaojunxian/master
bugfix: add maxreplace=1 to avoid similar variables are replaced by mistaken.
For instance, if user=1000, then "/$user/$userid" will be replaced to be "/1000/1000id".
2017-08-03 13:34:29 +08:00
httprunner bfc18b38a3 bugfix: when a variable binds to None, it should not raise exception 2017-08-03 12:02:37 +08:00
diaojunxian 249cf0dc9b fix bug|>update parse_variables and add testcase test_parse_variables_multiple_identical_variables 2017-08-03 11:10:36 +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 cd27f325eb optimize response validation 2017-08-02 13:33:07 +08:00
httprunner 5829e8d21b call function anywhere in testcase 2017-08-01 11:33:31 +08:00
httprunner 0c2f48a6fe simplify tests 2017-07-31 22:57:00 +08:00