Sisyphus-api-engine 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- apirun/__init__.py +59 -0
- apirun/cli.py +1345 -0
- apirun/cli_help_i18n.py +173 -0
- apirun/core/__init__.py +21 -0
- apirun/core/models.py +411 -0
- apirun/core/retry.py +287 -0
- apirun/core/template_functions.py +505 -0
- apirun/core/variable_manager.py +571 -0
- apirun/data_driven/__init__.py +22 -0
- apirun/data_driven/data_source.py +291 -0
- apirun/data_driven/iterator.py +195 -0
- apirun/executor/__init__.py +21 -0
- apirun/executor/api_executor.py +252 -0
- apirun/executor/concurrent_executor.py +366 -0
- apirun/executor/database_executor.py +415 -0
- apirun/executor/loop_executor.py +350 -0
- apirun/executor/script_executor.py +459 -0
- apirun/executor/step_executor.py +548 -0
- apirun/executor/test_case_executor.py +293 -0
- apirun/executor/wait_executor.py +530 -0
- apirun/extractor/__init__.py +15 -0
- apirun/extractor/cookie_extractor.py +37 -0
- apirun/extractor/extractor_factory.py +60 -0
- apirun/extractor/header_extractor.py +42 -0
- apirun/extractor/jsonpath_extractor.py +56 -0
- apirun/extractor/regex_extractor.py +51 -0
- apirun/mock/__init__.py +16 -0
- apirun/mock/models.py +439 -0
- apirun/mock/server.py +461 -0
- apirun/parser/__init__.py +5 -0
- apirun/parser/v2_yaml_parser.py +520 -0
- apirun/result/__init__.py +25 -0
- apirun/result/allure_exporter.py +916 -0
- apirun/result/html_exporter.py +831 -0
- apirun/result/json_exporter.py +564 -0
- apirun/result/junit_exporter.py +446 -0
- apirun/utils/__init__.py +5 -0
- apirun/utils/error_utils.py +381 -0
- apirun/utils/hooks.py +160 -0
- apirun/utils/json_optimized.py +285 -0
- apirun/utils/performance.py +375 -0
- apirun/utils/template.py +208 -0
- apirun/validation/__init__.py +11 -0
- apirun/validation/comparators.py +433 -0
- apirun/validation/engine.py +323 -0
- apirun/websocket/__init__.py +20 -0
- apirun/websocket/broadcaster.py +435 -0
- apirun/websocket/events.py +334 -0
- apirun/websocket/notifier.py +240 -0
- apirun/websocket/progress.py +175 -0
- apirun/websocket/server.py +209 -0
- sisyphus_api_engine-1.0.1.dist-info/METADATA +703 -0
- sisyphus_api_engine-1.0.1.dist-info/RECORD +56 -0
- sisyphus_api_engine-1.0.1.dist-info/WHEEL +5 -0
- sisyphus_api_engine-1.0.1.dist-info/entry_points.txt +3 -0
- sisyphus_api_engine-1.0.1.dist-info/top_level.txt +1 -0
apirun/__init__.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""Sisyphus API Engine - Enterprise-grade API Automation Testing Engine.
|
|
2
|
+
|
|
3
|
+
This package provides the core functionality for executing YAML-based API tests.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "1.0.0"
|
|
7
|
+
__author__ = "koco-co"
|
|
8
|
+
|
|
9
|
+
from apirun.core.models import (
|
|
10
|
+
TestCase,
|
|
11
|
+
TestStep,
|
|
12
|
+
GlobalConfig,
|
|
13
|
+
ProfileConfig,
|
|
14
|
+
ValidationRule,
|
|
15
|
+
Extractor,
|
|
16
|
+
StepResult,
|
|
17
|
+
TestCaseResult,
|
|
18
|
+
ErrorInfo,
|
|
19
|
+
PerformanceMetrics,
|
|
20
|
+
HttpMethod,
|
|
21
|
+
ErrorCategory,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
from apirun.core.variable_manager import VariableManager, VariableScope
|
|
25
|
+
from apirun.parser.v2_yaml_parser import V2YamlParser, parse_yaml_file, parse_yaml_string
|
|
26
|
+
from apirun.executor.test_case_executor import TestCaseExecutor
|
|
27
|
+
from apirun.executor.api_executor import APIExecutor
|
|
28
|
+
from apirun.validation.engine import ValidationEngine
|
|
29
|
+
from apirun.result.json_exporter import JSONExporter
|
|
30
|
+
|
|
31
|
+
__all__ = [
|
|
32
|
+
# Models
|
|
33
|
+
"TestCase",
|
|
34
|
+
"TestStep",
|
|
35
|
+
"GlobalConfig",
|
|
36
|
+
"ProfileConfig",
|
|
37
|
+
"ValidationRule",
|
|
38
|
+
"Extractor",
|
|
39
|
+
"StepResult",
|
|
40
|
+
"TestCaseResult",
|
|
41
|
+
"ErrorInfo",
|
|
42
|
+
"PerformanceMetrics",
|
|
43
|
+
"HttpMethod",
|
|
44
|
+
"ErrorCategory",
|
|
45
|
+
# Core
|
|
46
|
+
"VariableManager",
|
|
47
|
+
"VariableScope",
|
|
48
|
+
# Parser
|
|
49
|
+
"V2YamlParser",
|
|
50
|
+
"parse_yaml_file",
|
|
51
|
+
"parse_yaml_string",
|
|
52
|
+
# Executor
|
|
53
|
+
"TestCaseExecutor",
|
|
54
|
+
"APIExecutor",
|
|
55
|
+
# Validation
|
|
56
|
+
"ValidationEngine",
|
|
57
|
+
# Result
|
|
58
|
+
"JSONExporter",
|
|
59
|
+
]
|