Commit Graph

48 Commits

Author SHA1 Message Date
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
479f0e5860 refactor load_folder_files: change filter behavior 2017-09-18 11:45:12 +08:00
debugtalk
8f73e11f49 strip from extracted function 2017-09-14 20:54:19 +08:00
debugtalk
83bcc27133 lower testcase key 2017-09-13 16:17:21 +08:00
debugtalk
0e601c1865 request in config should also be parsed 2017-09-12 22:32:52 +08:00
debugtalk
089ffa122d bugfix: when binding variable is None, it should be None other than raise ParamsError" 2017-09-12 17:10:04 +08:00
debugtalk
80e05e6c39 search variables in debugtalk.py recursively upward 2017-09-12 17:08:39 +08:00
luowentao
7bffdda3aa refactor: fix typos 2017-09-11 20:44:57 +08:00
debugtalk
cd6e742808 add setup and teardown block, in these blocks, we can exec functions such as sleep 2017-09-05 10:25:22 +08:00
debugtalk
082a2711e9 hot plugin support: search variables recursive upward from testset file 2017-09-04 11:22:43 +08:00
debugtalk
77047f3671 bugfix: imported module should not be considered as variable 2017-09-01 19:01:34 +08:00
debugtalk
83ee357ade search and filter module variables 2017-09-01 15:21:04 +08:00
debugtalk
47e06b9c27 get bind functions from upward searched debugtalk.py 2017-08-31 12:46:38 +08:00
debugtalk
f9aaffce0e search expected function recursive upward 2017-08-31 12:25:36 +08:00
debugtalk
c16120e2aa save testcase file path in testset config 2017-08-30 16:54:55 +08:00
debugtalk
bf117b671c filter if files do not include testcases 2017-08-30 12:18:32 +08:00
debugtalk
8e9e9d6c57 add match filter to load_foler_files 2017-08-30 12:15:44 +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
df2f90a4f4 prepare_kwargs: reference kwargs do not need to return 2017-08-29 15:17:52 +08:00
debugtalk
68622f7843 fix travis-ci job 152 2017-08-29 14:57:27 +08:00
debugtalk
223cb20f72 bugfix #34: handle exception when response content is empty 2017-08-29 14:44:44 +08:00
debugtalk
530f5bc89c if request content-type is application/json, request data should be dumped 2017-08-28 19:18:06 +08:00
debugtalk
94a55827e7 convert keys in request headers to lowercase 2017-08-28 18:52:55 +08:00
debugtalk
4722c6ec86 refactor ate/testcase.py: organise code with TestcaseParser, reduce passing parameters 2017-08-25 21:10:34 +08:00
debugtalk
e6dcbd95fb fix #33: invoke functions in url 2017-08-25 20:08:58 +08:00
debugtalk
2212226662 bugfix #31: comparator endswith 2017-08-22 17:51:31 +08:00
debugtalk
4697a53820 make comparator classified 2017-08-03 23:56:05 +08:00
debugtalk
58c573cf65 Merge pull request #14 from diaojunxian/master
bugfix: add maxreplace=1 to avoid similar variables are replaced by mistaken.
For instance, if user=1000, then "/$user/$userid" will be replaced to be "/1000/1000id".
2017-08-03 13:34:29 +08:00
debugtalk
02dc813779 bugfix: when a variable binds to None, it should not raise exception 2017-08-03 12:02:37 +08:00
diaojunxian
e49ebb7e9a fix bug|>update parse_variables and add testcase test_parse_variables_multiple_identical_variables 2017-08-03 11:10:36 +08:00
debugtalk
e40056cb4f bugfix: comparison with None should raise exception in Python 2.7 2017-08-02 16:44:51 +08:00
debugtalk
14e744c962 bugfix: TypeError in match_expected 2017-08-02 15:21:37 +08:00
debugtalk
57b1f35e4d optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
debugtalk
0dd18466b3 optimize exception type 2017-08-02 14:19:14 +08:00
debugtalk
297dabca60 optimize response validation 2017-08-02 13:33:07 +08:00
debugtalk
1535351548 call function anywhere in testcase 2017-08-01 11:33:31 +08:00
debugtalk
5f6181f156 simplify tests 2017-07-31 22:57:00 +08:00
debugtalk
6cc2fde85d restructure code: move code related to testcase from ate/utils.py to ate/testcase.py 2017-07-31 22:51:28 +08:00
debugtalk
94f3bfc00b bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +08:00
debugtalk
13a53681ed 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
debugtalk
65ae5b83df #9: add unittest for string with multiple identical variables 2017-07-31 16:01:14 +08:00
debugtalk
460dd557d8 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +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
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
31c73d036e rename test folder to tests 2017-07-20 11:18:09 +08:00