1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- """
- @Authors: yangzihao(yangzihao@china-icv.cn)
- @Data: 2024/01/30
- @Last Modified: 2024/01/30
- @Summary: Evaluateion functions
- """
- import os
- import sys
- import time
- from multiple_case_eval import multiple_cases_eval
- import log
- if __name__ == "__main__":
- from warnings import simplefilter
- simplefilter(action="ignore")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- configPath = r"./config/config0925.json"
- singleReportPath = r"./reportTest/cases-dict-0925.json"
- reportPath = r"./result/report_mul-0925.json"
- logPath = './log.log'
- log.setup_logger(logPath)
- logger = log.get_logger()
- if not os.path.exists(configPath):
- print('Invalid configPath!')
- logger.error("MULTIPLE_CASES_EVAL: Invalid configPath!")
- elif not os.path.exists(singleReportPath):
- print('Invalid singleReportPath!')
- logger.error("MULTIPLE_CASES_EVAL: Invalid singleReportPath!")
- else:
-
- print("MULTIPLE_CASES_EVAL程序开始运行:")
- print(f" configPath: {configPath}, \n singleReportPath: {singleReportPath}, \n reportPath: {reportPath}")
- t1 = time.time()
- multiple_cases_eval(configPath, singleReportPath, reportPath)
- t2 = time.time()
- print(f"程序结束,执行时间:{int(t2 - t1)} s")
- logger.info("MULTIPLE_CASES_EVAL: End.")
|