26 lines
658 B
Python
26 lines
658 B
Python
"""main.py - MIL SDK 测试示例"""
|
|
from pathlib import Path
|
|
from src.core import setup_logging, read_excel_data,read_excel_case,create_excel_case
|
|
|
|
|
|
def main():
|
|
setup_logging()
|
|
|
|
sample_path = Path(__file__).parent / "sample.xlsx"
|
|
case_path = Path(__file__).parent / "case.xlsx"
|
|
excel_path = Path(__file__).parent
|
|
|
|
|
|
# print(f"读取文件: {sample_path}")
|
|
data_dict = read_excel_data(sample_path, return_object=False)
|
|
pass
|
|
# print(data_dict)
|
|
case_dict = read_excel_case(case_path,data_dict,True)
|
|
pass
|
|
create_excel_case(excel_path,data_dict,case_dict)
|
|
# print(case_dict)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |