Commit Graph

61 Commits

Author SHA1 Message Date
debugtalk
ed6e39dd12 fix: unittest 2019-12-24 23:42:55 +08:00
debugtalk
5dceb5d2f4 refactor: rename module name, loader/cases -> loader/buildup 2019-12-10 16:33:37 +08:00
debugtalk
b3f8412fd3 refactor: change function name to avoid conflict with unittest loader 2019-12-05 23:35:33 +08:00
debugtalk
5e23c5226b refactor: make loader as submodule, split to check/locate/load/cases 2019-12-05 23:23:38 +08:00
debugtalk
e974ac379a fix: fix compatibility for Python 2.7, circle import of parser and validator 2019-12-05 19:55:35 +08:00
debugtalk
fc9a44ce09 feat: config variables support parsing from function 2019-09-19 00:22:18 +08:00
debugtalk
6460030f07 fix: unittests with host debugtalk.com 2019-07-18 18:23:15 +08:00
debugtalk
a3cc072c36 fix: replace eval mechanism with builtins to prevent security vulnerabilities 2019-04-24 15:43:57 +08:00
debugtalk
d0652491c2 fix: escape braces 2019-04-18 15:44:30 +08:00
debugtalk
1239a86abc fix: replace $$ notation with $ and consider it as normal char. 2019-04-17 20:47:26 +08:00
debugtalk
71558fb980 fix: check if variable exist with $$ notation 2019-04-17 19:01:19 +08:00
debugtalk
1684c06369 support new variable notation: ${var} 2019-04-17 18:20:38 +08:00
debugtalk
e3ff7b9d10 use $$ to escape $ notation 2019-04-17 16:22:42 +08:00
debugtalk
77898f6272 fix: escape '{' and '}' 2019-04-17 15:29:13 +08:00
debugtalk
920df9985c 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
04248ee7e1 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
8862b16f77 fix: dead circle in parse_variables_mapping 2019-04-09 21:39:32 +08:00
debugtalk
3aa4e1aef8 remove project_mapping from parse_tests result 2019-04-08 20:52:14 +08:00
debugtalk
7a7c5503f8 feat: implement lazy parser for validators 2019-04-08 12:12:09 +08:00
debugtalk
7c6285b7b0 fix unittest 2019-04-04 15:36:58 +08:00
debugtalk
5fbbf6e70c feat: implement lazy parser 2019-04-04 01:21:08 +08:00
debugtalk
486615c6ce remove unused code: substitute_variables 2019-03-22 16:09:04 +08:00
debugtalk
0a8ec3894e fix unittest 2019-03-19 12:29:14 +08:00
debugtalk
0de935f230 remove unused code 2019-03-18 16:11:07 +08:00
debugtalk
b5ec47c068 Merge branch 'master' into bugfix/random-run-many-times 2019-02-28 15:33:27 +08:00
debugtalk
c8428ea58e bugfix verify priority: nested testcase config > testcase config 2019-02-28 15:22:08 +08:00
hluguoj
fb091079a4 bugfix random function in config variables run many times 2019-02-27 21:21:11 +08:00
debugtalk
f7cc2f8081 bugfix verify priority: teststep > config 2019-02-24 19:37:59 +08:00
debugtalk
843f1d2e8c bugfix: skip undefined variable when parsing string content 2019-01-17 18:40:46 +08:00
debugtalk
dee4af3cf7 update unittest 2019-01-17 16:52:34 +08:00
debugtalk
c1048d01a8 bugfix: extend_variables 2018-12-28 14:35:20 +08:00
debugtalk
78015e281d 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
ab3fe57c68 fix unittest 31dcc40233 2018-12-17 23:08:35 +08:00
debugtalk
94464c323a update parameterize feature:
def get_user_agent():
        return ["iOS/10.1", "iOS/10.2"]

    def get_account_in_tuple():
        return [("user1", "111111"), ("user2", "222222")]
2018-12-17 20:19:01 +08:00
debugtalk
4a4198fd26 remove unused code 2018-12-13 16:58:04 +08:00
debugtalk
7d20f95068 refactor testcase layer mechanism:
1, autotest testsuite layer
2, performance test
2018-12-10 16:10:06 +08:00
debugtalk
630b9e7e8a fix base_url: teststep have base_url but is empty 2018-11-29 19:31:11 +08:00
debugtalk
8b74e7cc57 fix base_url with api referrence 2018-11-29 15:15:45 +08:00
debugtalk
bd29c21803 fix base_url with variables 2018-11-29 11:54:33 +08:00
debugtalk
173594a201 fix a4ce29e656: make variables independent on order 2018-11-28 13:18:27 +08:00
debugtalk
c17d7c4f82 make variables in testcase template compatible with mapping style:
new mapping style:
"variables": {
    "a": 1,
    "b": 2
}

Also, the former list style is still valid:
"variables": [
    {"a": 1},
    {"b": 2}
]
2018-11-28 12:14:06 +08:00
debugtalk
a205e8964c bugfix: parse test variables with config variables 2018-11-27 23:59:33 +08:00
debugtalk
18875bc5f1 rename teststeps to tests 2018-11-23 17:56:53 +08:00
debugtalk
4099ade49d HttpRunner 2.0 is comming!
1, new design for testcase format;
2, refactor testcase layer mechanism.
2018-11-22 19:25:00 +08:00
debugtalk
05eb07935a add args and kwargs validation for ENV() and P() 2018-11-16 12:45:06 +08:00
debugtalk
e8d7f8e7c5 .env variables should be referenced with builtin ENV/environ function 2018-11-16 12:29:02 +08:00
debugtalk
a67216cbdd update parse_parameters 2018-11-15 21:09:22 +08:00
debugtalk
626612061e remove debugtalk.py variables mechanism 2018-11-15 14:48:44 +08:00
debugtalk
968fdc3b01 rename testset => testcase 2018-10-03 00:02:38 +08:00
debugtalk
5af845cb9c relocate parse_tests 2018-10-01 18:02:21 +08:00