Commit Graph

33 Commits

Author SHA1 Message Date
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
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
2640720332 fix unittest c4805ccb98e909b9586eea3e30c15b40fb0bbf8a 2018-12-17 23:08:35 +08:00
debugtalk
a1d55ed162 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
5a90c437af remove unused code 2018-12-13 16:58:04 +08:00
debugtalk
acfca8c07f refactor testcase layer mechanism:
1, autotest testsuite layer
2, performance test
2018-12-10 16:10:06 +08:00
debugtalk
5d6509d38f fix base_url: teststep have base_url but is empty 2018-11-29 19:31:11 +08:00
debugtalk
7b2c5114c2 fix base_url with api referrence 2018-11-29 15:15:45 +08:00
debugtalk
56b0a7819d fix base_url with variables 2018-11-29 11:54:33 +08:00
debugtalk
0d17e16875 fix 68d2fb324c3841832267fcd7464c549748cf71c3: make variables independent on order 2018-11-28 13:18:27 +08:00
debugtalk
2ec2d3c2d8 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
fd69d1faf0 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
debugtalk
d0128bf182 refactor pipline 2018-10-01 17:27:51 +08:00
debugtalk
e2ba773e78 fix #343: locate debugtalk.py and use as project working directory 2018-08-23 13:03:42 +08:00
debugtalk
31f72356dd parse_parameters: add csv support 2018-08-22 18:35:15 +08:00
debugtalk
3fa15d7c2d New implementation for parse_parameters, without CSV feature 2018-08-14 00:00:51 +08:00
debugtalk
a664684ba4 refactor parse_data 2018-08-13 00:29:49 +08:00
debugtalk
22066da9f0 relocate TestcaseParser 2018-08-09 10:36:39 +08:00
debugtalk
3066284ae0 update: get function or variable item 2018-08-09 01:10:03 +08:00
debugtalk
acc8657a6f relocate substitute_variables_with_mapping to parse_data 2018-08-05 22:38:01 +08:00
debugtalk
243515a2ec relocate testcase parser 2018-08-05 11:46:27 +08:00
debugtalk
adb00d5558 relocalte extract_variables 2018-07-30 00:27:01 +08:00
debugtalk
e32e89c379 relocate test suite loader 2018-07-30 00:11:04 +08:00