Commit Graph

30 Commits

Author SHA1 Message Date
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
5e89c279cd refactor: adjust code location 2017-09-12 19:34:37 +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
9e3b9c47cd search and filter module variables 2017-09-01 15:21:04 +08:00
httprunner
d9ecc3f3f7 rename built-in file name 2017-08-31 14:20:42 +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
70bdbb90e1 #36: add debugtalk.py local per-directory plugins 2017-08-29 21:33:02 +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
533ff9198a bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +08:00
httprunner
c3856f7599 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +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
43bb240da9 make custom module importable anywhere 2017-07-20 10:32:58 +08:00
httprunner
7109911ad9 bugfix: make compatible with None field in testcase 2017-07-14 15:41:44 +08:00
httprunner
af09573119 bugfix: update testset request config with testcase request config recursively 2017-07-04 18:29:24 +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
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
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
434e82f95e add support for import module custom functions 2017-06-30 13:24:00 +08:00
httprunner
67a5de3575 refactor: add extract_binds and validators 2017-06-29 15:27:26 +08:00
httprunner
6438fe653a bind_extractors: Bind named extractors to value within the context. 2017-06-28 21:38:43 +08:00
httprunner
93a9872a6c make variables marker unified to be 2017-06-27 23:56:59 +08:00
httprunner
7396bcd853 Context: Manages binding of variables 2017-06-26 00:57:58 +08:00