更新所有压测脚本,实现项目中运行和单独运行都可启动脚本
修复单独运行脚本时路径错误问题
14 files modified
24 files deleted
408604 ■■■■■ changed files
测试组/脚本/造数脚本2/华东师范大学二期/并发入驻笼位.py 18 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/华东师范大学二期/并发创建笼架.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/华东师范大学二期/并发笼位标记.py 19 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/华东师范大学二期/新建技术服务费.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/昆明理工大学/个体信息.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/昆明理工大学/临床检测.py 21 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/昆明理工大学/动物检疫.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/昆明理工大学/病毒检测.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/河北大学/设备维保通知.py 19 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/河北大学/设备维保通知_优化.py 17 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/河北大学/设备维保通知_压测.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.details.csv 10001 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.docx patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.html 50 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.summary.json 91983 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917_latency_hist.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917_rps.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.details.csv 10001 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.docx patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.html 50 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.summary.json 92095 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052_latency_hist.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052_rps.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.details.csv 10001 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.docx patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.html 50 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.summary.json 91971 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050_latency_hist.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050_rps.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.details.csv 10001 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.docx patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.html 50 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.summary.json 92095 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009_latency_hist.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009_rps.png patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/动物房管理新建动物房.py 18 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/清华/我的动物.py 19 ●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/齐鲁/pda更新笼位.py 17 ●●●●● patch | view | raw | blame | history
测试组/脚本/造数脚本2/华东师范大学二期/并发入驻笼位.py
@@ -10,16 +10,22 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
import pymysql
import random
@@ -47,7 +53,7 @@
}
NUM_WORKERS = 100
TOTAL_REQUESTS = 10000
TOTAL_REQUESTS = 1
MAX_RETRIES = 3
REQUEST_TIMEOUT = 60
OUTPUT_DIR = './load_test_report'
@@ -358,7 +364,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/华东师范大学二期/并发创建笼架.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -154,7 +162,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/华东师范大学二期/并发笼位标记.py
@@ -10,18 +10,27 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
import pymysql
import random
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -261,7 +270,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/华东师范大学二期/新建技术服务费.py
@@ -12,16 +12,24 @@
import os
import random
import pymysql
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -258,7 +266,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, r'H:\项目\造数脚本\Util\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, r'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/昆明理工大学/个体信息.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -198,7 +206,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/昆明理工大学/临床检测.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
  """获取指定层级的父目录"""
  path = os.path.abspath(file_path)
  for _ in range(levels):
    path = os.path.dirname(path)
  return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -41,9 +49,6 @@
# --- 初始化 ---
dingtalk_helper = DingTalkHelper(ACCESS_TOKEN, SECRET)
# LARGE_CONTENT = "备注压测中" * 10
# FILES_PATH = "/userfiles/1463828311460319233/程序附件//baoyi/individual/individualrecord/2025/10/cs.jpg"
def create_animal_data(idx: int):
@@ -22006,7 +22011,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/昆明理工大学/动物检疫.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
  """获取指定层级的父目录"""
  path = os.path.abspath(file_path)
  for _ in range(levels):
    path = os.path.dirname(path)
  return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -15165,7 +15173,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/昆明理工大学/病毒检测.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
  """获取指定层级的父目录"""
  path = os.path.abspath(file_path)
  for _ in range(levels):
    path = os.path.dirname(path)
  return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -158,7 +166,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/河北大学/设备维保通知.py
