import os

from common.common_func import commonFuc

pro_path=commonFuc().get_pro_path()
file_path=pro_path+r'\jmeter\内网采购订单下单.jmx'
print(file_path)
def run():
    file_path=pro_path+r'\jmeter\内网采购订单下单.jmx'
    print(file_path)
    cmd="jmeter -n -t %s -l result.jtl"%file_path
    print(cmd)



# run()
import os
from datetime import datetime
from threading import Timer

# 定时任务


def task():
    now = datetime.now()
    ts = now.strftime("%Y-%m-%d %H:%M:%S")
    print(datetime.now())
    a = os.system("jmeter -n -t %s"%file_path)
    print(a)

# 执行器


def func():
    task()
    # t = Timer(60*1, func)
    # t.start()


func()