Commit Graph

36 Commits

Author SHA1 Message Date
debugtalk
261169b70e refactor compatibility, learned from requests 2018-03-25 21:19:23 +08:00
debugtalk
0568debaf1 refactor parameterization:
1, support parameters in test block;
2, refactor parameterization code.
2018-03-08 19:35:42 +08:00
debugtalk
f53baaf757 refactor parameterization:
parameter value now can be in three types:
(1) data list
(2) call built-in parameterize function
(3) call custom function in debugtalk.py
2018-03-07 16:21:51 +08:00
debugtalk
f1cac82a15 #106: support builtin functions 2018-02-28 23:56:10 +08:00
debugtalk
56cf359810 new feature: support parameters and data driven 2018-02-15 22:53:56 +08:00
debugtalk
3936b82a52 #96: skip unless condition 2018-02-08 22:36:30 +08:00
debugtalk
c504f305f1 #96: refactor skip feature:
1, with skip keyword, skip current test unconditionally;
2, with skipIf keyword, you can skip current test with condition; condition evaluation can be defined in debugtalk.py function.
2018-02-08 15:59:17 +08:00
debugtalk
177856c37c bugfix #96 skip feature: display skip testcases number corretly 2018-02-08 12:55:23 +08:00
debugtalk
4fbc414e87 refactor run times: display test statistics correctly with run times setting 2018-02-08 12:24:53 +08:00
debugtalk
c40a208024 fix #84: type_match invalid 2018-01-17 12:49:02 +08:00
debugtalk
124cbe8102 #78: merge validators in test with api validators 2018-01-16 19:28:07 +08:00
debugtalk
921edae7d3 fix #64: when headers in test is None, it should inherit from config 2017-12-23 12:41:00 +08:00
debugtalk
f522fd11aa update tests for custom validator 2017-12-13 16:29:42 +08:00
debugtalk
3f3b0f1ea7 #52: validator expect field support reference variable 2017-12-13 01:22:43 +08:00
debugtalk
cd89157fa6 validator: check item support reference variable 2017-12-13 01:12:57 +08:00
debugtalk
d079f014d9 #29: refactor validator:
1, relocate validate functions;
2, add unittest for custom defined validators.
2017-12-12 23:59:54 +08:00
debugtalk
be6502cd63 support new validator format, e.g. {'eq': ['status_code', 200]} 2017-12-12 12:08:55 +08:00
debugtalk
3af67a31cc validate: set expect as alias for expected 2017-11-13 20:56:46 +08:00
debugtalk
0158e98c8b rename validators to validate 2017-11-01 14:43:28 +08:00
debugtalk
9bd28653f6 rename extractor/extractors to extract 2017-11-01 14:30:36 +08:00
debugtalk
388a6da23a rename keyword: variable_binds => variables 2017-10-24 15:59:09 +08:00
debugtalk
7b64b8233b rename keyword: extract_binds => extractors 2017-10-24 15:40:59 +08:00
debugtalk
e592b98dd9 update tests 2017-09-28 22:57:25 +08:00
debugtalk
7aefc7a13b refactor api loading behavior: api should be located in /tests/api/ folder 2017-09-21 20:54:06 +08:00
debugtalk
3792da8105 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
debugtalk
4126b99862 subsititue api call args 2017-09-18 21:53:22 +08:00
debugtalk
cd20b0a8dc new feature: testcases can be layered, now we can define interface in api block individually 2017-09-18 15:21:50 +08:00
debugtalk
0e601c1865 request in config should also be parsed 2017-09-12 22:32:52 +08:00
debugtalk
082a2711e9 hot plugin support: search variables recursive upward from testset file 2017-09-04 11:22:43 +08:00
debugtalk
7f4c565fcb rename fixture module name 2017-08-29 22:12:08 +08:00
debugtalk
46dcd195d0 #36: add debugtalk.py local per-directory plugins 2017-08-29 21:33:02 +08:00
debugtalk
1535351548 call function anywhere in testcase 2017-08-01 11:33:31 +08:00
debugtalk
9cca73155c update demo testset: change position of variable binds 2017-07-23 11:29:48 +08:00
debugtalk
f94f57d102 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
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
31c73d036e rename test folder to tests 2017-07-20 11:18:09 +08:00