mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 01:39:39 +08:00
change: replace events reporter from sentry to Google Analytics
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
## 3.1.7 (2022-03-22)
|
## 3.1.7 (2022-03-22)
|
||||||
|
|
||||||
- feat: report events with Google Analytics
|
|
||||||
- fix #1117: ignore comments and blank lines when parsing .env file
|
- fix #1117: ignore comments and blank lines when parsing .env file
|
||||||
- fix #1141: parameterize failure caused by pydantic version
|
- fix #1141: parameterize failure caused by pydantic version
|
||||||
- fix #1165: ImportError caused by jinja2 version
|
- fix #1165: ImportError caused by jinja2 version
|
||||||
- fix: failure in getting client and server IP/port when requesting HTTPS
|
- fix: failure in getting client and server IP/port when requesting HTTPS
|
||||||
- fix: upgrade dependencies for security
|
- fix: upgrade dependencies for security
|
||||||
- change: remove support for dead python 3.6, upgrade supported python version to 3.7/3.8/3.9/3.10
|
- change: remove support for dead python 3.6, upgrade supported python version to 3.7/3.8/3.9/3.10
|
||||||
|
- change: replace events reporter from sentry to Google Analytics
|
||||||
|
|
||||||
## 3.1.6 (2021-07-18)
|
## 3.1.6 (2021-07-18)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import sys
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from sentry_sdk import capture_message
|
|
||||||
|
|
||||||
from httprunner import __description__, __version__
|
from httprunner import __description__, __version__
|
||||||
from httprunner.compat import ensure_cli_args
|
from httprunner.compat import ensure_cli_args
|
||||||
@@ -25,7 +24,6 @@ def init_parser_run(subparsers):
|
|||||||
|
|
||||||
|
|
||||||
def main_run(extra_args) -> enum.IntEnum:
|
def main_run(extra_args) -> enum.IntEnum:
|
||||||
capture_message("start to run")
|
|
||||||
ga_client.track_event("RunAPITests", "hrun")
|
ga_client.track_event("RunAPITests", "hrun")
|
||||||
# keep compatibility with v2
|
# keep compatibility with v2
|
||||||
extra_args = ensure_cli_args(extra_args)
|
extra_args = ensure_cli_args(extra_args)
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ Usage:
|
|||||||
|
|
||||||
from httprunner.ext.har2case.core import HarParser
|
from httprunner.ext.har2case.core import HarParser
|
||||||
from httprunner.utils import ga_client
|
from httprunner.utils import ga_client
|
||||||
from sentry_sdk import capture_message
|
|
||||||
|
|
||||||
|
|
||||||
def init_har2case_parser(subparsers):
|
def init_har2case_parser(subparsers):
|
||||||
@@ -60,7 +59,6 @@ def main_har2case(args):
|
|||||||
else:
|
else:
|
||||||
output_file_type = "pytest"
|
output_file_type = "pytest"
|
||||||
|
|
||||||
capture_message(f"har2case {output_file_type}")
|
|
||||||
ga_client.track_event("ConvertTests", f"har2case {output_file_type}")
|
ga_client.track_event("ConvertTests", f"har2case {output_file_type}")
|
||||||
HarParser(har_source_file, args.filter, args.exclude).gen_testcase(output_file_type)
|
HarParser(har_source_file, args.filter, args.exclude).gen_testcase(output_file_type)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ from typing import List
|
|||||||
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from httprunner.utils import ga_client
|
|
||||||
|
|
||||||
""" converted pytest files from YAML/JSON testcases
|
""" converted pytest files from YAML/JSON testcases
|
||||||
"""
|
"""
|
||||||
@@ -71,11 +70,7 @@ def prepare_locust_tests() -> List:
|
|||||||
def main_locusts():
|
def main_locusts():
|
||||||
""" locusts entrance
|
""" locusts entrance
|
||||||
"""
|
"""
|
||||||
from httprunner.utils import init_sentry_sdk
|
from httprunner.utils import ga_client
|
||||||
from sentry_sdk import capture_message
|
|
||||||
|
|
||||||
init_sentry_sdk()
|
|
||||||
capture_message("start to run locusts")
|
|
||||||
ga_client.track_event("RunLoadTests", "locust")
|
ga_client.track_event("RunLoadTests", "locust")
|
||||||
|
|
||||||
# avoid print too much log details in console
|
# avoid print too much log details in console
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from sentry_sdk import capture_message
|
|
||||||
|
|
||||||
from httprunner.utils import ga_client
|
from httprunner.utils import ga_client
|
||||||
|
|
||||||
@@ -201,6 +200,5 @@ def sleep(n_secs):
|
|||||||
|
|
||||||
|
|
||||||
def main_scaffold(args):
|
def main_scaffold(args):
|
||||||
capture_message("startproject with scaffold")
|
|
||||||
ga_client.track_event("Scaffold", "startproject")
|
ga_client.track_event("Scaffold", "startproject")
|
||||||
sys.exit(create_scaffold(args.project_name))
|
sys.exit(create_scaffold(args.project_name))
|
||||||
|
|||||||
Reference in New Issue
Block a user