Commit Graph

116 Commits

Author SHA1 Message Date
debugtalk
598d660b6e change: rename schema model name and class name 2020-05-15 00:04:18 +08:00
debugtalk
6c29ea3554 feat: run test with reference testcase 2020-05-14 23:21:15 +08:00
debugtalk
f88845d9d4 change: python testcase template 2020-05-14 22:41:35 +08:00
debugtalk
1c97e0bbfe change: format code with balck 2020-05-14 14:21:35 +08:00
debugtalk
a95d4137c1 change: http client with pydantic models 2020-05-14 00:11:13 +08:00
debugtalk
f3ca17febd feat: run referenced testcase in v3 2020-05-11 18:36:25 +08:00
debugtalk
826fca83c2 refactor: merge v3 2020-04-23 21:53:03 +08:00
debugtalk
8dd2cbc5c4 refactor: rename project_mapping to project_meta 2020-04-23 21:53:03 +08:00
debugtalk
8f55bead99 refactor: change variable name from meta_data to session_data 2020-04-23 21:53:03 +08:00
debugtalk
c537a50cc0 **Added**
- feat: implement global hooks `setup_testcase/teardown_testcase`, called before/after each testcase
- feat: implement global hooks  `setup_teststep/teardown_teststep`, called before/after each teststep

**Changed**

- remove default header `HRUN-Request-ID`, implement the same function with global hooks
2020-04-17 21:56:20 +08:00
debugtalk
82d28344f5 feat: save testcase HRUN-Request-ID in summary.json 2020-03-13 19:47:54 +08:00
debugtalk
498bcabae0 feat: add default header HRUN-Request-ID for each testcase 2020-03-13 19:36:47 +08:00
debugtalk
7213f86f80 change:
1, replace logging with loguru
2, replace string format with f-string
2020-03-07 12:16:11 +08:00
debugtalk
030010fcb3 change: remove method validation from runner.Runner 2020-01-06 14:37:49 +08:00
debugtalk
55d9820d8c fix #818: request missed url in setup_hooks 2020-01-02 21:42:49 +08:00
debugtalk
4cd12e3d2f fix: display validators in report when validate raised exception 2019-12-25 23:21:10 +08:00
debugtalk
ae780b340b change: add HookTypeEnum 2019-12-24 20:14:59 +08:00
debugtalk
cd42d92a76 fix: display request & response details in report when extraction failed 2019-12-24 19:53:46 +08:00
debugtalk
e4755a80d5 refactor: split validate from context, move to validator 2019-12-05 18:41:11 +08:00
debugtalk
ff24fdb9d7 2.4.0
feat: validate with python script, ref #773
2019-12-04 17:38:13 +08:00
fengyu
d5457c040a fix teardown_hook对response的修改体现在测试报告上 httprunner#430 2019-11-05 14:12:30 +08:00
debugtalk
e87367e059 feat: 'export' is used to replace 'output' in testcase config 2019-06-26 22:33:52 +08:00
debugtalk
75aa036548 support both "validate" and "validators" 2019-04-11 12:30:08 +08:00
debugtalk
e1edb896eb fix: pass output variables between testcases 2019-04-10 15:35:53 +08:00
debugtalk
233f54d315 remove project_mapping from parse_tests result 2019-04-08 20:52:14 +08:00
debugtalk
4a478f55d0 relocate build url with base_url 2019-04-08 14:11:49 +08:00
debugtalk
3d1c7f368c feat: implement lazy parser for validators 2019-04-08 12:12:09 +08:00
debugtalk
d7b76b2fcc feat: implement lazy parser 2019-04-04 01:21:08 +08:00
debugtalk
88934a066a display result from hook functions 2019-01-25 18:03:46 +08:00
debugtalk
824cfaf515 each teststeps in one testcase share the same session. 2019-01-25 14:08:53 +08:00
debugtalk
7beedf378a print testcase output 2019-01-24 17:14:44 +08:00
debugtalk
bf09483ecf bugfix: override current teststep variables with former testcase output variables 2019-01-17 13:38:33 +08:00
debugtalk
05d2cc014d enhance report: display all 30X redirect request and response 2018-12-20 17:59:11 +08:00
debugtalk
9ef84a38e8 remove builtin setup hook: prepare post data 2018-12-17 20:55:19 +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
60422c274f fix 4810889d86238ab08ee5f18996b9509539420b0a: import locust may lead to RecursionError 2018-12-04 20:15:16 +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
b32e4339ab display name in each test result detail report 2018-11-29 16:10:59 +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
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
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
61df6cdaae fix #363: clear meta data first to ensure independence for each test 2018-11-24 23:26:18 +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