Commit Graph

13 Commits

Author SHA1 Message Date
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