WebsocketTest 1.0.12__py3-none-any.whl → 1.0.13__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.
- WebsocketTest/run_tests.py +0 -40
- {websockettest-1.0.12.dist-info → websockettest-1.0.13.dist-info}/METADATA +1 -1
- {websockettest-1.0.12.dist-info → websockettest-1.0.13.dist-info}/RECORD +6 -6
- {websockettest-1.0.12.dist-info → websockettest-1.0.13.dist-info}/WHEEL +0 -0
- {websockettest-1.0.12.dist-info → websockettest-1.0.13.dist-info}/entry_points.txt +0 -0
- {websockettest-1.0.12.dist-info → websockettest-1.0.13.dist-info}/top_level.txt +0 -0
WebsocketTest/run_tests.py
CHANGED
@@ -93,46 +93,6 @@ class TestRunner:
|
|
93
93
|
logger.error(f"Tests failed with exit code {e.returncode}")
|
94
94
|
except subprocess.TimeoutExpired:
|
95
95
|
logger.error("Test execution timed out after 1 hour")
|
96
|
-
def is_allure_installed():
|
97
|
-
"""检查 Allure 是否已安装"""
|
98
|
-
try:
|
99
|
-
# 尝试运行 allure --version
|
100
|
-
result = subprocess.run(
|
101
|
-
["allure", "--version"],
|
102
|
-
stdout=subprocess.PIPE,
|
103
|
-
stderr=subprocess.PIPE,
|
104
|
-
text=True,
|
105
|
-
)
|
106
|
-
return result.returncode == 0
|
107
|
-
except FileNotFoundError:
|
108
|
-
return False
|
109
|
-
|
110
|
-
def install_allure():
|
111
|
-
"""根据操作系统自动安装 Allure"""
|
112
|
-
system = platform.system().lower()
|
113
|
-
|
114
|
-
if system == "windows":
|
115
|
-
# Windows 使用 scoop 安装
|
116
|
-
if not shutil.which("scoop"):
|
117
|
-
print("⚠️ 请先安装 Scoop (https://scoop.sh/)")
|
118
|
-
exit(1)
|
119
|
-
subprocess.run(["scoop", "install", "allure"], check=True)
|
120
|
-
else:
|
121
|
-
print(f"❌ 不支持的操作系统: {system}")
|
122
|
-
exit(1)
|
123
|
-
|
124
|
-
def generate_allure_report(self) -> bool:
|
125
|
-
"""生成Allure报告"""
|
126
|
-
try:
|
127
|
-
cmd = [self.allure_manager.allure_path, "generate", self.allure_results, "-o", self.args.report_dir, "--clean"]
|
128
|
-
subprocess.run(
|
129
|
-
cmd,
|
130
|
-
check=True,
|
131
|
-
timeout=300
|
132
|
-
)
|
133
|
-
# logger.info(f"generate_allure_report Executing: {' '.join(cmd)}")
|
134
|
-
except subprocess.CalledProcessError as e:
|
135
|
-
logger.error(f"Report generation failed: {e}")
|
136
96
|
def _handle_allure_report(self) -> bool:
|
137
97
|
"""Handle Allure report serving and browser opening."""
|
138
98
|
if self.allure_manager.is_server_running():
|
@@ -2,7 +2,7 @@ WebsocketTest/__init__.py,sha256=u71SAVmbgsyp0K21kilo7pIDgeyxsaHAi93clC0OIPQ,556
|
|
2
2
|
WebsocketTest/allure_installer.py,sha256=OicATAGPC2EBMCxjoKlgFFJA8lfT-qDjakLWwDA8IAU,6194
|
3
3
|
WebsocketTest/cli.py,sha256=HcnjgRLM404fVszrSRAf7G1y9XLJ_ZetVtRIwavS4xE,987
|
4
4
|
WebsocketTest/conftest.py,sha256=xD7IK7airvGH9cDbES-G9PaKUdPazVuv3utB_UfRV-8,1875
|
5
|
-
WebsocketTest/run_tests.py,sha256=
|
5
|
+
WebsocketTest/run_tests.py,sha256=h9nUW5qi48ZrQC8IasaS8zl3jKis-TrA7ije224VAi0,5697
|
6
6
|
WebsocketTest/caseScript/Aqua.py,sha256=dTjVd4FPka5lMUvxa1DsGTJ6gx7NRo5NGNunrue3d0M,7439
|
7
7
|
WebsocketTest/caseScript/Gateway.py,sha256=4_BlJPbn6X_eFHYz2orn3fXPQMPz5jRdUlj6tXkeX2Q,11748
|
8
8
|
WebsocketTest/caseScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -82,8 +82,8 @@ WebsocketTest/templates/basic/testcase/__pycache__/test_gateway.cpython-310-pyte
|
|
82
82
|
WebsocketTest/templates/basic/testcase/__pycache__/test_gateway1.cpython-310-pytest-8.2.2.pyc,sha256=9_jiZtyNwQfXe-Jz1acHxrwz5snYfBngqgTFtIWhRNA,5684
|
83
83
|
WebsocketTest/templates/basic/testcase/__pycache__/test_gatewaybak.cpython-310-pytest-8.2.2.pyc,sha256=L50gNeQvSuFq2e-arnmKqYJR75ZrThiVaiIow5UUTjo,5587
|
84
84
|
WebsocketTest/templates/basic/testcase/__pycache__/test_limin.cpython-310-pytest-8.2.2.pyc,sha256=hx7j0GNxlgTscC36dUBHeo401Mo3bRt1cq6t7e7dDSA,3434
|
85
|
-
websockettest-1.0.
|
86
|
-
websockettest-1.0.
|
87
|
-
websockettest-1.0.
|
88
|
-
websockettest-1.0.
|
89
|
-
websockettest-1.0.
|
85
|
+
websockettest-1.0.13.dist-info/METADATA,sha256=WfhXvm8aInatCkuFKlY2jVluV9zlHrtv93ukoVVdkFI,334
|
86
|
+
websockettest-1.0.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
87
|
+
websockettest-1.0.13.dist-info/entry_points.txt,sha256=9-0RmZ0nVgfDKaDFyk5xv8arp_us-7w5Negvis1CvYc,46
|
88
|
+
websockettest-1.0.13.dist-info/top_level.txt,sha256=2iF1gZSbXLjVFOe5ZKQiCLC1FzAwhcQUM88yGi-vrCU,14
|
89
|
+
websockettest-1.0.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|