def __init__(self, username, password, section='Bussiness'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.username = username self.password = password self.BussinessLogin = HttpMethod.sendRequest(self.rf['host'], section=self.section)
def __init__(self, section='sysadmin'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.header = ManageConfig().getConfig('default')["urlencoded_header"] self.body = self.rf["logininfo"] self.BimAdminLogin = HttpMethod.sendRequest(self.rf['host'], section=self.section)
def Process(PDSCAS): ''' 获取Process登录凭证 :return: ''' section = 'mylubanapp' rf = ManageConfig().getConfig(section) Process = HttpMethod.sendRequest(rf['lbprocess'], section=section) yield Process
def BimCO(PDSCAS): ''' 获取BimCO登录凭证 :return: ''' section = 'mylubanapp' rf = ManageConfig().getConfig(section) BimCO = HttpMethod.sendRequest(rf['bimco'], section=section) yield BimCO
def LBBV(PDSCAS): ''' 获取LBBV登录凭证 :return: ''' section = 'mylubanapp' rf = ManageConfig().getConfig(section) LBBV = HttpMethod.sendRequest(rf['lbbv'], section=section) yield LBBV
def CenterBuilder(CenterCAS): ''' 获取Builder登录凭证 :return: ''' section = 'demoEnterprise' rf = ManageConfig().getConfig(section) CenterBuilder = HttpMethod.sendRequest(rf['builder'], section=section) yield CenterBuilder
def __init__(self, username, password, section='lubansoft'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.username = username self.password = password self.header = ManageConfig().getConfig('default')["soap_header"] self.lubansoftLogin = HttpMethod.sendRequest(self.rf['host'], section=self.section, header=self.header)
def __init__(self, apikey, apisecret, section='openapi'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.wf = ManageConfig() self.apikey = 'd46e1fcf4c07ce4a69ee07e4134bcef1' self.apisecret = '6659d4d1cdba61ceb1db9942a4a74f41' self.username = '******' self.OpenAPIToken = HttpMethod.sendRequest(self.rf['openapiurl'], section=self.section)
def CenterProcess(CenterCAS): ''' 获取Builder登录凭证 :return: ''' section = 'center' rf = ManageConfig().getConfig(section) CenterBuilder = HttpMethod.sendRequest(rf['process'], section=section) yield CenterBuilder
def __init__(self, username, password, section='bimapp'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.wf = ManageConfig() self.username = Base.ToBase64(username) self.password = password self.token = '' self.AcAddress = '' self.BimappLogin = HttpMethod.sendRequest(self.rf['host'], section=self.section)
def __init__(self, centerusername, centerpassword, section='center'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.wf = ManageConfig() self.productId = self.rf['centerProductId'] self.username = centerusername self.password = centerpassword self.header = ManageConfig().getConfig('default')["plain_header"] self.CenterLogin = HttpMethod.sendRequest(self.rf['pds'], section=self.section) self.epid = ''
def __init__(self, username, password, section='mylubanapp'): self.section = section self.rf = ManageConfig().getConfig(self.section) self.wf = ManageConfig() self.productId = self.rf['BVproductId'] self.username = username self.password = password self.header = ManageConfig().getConfig('default')["plain_header"] self.casLogin = HttpMethod.sendRequest(self.rf['pds'], section=self.section) self.epid = ''