auto_test_dev/MAIN_YM.py

50 lines
1.3 KiB
Python

# !/usr/bin/python
# -*- coding: utf-8 -*-
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import threading
import time
# # 要并发执行的任务函数
# def task(thread_name, delay):
# print(f"Thread {thread_name} starting")
# time.sleep(delay)
# print(f"Thread {thread_name} finished")
#
#
# # 主程序
# def main():
# # 创建线程列表
# threads = []
# # 创建线程并启动
# for i in range(3):
# t = threading.Thread(target=task, args=("Thread-{}".format(i), i))
# threads.append(t)
# t.start()
#
# # 等待所有线程完成
# for t in threads:
# t.join()
#
#
# if __name__ == "__main__":
# main()
def print_hi(name):
from commons.EngineX import Engine, NotificationModule
# Use a breakpoint in the code line below to debug your script.
print(f'--- Hi, {name} ---\n') # Press Ctrl+F8 to toggle the breakpoint.
print(f"=== Start of Test Suite ===")
return_list = Engine().run_test_suite()
NotificationModule().send_msg(return_list)
print(f"=== End of Test Suite ===")
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi("YiMao Autotest")