debugtalk
07965710a3
change: log httprunner version
2020-06-08 11:45:21 +08:00
debugtalk
1dbfe619e5
docs: update
2020-06-08 11:09:20 +08:00
debugtalk
d95053f767
Merge pull request #924 from httprunner/v3
...
## 3.0.10 (2020-06-07)
**Added**
- feat: implement step setup/teardown hooks
- feat: support alter response in teardown hooks
**Fixed**
- fix: ensure upload ready
- fix: add ExtendJSONEncoder to safely dump json data with python object, such as MultipartEncoder
2020-06-08 10:44:14 +08:00
debugtalk
9a7384e173
fix: add ExtendJSONEncoder to safely dump json data with python object, such as MultipartEncoder
2020-06-07 22:32:49 +08:00
debugtalk
45d1f3ed65
feat: support alter response in teardown hooks
2020-06-07 21:39:46 +08:00
debugtalk
0b53f832f1
feat: step teardown hook
2020-06-07 18:20:13 +08:00
debugtalk
d991708439
feat: step setup hook
2020-06-07 18:06:42 +08:00
debugtalk
2a81937bc8
fix: change __step_datas default value to []
2020-06-07 17:40:13 +08:00
debugtalk
012194d788
fix: ensure upload ready
2020-06-07 17:17:52 +08:00
debugtalk
31f5cfa9df
feat: implement step setup/teardown hooks
2020-06-07 16:38:59 +08:00
debugtalk
5cc5e5be28
Merge pull request #923 from httprunner/v3
...
3.0.9 bugfix
- fix: ensure variables
- fix: handle exception for loaded invalid format test content
- change: do not capture exception for loading har file
2020-06-07 15:11:53 +08:00
debugtalk
c2cba90609
Merge branch 'master' into v3
2020-06-07 14:55:37 +08:00
debugtalk
ddf5c331cc
fix: ensure variables
2020-06-07 14:50:07 +08:00
debugtalk
d1f9b10274
fix: handle exception for loaded invalid format test content
2020-06-07 14:41:46 +08:00
debugtalk
103d1b161d
change: do not capture exception for loading har file
2020-06-07 13:17:47 +08:00
debugtalk
4f37a4a446
Merge pull request #922 from httprunner/v3
...
## 3.0.9 (2020-06-07)
**Fixed**
- fix: miss formatting referenced testcase
- fix: handle cases when parent directory name includes dot/hyphen/space
**Changed**
- change: add `export` keyword in TStep to export session variables from referenced testcase
- change: rename TestCaseInOut field, config_vars and export_vars
- change: rename StepData field, export_vars
- change: add `--tb=short` for `hrun` command to use shorter traceback format by default
- change: search debugtalk.py upward recursively until system root dir
2020-06-07 13:00:24 +08:00
debugtalk
b279162956
change: search debugtalk.py upward recursively until system root dir
2020-06-07 12:51:45 +08:00
debugtalk
204b013b71
test: add unittest form testcase with abnormal path
2020-06-07 12:44:02 +08:00
debugtalk
534a14e525
test: update tests
2020-06-07 11:21:36 +08:00
debugtalk
f1fb78a6e6
fix: clear project_meta before each test
2020-06-07 10:59:24 +08:00
debugtalk
2697af09ac
fix: summary path
2020-06-06 22:37:44 +08:00
debugtalk
be627549e1
fix: ensure_file_path_valid for folder path
2020-06-06 22:25:50 +08:00
debugtalk
d29941124d
fix: ensure generated conftest.py located in generated pytest folder
2020-06-06 22:13:59 +08:00
debugtalk
e2703fff32
change: rename PWD to project RootDir
2020-06-06 21:17:00 +08:00
debugtalk
6471b006cb
change: format copied debugtalk.py
2020-06-06 10:05:57 +08:00
debugtalk
9a4ee8f3a0
fix: ensure project meta files exist in generated pytest folder files
2020-06-06 10:00:26 +08:00
debugtalk
e8275ab38a
refactor: ensure_file_path_valid
2020-06-06 01:01:47 +08:00
debugtalk
2a9a05af9b
change: add ProjectMeta debugtalk_path
2020-06-05 22:37:20 +08:00
debugtalk
862f0b6e52
fix: handle cases when parent directory name includes dot/hyphen/space
2020-06-05 19:42:01 +08:00
debugtalk
ae3ebbd0db
change: ensure testcase file exists
2020-06-05 18:41:28 +08:00
debugtalk
d1db909dfb
fix: make sure generated pytest folder exists
2020-06-05 17:09:16 +08:00
debugtalk
302a7ef139
fix: check if valid testcase file path
2020-06-05 17:04:37 +08:00
debugtalk
90c67bb546
docs: add comment
2020-06-05 16:44:42 +08:00
debugtalk
639233a33d
fix: raise TestCaseFormatError if teststep invalid
2020-06-05 16:38:40 +08:00
debugtalk
4169aa502c
change: do not capture exception for json loads
2020-06-05 16:24:21 +08:00
debugtalk
ec21585e00
fix: check if valid v2/v3 format
2020-06-05 16:21:38 +08:00
debugtalk
1fb847d23e
refactor: rename variable step_context
2020-06-05 15:47:45 +08:00
debugtalk
e95f950365
change: add --tb=short for hrun command
2020-06-05 15:02:04 +08:00
debugtalk
6b38534ac2
docs: update changelog
2020-06-05 14:39:21 +08:00
debugtalk
2b9a1e574d
refactor: remove ref_flag
2020-06-05 14:27:14 +08:00
debugtalk
c0d8e65e49
fix: miss formatting referenced testcase
2020-06-05 13:26:01 +08:00
debugtalk
86b69638c3
refactor: rename StepData export to export_vars
2020-06-05 11:39:50 +08:00
debugtalk
6c12f531f3
refactor: update TStep extract/export type
2020-06-05 11:36:19 +08:00
debugtalk
6ba5f703a4
refactor: rename TestCaseInOut field
2020-06-05 11:34:42 +08:00
debugtalk
adf0967888
refactor: use step export to export session variables from referenced testcase
2020-06-05 11:31:51 +08:00
debugtalk
528ddd0c67
refactor: rename schema to models
2020-06-05 10:38:12 +08:00
debugtalk
b31f4374c6
Merge pull request #919 from httprunner/v3
...
## 3.0.8 (2020-06-04)
**Added**
- feat: add sentry sdk
- feat: extract session variable from referenced testcase step
**Fixed**
- fix: missing request json
- fix: override testsuite/testcase config verify
- fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset
- fix: log testcase duration before raise ValidationFailure
**Changed**
- change: add httprunner version in generated pytest file
2020-06-04 18:43:04 +08:00
debugtalk
e249a15807
fix: log testcase duration before raise ValidationFailure
2020-06-04 18:36:37 +08:00
debugtalk
26732163e0
feat: extract session variable from referenced testcase step
2020-06-04 18:23:34 +08:00
debugtalk
ba1d533c18
feat: log export variables
2020-06-04 17:38:18 +08:00
debugtalk
11409f9e73
change: rename to StepRequestValidation
2020-06-04 17:04:36 +08:00
debugtalk
a8b43c5e1e
change: rename to StepRequestExtraction
2020-06-04 17:02:09 +08:00
debugtalk
8109309058
docs: update changelog
2020-06-04 16:40:35 +08:00
debugtalk
50f015bd7a
change: update capture exception
2020-06-04 16:36:46 +08:00
debugtalk
ff3a7ed067
docs: update examples
2020-06-04 16:06:02 +08:00
debugtalk
ae42f20745
change: replace raise with exit 1
2020-06-04 15:59:02 +08:00
debugtalk
1b94dcb72d
change: do not capture exception when request body is string
2020-06-04 15:42:12 +08:00
debugtalk
53c14f5c81
fix: try json loads request_body only if it is not None
2020-06-04 15:30:34 +08:00
debugtalk
359cad5ed7
fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset
2020-06-04 15:21:22 +08:00
debugtalk
5a414184f2
change: log current working directory when debugtalk.py not found
2020-06-04 14:34:41 +08:00
debugtalk
d3b5f07100
fix: missing request json
2020-06-04 14:14:41 +08:00
debugtalk
12341577ec
fix: override testsuite/testcase config verify
2020-06-04 14:11:49 +08:00
debugtalk
e616a5775a
change: capture exception with sentry
2020-06-04 12:11:27 +08:00
debugtalk
73bbf32512
change: replace logging with loguru
2020-06-04 11:24:47 +08:00
debugtalk
5b245fec0d
feat: add sentry sdk
2020-06-04 11:14:04 +08:00
debugtalk
3b3b67e90d
change: add httprunner version in generated pytest file
2020-06-04 10:39:02 +08:00
debugtalk
6bb9fc118d
change: remove unused import
2020-06-04 10:19:32 +08:00
debugtalk
cc90e25418
Merge pull request #918 from httprunner/v3
...
## 3.0.7 (2020-06-03)
**Added**
- feat: make pytest files in chain style
- feat: `hrun` supports run pytest files
- feat: get raw testcase model from pytest file
**Fixed**
- fix: convert jmespath.search result to int/float unintentionally
- fix: referenced testcase should not be run duplicately
- fix: requests.cookies.CookieConflictError, multiple cookies with name
- fix: missing exit code from pytest
- fix: skip invalid testcase/testsuite yaml/json file
**Changed**
- change: `har2case` generate pytest file by default
- docs: update sponsor info
2020-06-03 22:31:02 +08:00
debugtalk
cdbbb9478e
fix: github action
2020-06-03 22:24:09 +08:00
debugtalk
7e1e69fb1c
fix: load_testcase
2020-06-03 22:07:29 +08:00
debugtalk
1f493a1ce4
fix #913 : handle exception when request json is list type
2020-06-03 21:55:27 +08:00
debugtalk
d1b7cdb14c
fix #914 : handle invalid test file
2020-06-03 21:52:11 +08:00
debugtalk
94fbab82ad
fix: missing upload dependencies in tests
2020-06-03 21:41:24 +08:00
debugtalk
82b8975691
feat: get raw testcase model from pytest file
2020-06-03 21:36:32 +08:00
debugtalk
e017b9b3fd
feat: hrun supports run pytest files
2020-06-03 21:20:59 +08:00
debugtalk
b47509cdaa
change: har2case generate pytest file by default
2020-06-03 20:00:47 +08:00
debugtalk
7bb06aed72
change: make private functions public
2020-06-03 19:12:06 +08:00
debugtalk
8f78e41f07
docs: update changelog and example tests
2020-06-03 18:50:18 +08:00
debugtalk
1f75ad946d
fix: skip invalid testcase/testsuite yaml/json file
2020-06-03 18:44:05 +08:00
debugtalk
cb0984aadb
refactor: builtin upload file method
2020-06-03 18:36:09 +08:00
debugtalk
7476dc1343
feat: add builtin comparators for StepValidation
2020-06-03 18:00:46 +08:00
debugtalk
59e99eeaa8
change: generate pytest in chain style by default
2020-06-03 17:11:08 +08:00
debugtalk
6b9bd46079
feat: make pytest files in chain style
2020-06-03 16:50:53 +08:00
debugtalk
f2034426d5
change: builtin comparator equal
2020-06-03 16:50:53 +08:00
debugtalk
1b7f9b334b
feat: describe testcase in chain-call style, run testcase
2020-06-03 16:50:53 +08:00
debugtalk
5b0bc40786
fix: compatibility
2020-06-03 16:50:53 +08:00
debugtalk
ca28d1bdb3
refactor: StepValidation
2020-06-03 16:50:53 +08:00
debugtalk
a465906626
refactor: get config path with inspect stack
2020-06-03 16:50:53 +08:00
debugtalk
2b30a1337b
refactor: HttpRunner config & teststeps
2020-06-03 16:50:53 +08:00
debugtalk
0905350e99
refactor: relocate testcase definitions
2020-06-03 16:50:53 +08:00
debugtalk
03c1836075
style: add typing
2020-06-03 16:50:53 +08:00
debugtalk
526b1fcbc9
change: refactor Request interface
2020-06-03 16:50:53 +08:00
debugtalk
e7aca43470
feat: describe testcase in chain-call style
2020-06-03 16:50:53 +08:00
debugtalk
edf17c5508
docs: update changelog
2020-06-03 16:50:53 +08:00
debugtalk
56aa8f251f
fix: requests.cookies.CookieConflictError, multiple cookies with name
2020-06-03 16:50:53 +08:00
debugtalk
f87aaf5662
fix: referenced testcase should not be run duplicately
2020-06-03 16:50:53 +08:00
debugtalk
47cc964ecf
fix: convert jmespath.search result to int/float
2020-06-03 16:50:53 +08:00
debugtalk
e22d828dca
docs: update sponsor info
2020-06-03 16:50:53 +08:00
debugtalk
f92fca70f2
fix: missing exit code from pytest
2020-06-03 16:47:26 +08:00
debugtalk
365996f59b
fix compatibility: step_datas=>records
2020-06-03 16:46:02 +08:00