@@ -1,10 +1,23 @@
import sys
import os
import asyncio
import aiohttp
import traceback
import time
from Util.random_util import RandomUtil  # 保证该模块中提供了生成随机数字和随机日期的函数
from Util.dingtalk_helper import DingTalkHelper
from tqdm import tqdm  # 导入进度条库
import time
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# 钉钉机器人 access_token 和 secret
ACCESS_TOKEN = '4625f6690acd9347fae5b3a05af598be63e73d604b933a9b3902425b8f136d4d'
测试组/脚本/造数脚本2/河北大学/设备维保通知_优化.py
@@ -1,12 +1,25 @@
import sys
import os
import asyncio
import aiohttp
import traceback
import time
from Util.random_util import RandomUtil  # 你已有的工具
from Util.dingtalk_helper import DingTalkHelper
from tqdm import tqdm
import logging
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# 钉钉机器人 access_token 和 secret
ACCESS_TOKEN = '4625f6690acd9347fae5b3a05af598be63e73d604b933a9b3902425b8f136d4d'
SECRET = 'SEC3b6937550bd297b5491855f6f40c2ff1b41bc8c495e118ba9848742b1ddf8f19'
测试组/脚本/造数脚本2/河北大学/设备维保通知_压测.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -138,7 +146,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.details.csv
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.docx
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.html
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917.summary.json
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917_latency_hist.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_164917_rps.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.details.csv
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.docx
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.html
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052.summary.json
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052_latency_hist.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251112_175052_rps.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.details.csv
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.docx
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.html
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050.summary.json
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050_latency_hist.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_111050_rps.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.details.csv
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.docx
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.html
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009.summary.json
File was deleted
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009_latency_hist.png
Binary files differ
测试组/脚本/造数脚本2/清华/load_test_report/动物房管理新建动物房压测任务_20251114_112009_rps.png
Binary files differ
测试组/脚本/造数脚本2/清华/动物房管理新建动物房.py
@@ -10,16 +10,24 @@
"""
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
import traceback
import datetime
from tqdm import tqdm
from Util.random_util import RandomUtil
from Util.dingtalk_helper import DingTalkHelper
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
@@ -157,7 +165,7 @@
    try:
        import importlib.util
        script_dir = os.path.dirname(os.path.abspath(__file__))
        report_path = os.path.join(script_dir, 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py')
        report_path = os.path.join(script_dir, 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py')
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)
            report_module = importlib.util.module_from_spec(spec)
测试组/脚本/造数脚本2/清华/我的动物.py
@@ -1,10 +1,23 @@
import sys
import os
import asyncio
import aiohttp
import traceback
import time
from Util.random_util import RandomUtil  # 保证该模块中提供了生成随机数字和随机日期的函数
from Util.dingtalk_helper import DingTalkHelper
from tqdm import tqdm  # 导入进度条库
import time
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.random_util import RandomUtil
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# 钉钉机器人 access_token 和 secret
ACCESS_TOKEN = '4625f6690acd9347fae5b3a05af598be63e73d604b933a9b3902425b8f136d4d'
测试组/脚本/造数脚本2/齐鲁/pda更新笼位.py
@@ -1,7 +1,5 @@
import sys
import os
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import asyncio
import aiohttp
import time
@@ -11,10 +9,17 @@
import pymysql
import random
from tqdm import tqdm
from Util.dingtalk_helper import DingTalkHelper
# 将上一级目录加入模块搜索路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def get_parent_directory(file_path, levels=1):
    """获取指定层级的父目录"""
    path = os.path.abspath(file_path)
    for _ in range(levels):
        path = os.path.dirname(path)
    return path
parent_dir = get_parent_directory(__file__, 5)  # 获取上五级目录
sys.path.append(parent_dir)
from 测试组.脚本.造数脚本2.Util.dingtalk_helper import DingTalkHelper
# --- 配置 ---
ACCESS_TOKEN = '4625f6690acd9347fae5b3a05af598be63e73d604b933a9b3902425b8f136d4d'
@@ -253,7 +258,7 @@
        import importlib.util
        # 使用您提供的绝对路径
        report_path = 'H:\\项目\\造数脚本\\Util\\stress_test_report_generator.py'
        report_path = 'H:\\项目\\archive\\测试组\\脚本\\造数脚本2\\Util\\stress_test_report_generator.py'
        if os.path.exists(report_path):
            spec = importlib.util.spec_from_file_location('report_module', report_path)