Commit Graph

37 Commits

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