debugtalk
dee4af3cf7
update unittest
2019-01-17 16:52:34 +08:00
debugtalk
f3db42f8a3
bugfix: override current teststep variables with former testcase output variables
2019-01-17 13:38:33 +08:00
debugtalk
5a9d09967d
Merge pull request #475 from HttpRunner/2.0
...
Release 2.0.0
2019-01-01 23:24:28 +08:00
debugtalk
c68e7be512
update omitting request & response length:
...
1, request: only omit upload file type;
2, response: keep raw content for extracting; omit in summary
2018-12-28 16:15:18 +08:00
debugtalk
c1048d01a8
bugfix: extend_variables
2018-12-28 14:35:20 +08:00
debugtalk
611ecb5d1a
update report: add testcase stat to summary
2018-12-28 12:03:58 +08:00
debugtalk
b301c96e5d
fix unittest
2018-12-27 17:12:47 +08:00
debugtalk
1b205dce31
remove unused files
2018-12-27 17:04:38 +08:00
debugtalk
52a30cad24
update prepare_locust_tests
2018-12-27 16:50:31 +08:00
debugtalk
d3ada11b3a
update unittest for api base_url
2018-12-27 16:39:37 +08:00
debugtalk
73c9cc9c1d
add unittest
2018-12-27 15:33:14 +08:00
debugtalk
1842560906
set default log level to INFO for HttpRunner class
2018-12-26 15:15:27 +08:00
debugtalk
edc627bff7
set log level and file path in HttpRunner class
2018-12-25 19:17:17 +08:00
debugtalk
32eae9390c
fix: run api folder, each api should be encapsulated as individual testcase
2018-12-24 12:24:30 +08:00
debugtalk
b0155c8f71
fix unittest for Python 2.7/3.4/3.5
2018-12-22 23:26:50 +08:00
debugtalk
e507e69e89
fix locust in testsuite
2018-12-22 23:09:05 +08:00
debugtalk
2f445135e9
fix error when testcase parameters is {}
2018-12-21 19:07:26 +08:00
debugtalk
b6cf9649f2
add unittest for request with params
2018-12-21 18:54:05 +08:00
debugtalk
8b87cf3fb4
fix base_url priority: testcase config > testsuite config
2018-12-21 18:26:32 +08:00
debugtalk
2b66e8e15f
fix os sep: make compatible with Windows/Linux
2018-12-20 23:03:41 +08:00
debugtalk
ef58073afc
fix NameError
2018-12-20 22:42:42 +08:00
debugtalk
f18d892876
enhance report: display all 30X redirect request and response
2018-12-20 17:59:11 +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
751a7469d8
fix RecursionError caused by locust
2018-12-18 16:21:24 +08:00
debugtalk
ab3fe57c68
fix unittest 31dcc40233
2018-12-17 23:08:35 +08:00
debugtalk
b87740a33c
add unittest to verify cookie persistence
2018-12-17 22:47:30 +08:00
debugtalk
f527ded21b
add unittest for request with cookies
2018-12-17 22:29:12 +08:00
debugtalk
aa6f523576
remove unused files
2018-12-17 21:45:33 +08:00
debugtalk
cb92572a37
remove builtin setup hook: prepare post data
2018-12-17 20:55:19 +08:00
debugtalk
4f609a686a
update unittest
2018-12-17 20:38:55 +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
73ba469b42
update licence
2018-12-17 18:40:26 +08:00
debugtalk
f7d525cd64
fix unittest for Python 2.7/3.4/3.5
2018-12-16 00:48:59 +08:00
debugtalk
f0d6bda573
add unittest for running single api
2018-12-16 00:38:02 +08:00
debugtalk
5beb25470f
add new feature: parameters
2018-12-14 23:29:17 +08:00
debugtalk
9f1fb62cd1
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
4a4198fd26
remove unused code
2018-12-13 16:58:04 +08:00
debugtalk
763d41617c
omit request and response data length greater than 512
2018-12-13 16:19:17 +08:00
debugtalk
2d9695a1ec
log exception request_type and name for locust stat
2018-12-11 21:48:14 +08:00
debugtalk
7d20f95068
refactor testcase layer mechanism:
...
1, autotest testsuite layer
2, performance test
2018-12-10 16:10:06 +08:00
debugtalk
4939f2cc0c
fix #455 : response time ascends while locusts running, with concurrency unchanged
2018-12-05 21:04:13 +08:00
debugtalk
de23957518
save api in individual file: each file is corresponding to one api definition
2018-12-04 22:38:41 +08:00
debugtalk
3135e19f25
change httprunner api HttpRunner location to avoid monkey patch
2018-12-04 20:47:53 +08:00
debugtalk
6bf8881d0f
fix 0c55b83c1a: import locust may lead to RecursionError
2018-12-04 20:15:16 +08:00
debugtalk
970591e29f
fix duplicate monkey patch
2018-12-04 14:46:30 +08:00
debugtalk
9e6ffd8a39
get response cookies dict in debugtalk.py
2018-12-04 12:59:47 +08:00
debugtalk
1d186a49d0
fix typo error
2018-12-04 12:07:02 +08:00
debugtalk
d643dffa04
fix: each testcase should have individual session.
2018-12-04 11:32:51 +08:00
debugtalk
6bb506ea5e
update html report template
2018-12-03 23:11:33 +08:00
debugtalk
bf5a2dfb55
fix locusts: display test name when test failed
2018-12-03 20:21:14 +08:00
debugtalk
f80894f89b
change licence to GPLV3
2018-12-03 15:43:08 +08:00
debugtalk
dea94b6a7a
fix: request url has variable extracted from former api
2018-12-03 12:46:00 +08:00
debugtalk
26c7e0f5f8
bugfix: POST content-type is application/x-www-form-urlencoded
2018-11-30 22:46:09 +08:00
debugtalk
630b9e7e8a
fix base_url: teststep have base_url but is empty
2018-11-29 19:31:11 +08:00
debugtalk
bc70c3b204
display name in each test result detail report
2018-11-29 16:10:59 +08:00
debugtalk
6440a272ba
fix: variable in current url maybe extracted from former api
2018-11-29 15:37:04 +08:00
debugtalk
8b74e7cc57
fix base_url with api referrence
2018-11-29 15:15:45 +08:00
debugtalk
288efbbd18
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
41dc76eac0
fix: display exceptions occurred in debugtalk.py
2018-11-29 14:20:47 +08:00
debugtalk
081d843676
add new line for next teststep
2018-11-29 12:31:13 +08:00
debugtalk
bd29c21803
fix base_url with variables
2018-11-29 11:54:33 +08:00
debugtalk
0933c92921
fix attachment xss in html report
2018-11-28 22:57:46 +08:00
debugtalk
4e627c0529
try to fix unittest failure in Python 2.7
2018-11-28 22:24:39 +08:00
debugtalk
39f5740679
fix stringify summary: add requests.cookies.RequestsCookieJar type
2018-11-28 21:24:26 +08:00
debugtalk
0a9c6994b1
fix #411 : validation does not display when validation failed
2018-11-28 21:23:40 +08:00
debugtalk
a1785c5542
show log even if test failed
2018-11-28 17:52:37 +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
6a69233460
fix: make render_html_report API public
2018-11-27 22:29:39 +08:00
debugtalk
01abbf06f8
fix html report for HttpRunner 2.0
2018-11-27 17:58:06 +08:00
debugtalk
0e0ddb7d52
fix compatibility with locust
2018-11-26 17:39:25 +08:00
debugtalk
d08642f812
fix html report display response content
2018-11-26 14:36:07 +08:00
debugtalk
19e8130e6a
fix: stringify summary before dump json file
2018-11-26 13:44:33 +08:00
debugtalk
ecb3d53874
remove render summary data
2018-11-26 11:50:55 +08:00
debugtalk
a0f64153ee
fix generated log filename when testing folder with '/' ending
2018-11-26 11:23:48 +08:00
debugtalk
19ae5aace3
dump test result summary to json file
2018-11-25 23:52:11 +08:00
debugtalk
f1479e4c85
adjust arguments for html report
2018-11-25 23:12:36 +08:00
debugtalk
51afbebb07
remove unused code
2018-11-25 20:48:16 +08:00
debugtalk
f92f5d64a9
fix #363 : clear meta data first to ensure independence for each test
2018-11-24 23:26:18 +08:00
debugtalk
0f21d7385d
fix commit 4cf2a17cd0
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