diff --git a/webmeter/core/engine.py b/webmeter/core/engine.py index 7bc6eaa..5c39aaa 100644 --- a/webmeter/core/engine.py +++ b/webmeter/core/engine.py @@ -34,6 +34,10 @@ def write_JmeterFile(cls, file, content) -> None: file_path = os.path.join(cls.JMETER_DIR, 'bin', file) Common.write_file_content(file_path, content) + @classmethod + def remote_hosts(cls): + pass + @classmethod def run(cls, content: dict, remote=False) -> int: diff --git a/webmeter/core/utils.py b/webmeter/core/utils.py index ccbfd35..5261740 100644 --- a/webmeter/core/utils.py +++ b/webmeter/core/utils.py @@ -3,6 +3,7 @@ from enum import Enum, unique import platform import psutil +import time from loguru import logger from xml.etree import ElementTree from typing import Optional diff --git a/webmeter/static/js/lan.js b/webmeter/static/js/lan.js index 22e6746..785b550 100644 --- a/webmeter/static/js/lan.js +++ b/webmeter/static/js/lan.js @@ -56,6 +56,25 @@ const ENGLISH = { 'browser_compatible_headers': 'Browser-compatible headers', 'parameters': 'Parameters', 'body_data': 'Body Data', + 'task':'Task', + 'plan':'Plan', + 'model':'Model', + 'threads':'Threads', + 'success_num':'Success Num', + 'fail_num':'Fail Num', + 'status':'Status', + 'start_time':'Start Time', + 'end_time':'End Time', + 'jmeter_config': 'JMETER CONFIG', + 'dashboard': 'Dashboard', + 'charts':'Charts', + 'test_and_report_info': 'Test and Report information', + 'requests_summary':'Requests Summary', + 'statistics':'Statistics', + 'response_times_over_time':'Response Times Over Time (ms)', + 'latencies_over_time': 'Latencies Over Time (ms)', + 'connect_time_over_time':'Connect Time Over Time (ms)', + 'screenshot':'ScreenShot' } @@ -117,4 +136,23 @@ const CHINESE = { 'browser_compatible_headers': '与浏览器兼容的头', 'parameters': '参数', 'body_data': '消息体数据', + 'task':'任务', + 'plan':'测试计划', + 'model':'模式', + 'threads':'线程数', + 'success_num':'成功数', + 'fail_num':'失败数', + 'status':'状态', + 'start_time':'开始时间', + 'end_time':'结束时间', + 'jmeter_config': 'JMETER配置文件', + 'dashboard': '汇总', + 'charts':'图表', + 'test_and_report_info': '测试和报告数据信息', + 'requests_summary':'请求详细', + 'statistics':'统计', + 'response_times_over_time':'响应时间(毫秒)', + 'latencies_over_time': '延迟时间(毫秒)', + 'connect_time_over_time':'连接时间(毫秒)', + 'screenshot':'截图' } \ No newline at end of file diff --git a/webmeter/templates/analysis.html b/webmeter/templates/analysis.html index 689c058..00c95c5 100644 --- a/webmeter/templates/analysis.html +++ b/webmeter/templates/analysis.html @@ -110,7 +110,7 @@