Commit Graph
100 Commits
Author SHA1 Message Date
httprunner 393fea8d84 bugfix: comparison with None should raise exception in Python 2.7 2017-08-02 16:44:51 +08:00
httprunner dd488bd48e add parser argument failfast 2017-08-02 15:34: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 a55672e612 remove termcolor 2017-08-02 11:37:40 +08:00
httprunner f15cea51de update testcase example 2017-08-01 14:59:59 +08:00
httprunner 5829e8d21b call function anywhere in testcase 2017-08-01 11:33:31 +08:00
httprunner 60ef698ee6 update version to 0.3.0 2017-07-31 22:59:04 +08:00
httprunner 0c2f48a6fe simplify tests 2017-07-31 22:57:00 +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 5030a91a9d update README 2017-07-31 22:27:02 +08:00
httprunner 533ff9198a bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +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 46fe02a6cd #9: add unittest for string with multiple identical variables 2017-07-31 16:01:14 +08:00
httprunner c3856f7599 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +08:00
httprunner fab235ffe0 fix typo error 2017-07-27 21:12:10 +08:00
httprunner 4de4cfe3a3 specify run times in testcase 2017-07-27 14:44:32 +08:00
httprunner 0ce8a3f573 update README: add Upgrade description 2017-07-25 10:44:29 +08:00
httprunner 137b381957 Stop the test run on the first error or failure. 2017-07-24 22:16:15 +08:00
httprunner 7901a8e26a update tag to 0.2.2 2017-07-24 18:16:07 +08:00
httprunner 804c488e35 update docs 2017-07-23 22:00:03 +08:00
httprunner b8e7e4c0e8 fix spelling error 2017-07-23 21:12:30 +08:00
httprunner dcdc59e712 convert docs/FAQ to English 2017-07-23 12:45:11 +08:00
httprunner f3e989801b change docs file name 2017-07-23 12:30:25 +08:00
httprunner 2d2b884cb1 README: add design philosopy 2017-07-23 12:15:22 +08:00
httprunner 541037be80 Convert README from Chinese to English. 2017-07-23 11:55:23 +08:00
httprunner 0674d6ab33 update demo testset: change position of variable binds 2017-07-23 11:29:48 +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 5e59951e73 bugfix: testset_shared_variables_mapping should be OrderedDict 2017-07-21 17:04:27 +08:00
httprunner 68a00bcc0d change context variable name 2017-07-21 09:26:33 +08:00
httprunner 4849a25ea2 refactor variable context:
1, variable context has two level, testset and testcase;
2, testset level variables can be used in whole test suite, while testcase level variables can only be used in testcase;
3, when variable binds with functions, the funtions will be called and the result will be set to the variable.
2017-07-20 22:43:18 +08:00
httprunner da04c8793e bugfix: variable name and function name could have _ 2017-07-20 12:24:44 +08:00
httprunner 95649800e1 rename test folder to tests 2017-07-20 11:18:09 +08:00
httprunner 7f88efd866 add FAQ for installing 2017-07-20 11:08:59 +08:00
httprunner f30ea4ae83 remove testcases folder 2017-07-20 10:49:58 +08:00
httprunner 43bb240da9 make custom module importable anywhere 2017-07-20 10:32:58 +08:00
httprunner 031727c613 change method to specify testset path 2017-07-19 23:29:29 +08:00
httprunner 2652362185 add command argument: show version 2017-07-19 21:24:37 +08:00
httprunner 15c337f201 : 2017-07-19 19:18:02 +08:00
httprunner aaeffeb14f add setup 2017-07-19 19:10:11 +08:00
httprunner e3f4249f53 change with PyUnitReport 2017-07-19 19:06:02 +08:00
httprunner 4d1c78354f split ate/main.py to ate/cli.py and ate/task.py 2017-07-19 15:49:15 +08:00
httprunner d5bd14c4bc update README 2017-07-18 12:24:51 +08:00
httprunner e0c00ca326 add report_name argument to specify report name, if not specified, use current time as default 2017-07-17 18:36:23 +08:00
httprunner fa4b542763 change HtmlTestRunner to PyUnitReport 2017-07-14 18:22:03 +08:00
httprunner a99d1aeb37 set testcase filename as output folder name 2017-07-14 17:34:05 +08:00
httprunner 1faff11de4 Merge branch 'master' of https://github.com/debugtalk/ApiTestEngine 2017-07-14 15:42:40 +08:00
httprunner 7109911ad9 bugfix: make compatible with None field in testcase 2017-07-14 15:41:44 +08:00
httprunner 318f5b4130 add custom functions: gen_urlencode_str, get_timestamp 2017-07-14 15:16:47 +08:00
httprunner 7f5bb322fb Merge pull request #6 from debugtalk/test-report
generate html test report with HtmlTestRunner
2017-07-14 12:49:46 +08:00
httprunner a06c61a883 generate html test report with HtmlTestRunner 2017-07-14 12:44:44 +08:00
httprunner 37d08ac2f9 update README 2017-07-11 17:24:10 +08:00
httprunner 3c95c7dc16 update README 2017-07-10 12:26:10 +08:00
httprunner 952d682dbb optimize Runner initialization 2017-07-07 14:49:17 +08:00
httprunner fc6e4c8eef add match method: startswith 2017-07-05 15:14:10 +08:00
httprunner af09573119 bugfix: update testset request config with testcase request config recursively 2017-07-04 18:29:24 +08:00
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