Commit Graph

350 Commits

Author SHA1 Message Date
debugtalk
eda555f1b6 support new variable notation: ${var} 2019-04-17 18:20:38 +08:00
debugtalk
7a89a726b9 use $$ to escape $ notation 2019-04-17 16:22:42 +08:00
debugtalk
c7def0d902 fix: escape '{' and '}' 2019-04-17 15:29:13 +08:00
debugtalk
336bdeeee2 fix: match duplicate variable/function in raw string
e.g.

"ABC${func1($var_1, $var_3)}$var_1--${func1($var_1, $var_3)}$var_1"
2019-04-17 15:17:45 +08:00
debugtalk
f0f3061538 fix: match duplicate variable/function in raw string
e.g.

"ABC$var_1/123$var_1/456"
"ABC${func1($var_1, $var_3)}--${func1($var_1, $var_3)}"
2019-04-17 15:12:57 +08:00
debugtalk
75aa036548 support both "validate" and "validators" 2019-04-11 12:30:08 +08:00
debugtalk
e58e87befe refactor upload files with requests-toolbelt:
1, Simplify usage syntax;
2, support upload multiple fields.
2019-04-11 12:25:20 +08:00
debugtalk
e1edb896eb fix: pass output variables between testcases 2019-04-10 15:35:53 +08:00
debugtalk
5a021eb674 fix: dead circle in parse_variables_mapping 2019-04-09 21:39:32 +08:00
debugtalk
233f54d315 remove project_mapping from parse_tests result 2019-04-08 20:52:14 +08:00
debugtalk
3dc5aa738b prepare_locust_tests: remove functions 2019-04-08 14:51:38 +08:00
debugtalk
4a478f55d0 relocate build url with base_url 2019-04-08 14:11:49 +08:00
debugtalk
3d1c7f368c feat: implement lazy parser for validators 2019-04-08 12:12:09 +08:00
debugtalk
c6f41b84e6 fix unittest 2019-04-04 15:36:58 +08:00
debugtalk
d7b76b2fcc feat: implement lazy parser 2019-04-04 01:21:08 +08:00
debugtalk
e8c5e54eb2 remove unused code: substitute_variables 2019-03-22 16:09:04 +08:00
debugtalk
deeff67f65 fix unittest 2019-03-19 12:29:14 +08:00
debugtalk
f7cfca738b remove unused code 2019-03-18 16:11:07 +08:00
hluguoj
f958b39b22 bugfix:解决validate为空时沿用上一个接口的validate问题 2019-03-18 15:36:26 +08:00
debugtalk
6c76f2d8b4 fix compatibility in Python version < 3.6 2019-03-04 20:23:34 +08:00
debugtalk
ac70488ee2 fix: xss in response json 2019-03-04 19:34:49 +08:00
debugtalk
972c878d19 implement method to get variables and output 2019-03-01 10:32:58 +08:00
debugtalk
15b479ce55 Merge branch 'master' into bugfix/random-run-many-times 2019-02-28 15:33:27 +08:00
debugtalk
92474887d6 bugfix verify priority: nested testcase config > testcase config 2019-02-28 15:22:08 +08:00
hluguoj
8d511ceb16 bugfix random function in config variables run many times 2019-02-27 21:21:11 +08:00
debugtalk
010109d5b9 add unittest for verify 2019-02-24 20:04:07 +08:00
debugtalk
c2247fdbff fix testcase: add base_url 2019-02-24 19:38:32 +08:00
debugtalk
73dcded823 bugfix verify priority: teststep > config 2019-02-24 19:37:59 +08:00
debugtalk
d0308bbf51 change test filename 2019-02-24 18:12:55 +08:00
debugtalk
56ca99a6e8 remove unused unittest 2019-02-24 18:07:11 +08:00
debugtalk
708d26ee83 update modify_request_json 2019-02-20 11:51:30 +08:00
debugtalk
d3c3732516 bugfix: skip undefined variable when parsing string content 2019-01-17 18:40:46 +08:00
debugtalk
17138dff98 update unittest 2019-01-17 16:52:34 +08:00
debugtalk
d568059ffc bugfix: extend_variables 2018-12-28 14:35:20 +08:00
debugtalk
61b4b62765 update report: add testcase stat to summary 2018-12-28 12:03:58 +08:00
debugtalk
162b0fa96e fix unittest 2018-12-27 17:12:47 +08:00
debugtalk
7d422be10e remove unused files 2018-12-27 17:04:38 +08:00
debugtalk
9e68daa929 update prepare_locust_tests 2018-12-27 16:50:31 +08:00
debugtalk
850b9972fd update unittest for api base_url 2018-12-27 16:39:37 +08:00
debugtalk
6d71079536 add unittest 2018-12-27 15:33:14 +08:00
debugtalk
6a68207aa9 fix: run api folder, each api should be encapsulated as individual testcase 2018-12-24 12:24:30 +08:00
debugtalk
de53da5962 fix unittest for Python 2.7/3.4/3.5 2018-12-22 23:26:50 +08:00
debugtalk
4090755826 fix locust in testsuite 2018-12-22 23:09:05 +08:00
debugtalk
7eafa1678f add unittest for request with params 2018-12-21 18:54:05 +08:00
debugtalk
42cc8bc9d0 fix base_url priority: testcase config > testsuite config 2018-12-21 18:26:32 +08:00
debugtalk
05d2cc014d enhance report: display all 30X redirect request and response 2018-12-20 17:59:11 +08:00
debugtalk
b6a1a25b3e fix bug when nested function and variable exists in variables:
e.g.

"variables": {
    "host2": "https://httprunner.org",
    "num4": "${sum_two($num0, 5)}",
    "num3": "${sum_two($num2, 4)}",
    "num2": "${sum_two($num1, 3)}",
    "num1": "${sum_two(1, 2)}"
}
2018-12-19 19:36:42 +08:00
debugtalk
363420053c fix RecursionError caused by locust 2018-12-18 16:21:24 +08:00
debugtalk
2640720332 fix unittest c4805ccb98e909b9586eea3e30c15b40fb0bbf8a 2018-12-17 23:08:35 +08:00
debugtalk
a0121b9007 add unittest to verify cookie persistence 2018-12-17 22:47:30 +08:00