(testcase_file: Text)
return testcase_obj
load testcase file and validate with pydantic model
load testcase file and validate with pydantic model
load testcase file and validate with pydantic model
def load_testcase_file(testcase_file: Text) -> TestCase:
    """load testcase file and validate with pydantic model"""
    testcase_content = load_test_file(testcase_file)
    testcase_obj = load_testcase(testcase_content)
    testcase_obj.config.path = testcase_file
    return testcase_obj
def load_testcase_file ( testcase_file : Text ) -> TestCase : testcase_content = load_test_file ( testcase_file ) testcase_obj = load_testcase ( testcase_content ) testcase_obj . config . path = testcase_file return testcase_obj