Commit Graph

34 Commits

Author SHA1 Message Date
debugtalk
57b1f35e4d optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
debugtalk
abb1882ca6 specify run times in testcase 2017-07-27 14:44:32 +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
8e3aa461aa optimize Runner initialization 2017-07-07 14:49:17 +08:00
debugtalk
da191032b1 bugfix: initialize context before each test 2017-07-04 17:37:47 +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
f833fe9143 set base_url in testset config.request 2017-07-03 16:33:44 +08:00
debugtalk
6887bb7c08 change class name, TestRunner -> Runner 2017-07-03 16:03:37 +08:00
debugtalk
f6477fd6be change method name 2017-07-03 16:02:16 +08:00
debugtalk
e46c376674 HttpSession can be called with full url or with only path 2017-07-03 12:48:18 +08:00
debugtalk
f32578bbb8 move HttpNtlmAuth from runner to client 2017-07-03 12:13:56 +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
da445df78b add HttpNtlmAuth 2017-06-30 19:56:19 +08:00
debugtalk
20f2e6b943 add support for import module custom functions 2017-06-30 13:24:00 +08:00
debugtalk
c3ce0c53fd we can set public filed in testset.config, and each testcase can inherit from it 2017-06-29 19:20:57 +08:00
debugtalk
cd4e635d83 change validators from dict to list, as there may be several tests on one filed 2017-06-29 18:15:28 +08:00
debugtalk
63c9d209e9 do not need to config extract_binds if only want to validate results 2017-06-29 17:19:06 +08:00
debugtalk
6854607cf0 refactor: add extract_binds and validators 2017-06-29 15:27:26 +08:00
debugtalk
997e9d642b extract_response when initialize ResponseObject 2017-06-28 23:35:56 +08:00
debugtalk
207998a2f5 change method name 2017-06-28 23:25:08 +08:00
debugtalk
c3d975133e create ResponseObject, each test result will be associated with a ResponseObject 2017-06-28 23:08:17 +08:00
debugtalk
be60e8f0c0 bind_extractors: Bind named extractors to value within the context. 2017-06-28 21:38:43 +08:00
debugtalk
4250992ad9 move response relevant code to ate/response.py 2017-06-28 15:29:40 +08:00
debugtalk
fbb7df5826 update doc string 2017-06-28 11:43:23 +08:00
debugtalk
2531cc3920 update function doc strings 2017-06-27 16:14:31 +08:00
debugtalk
5092e113d2 run_test: add doc string 2017-06-27 14:16:26 +08:00
debugtalk
a30025e39c run_testsets: optimize testsets structure 2017-06-27 12:11:40 +08:00
debugtalk
0e08f33667 TestRunner: testsets can be configured in public config 2017-06-26 15:47:45 +08:00
debugtalk
668e17d45a TestRunner: change method name 2017-06-26 11:58:07 +08:00
debugtalk
56c2f0decf TestRunner: run testcase writen in separate template 2017-06-26 11:51:08 +08:00
debugtalk
4267e369c5 improve exception notification 2017-06-22 23:14:33 +08:00
debugtalk
fc7ded4046 TestRunner: run testcase suite 2017-06-21 18:43:15 +08:00
debugtalk
1965a7ddce TestRunner: run single testcase 2017-06-21 18:26:02 +08:00