Commit Graph

80 Commits

Author SHA1 Message Date
debugtalk
63c9d209e9 do not need to config extract_binds if only want to validate results 2017-06-29 17:19:06 +08:00
debugtalk
7e3f1bdcc8 validate response: check validators and variables_mapping 2017-06-29 16:36:59 +08:00
debugtalk
2a904ec36a add comparators 2017-06-29 16:13:20 +08:00
debugtalk
d065864e4b change method of checking python version 2017-06-29 15:39:14 +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
e5c934e8d2 add entrance 2017-06-28 22:20:19 +08:00
debugtalk
7f362385b6 apiserver: add interface /api/token 2017-06-28 22:19:01 +08:00
debugtalk
3d9777ba57 can only use parameter names (sep, maxsplit) in Python 3.x, not supported in Python2.x 2017-06-28 21:47:10 +08:00
debugtalk
be60e8f0c0 bind_extractors: Bind named extractors to value within the context. 2017-06-28 21:38:43 +08:00
debugtalk
6c32fd751b extract_response: extract content from requests.Response, and bind extracted value to context.extractors 2017-06-28 21:35:18 +08:00
debugtalk
83ca01c0b5 query_json: Do an xpath-like query with json_content. 2017-06-28 21:25:28 +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
12f20023b6 add unittest: test_parse_content_with_variables 2017-06-28 00:02:44 +08:00
debugtalk
887845493d make variables marker unified to be 2017-06-27 23:56:59 +08:00
debugtalk
baf2d1c8b6 start entrance 2017-06-27 19:29:44 +08:00
debugtalk
acdd5599a4 load_testcases_by_path: make compatible with none exist path 2017-06-27 19:17:48 +08:00
debugtalk
c42c915b6d change import mode 2017-06-27 18:46:14 +08:00
debugtalk
545911b679 load_testcases_by_path: ignore file path that is not JSON or YAML 2017-06-27 18:30:09 +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
cd63cd1c6a load_testcases_by_path: testset has a config dict and a testcases list 2017-06-27 11:57:26 +08:00
debugtalk
a8d6071e8a update coverage 2017-06-27 11:18:52 +08:00
debugtalk
a16d3fcd6a ignore .coverage 2017-06-26 22:12:50 +08:00
debugtalk
67838aae86 update coverage 2017-06-26 22:06:15 +08:00
debugtalk
93822fa11f coverage: replace codecov with coveralls 2017-06-26 21:47:57 +08:00
debugtalk
a7e0c69f8e add codecov 2017-06-26 21:16:26 +08:00
debugtalk
b5a61c8195 load_testcases_by_path: return testcase sets list, each testset is corresponding to a file 2017-06-26 20:57:22 +08:00
debugtalk
e269ce6671 load_testcases_by_path 2017-06-26 19:46:23 +08:00
debugtalk
8facc2d498 remove unused import 2017-06-26 16:22:39 +08:00
debugtalk
0e08f33667 TestRunner: testsets can be configured in public config 2017-06-26 15:47:45 +08:00
debugtalk
df6960a805 change testcase data structure, in order to distinguish config and test 2017-06-26 15:27:27 +08:00
debugtalk
298391324d TestcaseParser: add update_variables_binds 2017-06-26 14:43:06 +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
ea1291e6a9 TestcaseParser: variable binds of testcase parser instance cat be updated. 2017-06-26 10:55:17 +08:00
debugtalk
75d06aecca Context: Manages binding of variables 2017-06-26 00:57:58 +08:00
debugtalk
4d9ca255cd TestcaseParser: parse testcase_template, replace all variables with bind value. 2017-06-25 23:33:49 +08:00
debugtalk
b0c188ce51 change demo testcase file name 2017-06-25 20:29:59 +08:00
debugtalk
52bc344f66 gen_md5: pass in *args 2017-06-24 19:44:40 +08:00
debugtalk
4ac2462881 add testcases for TestRunner, with authentication enabled 2017-06-24 16:29:55 +08:00
debugtalk
088b118a92 change testcase name 2017-06-24 12:25:41 +08:00
debugtalk
b90dabf151 bugfix: In Python3, convert request.data(bytes) to str first 2017-06-24 12:13:27 +08:00
debugtalk
db68c394e8 handle_req_data: sort data with keys if request data is json type 2017-06-24 11:19:20 +08:00
debugtalk
d5e02d3319 use utils.gen_md5 function to generate md5 value 2017-06-23 14:43:04 +08:00
debugtalk
ee564ddacf update README 2017-06-22 23:31:56 +08:00