def get_testcaselist(xmlFilepath): GlobalConfig.TestCaseFilePath = xmlFilepath root = ParseXMLToElement.get_root(xmlFilepath) elementlist = ParseXMLToElement.get_children_by_tag(root, "TestCase") testcaselist = list() casemanager = StepsCaseManager() for element in elementlist: testcase = casemanager.initialize_testcase(element) testcaselist.append(testcase) return testcaselist
def get_testcaselist(xmlFilepath): GlobalConfig.TestCaseFilePath=xmlFilepath root=ParseXMLToElement.get_root(xmlFilepath) elementlist=ParseXMLToElement.get_children_by_tag(root,"TestCase") testcaselist=list() casemanager=StepsCaseManager() for element in elementlist: testcase=casemanager.initialize_testcase(element) testcaselist.append(testcase) return testcaselist
def __init__(self): '''初始化管理器 ''' self.root=self.root=ParseXMLToElement.get_root(GlobalConfig.UIElementFilePath)
def __init__(self): """初始化管理器 """ self.root = self.root = ParseXMLToElement.get_root(GlobalConfig.UIElementFilePath)
def __init__(self): '''初始化管理器 ''' self.root=self.root=ParseXMLToElement.get_root(GlobalConfig.TestCaseFilePath)
def __init__(self): ''' Constructor ''' self.root=self.root=ParseXMLToElement.get_root(GlobalConfig.StepParameterFilePath)