Commit Graph

845 Commits

Author SHA1 Message Date
debugtalk
134a77e4f4 fix: variable in current url maybe extracted from former api 2018-11-29 15:37:04 +08:00
debugtalk
7b2c5114c2 fix base_url with api referrence 2018-11-29 15:15:45 +08:00
debugtalk
8021fb0760 make extract in testcase template compatible with mapping style:
new mapping style:
    extract: {
        a: content.a,
        b: text.b
    }

    Also, the former list style is still valid:
    extract: [
        {a: content.a},
        {b: text.b}
    ]
2018-11-29 14:43:12 +08:00
debugtalk
caeaf2884a fix: display exceptions occurred in debugtalk.py 2018-11-29 14:20:47 +08:00
debugtalk
29ea6af0e3 add new line for next teststep 2018-11-29 12:31:13 +08:00
debugtalk
56b0a7819d fix base_url with variables 2018-11-29 11:54:33 +08:00
debugtalk
40604da7de fix attachment xss in html report 2018-11-28 22:57:46 +08:00
debugtalk
8667c2db4b try to fix unittest failure in Python 2.7 2018-11-28 22:24:39 +08:00
debugtalk
6f8e846612 fix stringify summary: add requests.cookies.RequestsCookieJar type 2018-11-28 21:24:26 +08:00
debugtalk
7b10b75200 fix #411: validation does not display when validation failed 2018-11-28 21:23:40 +08:00
debugtalk
8278139375 show log even if test failed 2018-11-28 17:52:37 +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
33d12ae6bc fix: make render_html_report API public 2018-11-27 22:29:39 +08:00
debugtalk
6e122ec8ac fix html report for HttpRunner 2.0 2018-11-27 17:58:06 +08:00
debugtalk
5539b9e574 fix compatibility with locust 2018-11-26 17:39:25 +08:00
debugtalk
0a44aa8bfe fix html report display response content 2018-11-26 14:36:07 +08:00
debugtalk
c7a764bfc7 fix: stringify summary before dump json file 2018-11-26 13:44:33 +08:00
debugtalk
ead4332ee2 remove render summary data 2018-11-26 11:50:55 +08:00
debugtalk
1b9b4b5592 fix generated log filename when testing folder with '/' ending 2018-11-26 11:23:48 +08:00
debugtalk
680ed1a1ba dump test result summary to json file 2018-11-25 23:52:11 +08:00
debugtalk
3183064885 adjust arguments for html report 2018-11-25 23:12:36 +08:00
debugtalk
d26baf8a4f remove unused code 2018-11-25 20:48:16 +08:00
debugtalk
61df6cdaae fix #363: clear meta data first to ensure independence for each test 2018-11-24 23:26:18 +08:00
debugtalk
3ea4789c7b fix commit f1be0972dae59389c21b0371580c3101f67bc808 2018-11-24 00:49:13 +08:00
debugtalk
4fbaa71e7e implement hook assignment: save returned value from hook function to teststep scope variable 2018-11-24 00:23:57 +08:00
debugtalk
5d3dc6ad1c bugfix: test_variables_mapping should be initialized before each test 2018-11-24 00:00:25 +08:00
debugtalk
23cf17cb39 convert docstring to Google style 2018-11-23 22:52:23 +08:00
debugtalk
cfd1d84189 record response content:
1, only record json if response content is in JSON foramt;
2, do not record bytes content;
3, omit text charactors greater than 1000.
2018-11-23 18:46:56 +08:00
debugtalk
18875bc5f1 rename teststeps to tests 2018-11-23 17:56:53 +08:00
debugtalk
8f4500566d update locusts with HttpRunner 2.0 2018-11-23 17:14:43 +08:00
debugtalk
24e6b408e4 remove empty variables in saved tests 2018-11-23 11:41:36 +08:00
debugtalk
324c0b6f9f move saved tests to logs folder 2018-11-23 11:39:04 +08:00
debugtalk
09db20e9fc save tests: add debugtalk.py file path 2018-11-23 11:19:01 +08:00
debugtalk
7d9ffb097f Save loaded tests and parsed tests to JSON file. 2018-11-22 21:48:03 +08:00
debugtalk
b810ad7e91 fix environment variable invoke:
environment variable maybe loaded in debugtalk.py
thus .env file should be loaded before loading debugtalk.py
2018-11-22 20:43:27 +08:00
debugtalk
1ce95ba3cb build url with base_url 2018-11-22 19:53:09 +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
82b527d8b2 add unittest: variables in testcase teststep should override api's 2018-11-16 14:50:14 +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
5013861f74 refactor testcase config data structure 2018-11-15 21:49:05 +08:00
debugtalk
a67216cbdd update parse_parameters 2018-11-15 21:09:22 +08:00
debugtalk
822df7005a remove obsolete key words: variable_binds, extractors, extract_binds, validators 2018-11-15 20:35:44 +08:00
debugtalk
bb3dcb2756 refactor is_function 2018-11-15 20:05:57 +08:00
debugtalk
a116c651f9 remove unused utils functions 2018-11-15 19:58:26 +08:00
debugtalk
0e54c4aec9 relocate functions related to .env 2018-11-15 19:37:50 +08:00
debugtalk
58fa2a4bf4 relocate functions related to debugtalk.py 2018-11-15 17:12:31 +08:00
debugtalk
626612061e remove debugtalk.py variables mechanism 2018-11-15 14:48:44 +08:00