Commit Graph

37 Commits

Author SHA1 Message Date
httprunner
02fa6050dd add testcase file path check 2017-11-02 12:03:05 +08:00
httprunner
eac1173cd7 add testcase content check 2017-11-02 11:49:43 +08:00
httprunner
ed9079c495 TestcaseParser: rename function name, bind_variables => update_binded_variables 2017-11-01 16:42:52 +08:00
httprunner
9908718963 rename TestcaseParser argument name: functions_binds => functions 2017-10-24 16:08:09 +08:00
httprunner
9e17282f3b rename TestcaseParser argument name: variables_binds => variables 2017-10-24 16:06:37 +08:00
httprunner
675ffc63fe add testcases cache in load_testcases_by_path 2017-09-26 11:32:32 +08:00
httprunner
8fb3e0b73a support run test suites set file 2017-09-24 14:09:25 +08:00
httprunner
103dc8d724 rename functions 2017-09-22 14:31:23 +08:00
httprunner
834600bb41 adjust code structure 2017-09-22 11:48:29 +08:00
httprunner
6ef46224f6 refactor api loading behavior: api should be located in /tests/api/ folder 2017-09-21 20:54:06 +08:00
httprunner
dc673a0d19 bugfix: substitute_variables_with_mapping, handle when value is None, bool, empty string 2017-09-20 19:55:25 +08:00
httprunner
6b3da70e06 load_testcases_by_path: add file_type parameter 2017-09-19 11:34:52 +08:00
httprunner
f19bfad128 adjust function name and variable name 2017-09-18 22:51:58 +08:00
httprunner
1262d92816 subsititue api call args 2017-09-18 21:53:22 +08:00
httprunner
8c05afaed5 bugfix: adjust functions location to avoid cross reference 2017-09-18 16:01:19 +08:00
httprunner
62fbe7759f strip from extracted function 2017-09-14 20:54:19 +08:00
httprunner
09d58818e7 bugfix: when binding variable is None, it should be None other than raise ParamsError" 2017-09-12 17:10:04 +08:00
httprunner
78b1dec782 search variables in debugtalk.py recursively upward 2017-09-12 17:08:39 +08:00
httprunner
9e3b9c47cd search and filter module variables 2017-09-01 15:21:04 +08:00
httprunner
6c39b07b0f get bind functions from upward searched debugtalk.py 2017-08-31 12:46:38 +08:00
httprunner
5e7905e51c bugfix: numeric types should include long and complex 2017-08-29 18:10:55 +08:00
httprunner
20677b8731 refactor ate/testcase.py: organise code with TestcaseParser, reduce passing parameters 2017-08-25 21:10:34 +08:00
httprunner
fdb08e978d fix #33: invoke functions in url 2017-08-25 20:08:58 +08:00
httprunner
bcbc4df24f bugfix #32: fix docstring 2017-08-25 15:18:03 +08:00
httprunner
5485b5a532 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
httprunner
bfc18b38a3 bugfix: when a variable binds to None, it should not raise exception 2017-08-03 12:02:37 +08:00
diaojunxian
249cf0dc9b fix bug|>update parse_variables and add testcase test_parse_variables_multiple_identical_variables 2017-08-03 11:10:36 +08:00
httprunner
5267d4f5e5 restructure code: move code related to testcase from ate/utils.py to ate/testcase.py 2017-07-31 22:51:28 +08:00
httprunner
533ff9198a bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +08:00
httprunner
16307e2ebe 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
httprunner
17bf07f012 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
httprunner
67a5de3575 refactor: add extract_binds and validators 2017-06-29 15:27:26 +08:00
httprunner
2391f54d2c update doc string 2017-06-28 11:43:23 +08:00
httprunner
93a9872a6c make variables marker unified to be 2017-06-27 23:56:59 +08:00
httprunner
139036dbad TestcaseParser: add update_variables_binds 2017-06-26 14:43:06 +08:00
httprunner
2fe161f82d TestcaseParser: variable binds of testcase parser instance cat be updated. 2017-06-26 10:55:17 +08:00
httprunner
ae9750b4a0 TestcaseParser: parse testcase_template, replace all variables with bind value. 2017-06-25 23:33:49 +08:00