diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c35bcbb1..fbf2320a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,13 +2,13 @@ ## 3.1.7 (2022-03-22) -- feat: report events with Google Analytics - fix #1117: ignore comments and blank lines when parsing .env file - fix #1141: parameterize failure caused by pydantic version - fix #1165: ImportError caused by jinja2 version - fix: failure in getting client and server IP/port when requesting HTTPS - 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: replace events reporter from sentry to Google Analytics ## 3.1.6 (2021-07-18) diff --git a/httprunner/cli.py b/httprunner/cli.py index 636f4ca3..9041258d 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -5,7 +5,6 @@ import sys import pytest from loguru import logger -from sentry_sdk import capture_message from httprunner import __description__, __version__ from httprunner.compat import ensure_cli_args @@ -25,7 +24,6 @@ def init_parser_run(subparsers): def main_run(extra_args) -> enum.IntEnum: - capture_message("start to run") ga_client.track_event("RunAPITests", "hrun") # keep compatibility with v2 extra_args = ensure_cli_args(extra_args) diff --git a/httprunner/ext/har2case/__init__.py b/httprunner/ext/har2case/__init__.py index 3c1733f6..fb6ca4d2 100644 --- a/httprunner/ext/har2case/__init__.py +++ b/httprunner/ext/har2case/__init__.py @@ -11,7 +11,6 @@ Usage: from httprunner.ext.har2case.core import HarParser from httprunner.utils import ga_client -from sentry_sdk import capture_message def init_har2case_parser(subparsers): @@ -60,7 +59,6 @@ def main_har2case(args): else: output_file_type = "pytest" - capture_message(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) diff --git a/httprunner/ext/locust/__init__.py b/httprunner/ext/locust/__init__.py index 04c4fa18..eb4f4c69 100644 --- a/httprunner/ext/locust/__init__.py +++ b/httprunner/ext/locust/__init__.py @@ -23,7 +23,6 @@ from typing import List from loguru import logger -from httprunner.utils import ga_client """ converted pytest files from YAML/JSON testcases """ @@ -71,11 +70,7 @@ def prepare_locust_tests() -> List: def main_locusts(): """ locusts entrance """ - from httprunner.utils import init_sentry_sdk - from sentry_sdk import capture_message - - init_sentry_sdk() - capture_message("start to run locusts") + from httprunner.utils import ga_client ga_client.track_event("RunLoadTests", "locust") # avoid print too much log details in console diff --git a/httprunner/scaffold.py b/httprunner/scaffold.py index 207d62cc..282bfb08 100644 --- a/httprunner/scaffold.py +++ b/httprunner/scaffold.py @@ -3,7 +3,6 @@ import subprocess import sys from loguru import logger -from sentry_sdk import capture_message from httprunner.utils import ga_client @@ -201,6 +200,5 @@ def sleep(n_secs): def main_scaffold(args): - capture_message("startproject with scaffold") ga_client.track_event("Scaffold", "startproject") sys.exit(create_scaffold(args.project_name))