Commit Graph

868 Commits

Author SHA1 Message Date
debugtalk
411981dcd0 fix unittest for Python 2.7/3.4/3.5 2018-12-16 00:48:59 +08:00
debugtalk
dcd50579a1 add unittest for running single api 2018-12-16 00:38:02 +08:00
debugtalk
3249394732 add new feature: parameters 2018-12-14 23:29:17 +08:00
debugtalk
021aeab8d8 make parameters in testcase template compatible with mapping style:
new mapping style:
    parameters: {
        a: [1, 2, 3],
        b: "${P(f.csv)}"
    }

    Also, the former list style is still valid:
    extract: [
        {a: [1, 2, 3]},
        {b: "${P(f.csv)}"}
    ]
2018-12-13 17:52:46 +08:00
debugtalk
5a90c437af remove unused code 2018-12-13 16:58:04 +08:00
debugtalk
2e655dca06 omit request and response data length greater than 512 2018-12-13 16:19:17 +08:00
debugtalk
d586d7cb82 log exception request_type and name for locust stat 2018-12-11 21:48:14 +08:00
debugtalk
acfca8c07f refactor testcase layer mechanism:
1, autotest testsuite layer
2, performance test
2018-12-10 16:10:06 +08:00
debugtalk
6fd92679e3 fix #455: response time ascends while locusts running, with concurrency unchanged 2018-12-05 21:04:13 +08:00
debugtalk
0eacd5f7de save api in individual file: each file is corresponding to one api definition 2018-12-04 22:38:41 +08:00
debugtalk
0cfb92aa4a change httprunner api HttpRunner location to avoid monkey patch 2018-12-04 20:47:53 +08:00
debugtalk
60422c274f fix 4810889d86238ab08ee5f18996b9509539420b0a: import locust may lead to RecursionError 2018-12-04 20:15:16 +08:00
debugtalk
50d0ef01ae fix duplicate monkey patch 2018-12-04 14:46:30 +08:00
debugtalk
0b30e5c96b get response cookies dict in debugtalk.py 2018-12-04 12:59:47 +08:00
debugtalk
4e2fd846fb fix typo error 2018-12-04 12:07:02 +08:00
debugtalk
2698bd6e13 fix: each testcase should have individual session. 2018-12-04 11:32:51 +08:00
debugtalk
0801adebca update html report template 2018-12-03 23:11:33 +08:00
debugtalk
335d19c0cf fix locusts: display test name when test failed 2018-12-03 20:21:14 +08:00
debugtalk
6d107d4bf1 change licence to GPLV3 2018-12-03 15:43:08 +08:00
debugtalk
f27498937c fix: request url has variable extracted from former api 2018-12-03 12:46:00 +08:00
debugtalk
757fc975f1 bugfix: POST content-type is application/x-www-form-urlencoded 2018-11-30 22:46:09 +08:00
debugtalk
5d6509d38f fix base_url: teststep have base_url but is empty 2018-11-29 19:31:11 +08:00
debugtalk
b32e4339ab display name in each test result detail report 2018-11-29 16:10:59 +08:00
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