Commit Graph

17 Commits

Author SHA1 Message Date
debugtalk
94f3bfc00b bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +08:00
debugtalk
460dd557d8 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +08:00
debugtalk
8c58e87fd8 bugfix: testset_shared_variables_mapping should be OrderedDict 2017-07-21 17:04:27 +08:00
debugtalk
d90c6165f2 change context variable name 2017-07-21 09:26:33 +08:00
debugtalk
f41729094a 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
debugtalk
9e154cea97 make custom module importable anywhere 2017-07-20 10:32:58 +08:00
debugtalk
c87a2f52af bugfix: make compatible with None field in testcase 2017-07-14 15:41:44 +08:00
debugtalk
7fbacea3c2 bugfix: update testset request config with testcase request config recursively 2017-07-04 18:29:24 +08:00
debugtalk
d881b8e632 bugfix: correct kwargs key name 2017-07-04 17:05:17 +08:00
debugtalk
29b660b3db 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
debugtalk
ba64e82947 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
debugtalk
dc7a4b69bc 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
debugtalk
20f2e6b943 add support for import module custom functions 2017-06-30 13:24:00 +08:00
debugtalk
6854607cf0 refactor: add extract_binds and validators 2017-06-29 15:27:26 +08:00
debugtalk
be60e8f0c0 bind_extractors: Bind named extractors to value within the context. 2017-06-28 21:38:43 +08:00
debugtalk
887845493d make variables marker unified to be 2017-06-27 23:56:59 +08:00
debugtalk
75d06aecca Context: Manages binding of variables 2017-06-26 00:57:58 +08:00