import os

# temp_name = "process"
# if Test_ID == '':
#     logger_subfile = generate_logger_subfile()
# else:
#     logger_subfile = Test_ID
# file_path = os.path.join("Logs", logger_subfile)
# temp_path = os.path.join(file_path, f"{temp_name}.temp")


def record_testcase_process(testcase_info, file_path) -> None:
    temp_path = os.path.join(file_path, "testcase_process.temp")
    if testcase_info is not None:
        if not os.path.exists(temp_path):
            os.makedirs(os.path.dirname(temp_path), exist_ok=True)
        with open(temp_path, "w", encoding="utf-8") as temp:
            temp.write(testcase_info)
