Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
def Process(PDSCAS):
    '''
    获取Process登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    Process = HttpMethod.sendRequest(rf['lbprocess'], section=section)
    yield Process
Esempio n. 4
0
def BimCO(PDSCAS):
    '''
    获取BimCO登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    BimCO = HttpMethod.sendRequest(rf['bimco'], section=section)
    yield BimCO
Esempio n. 5
0
def LBBV(PDSCAS):
    '''
    获取LBBV登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    LBBV = HttpMethod.sendRequest(rf['lbbv'], section=section)
    yield LBBV
Esempio n. 6
0
def CenterBuilder(CenterCAS):
    '''
    获取Builder登录凭证
    :return:
    '''
    section = 'demoEnterprise'
    rf = ManageConfig().getConfig(section)
    CenterBuilder = HttpMethod.sendRequest(rf['builder'], section=section)
    yield CenterBuilder
Esempio n. 7
0
 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)
Esempio n. 8
0
 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)
Esempio n. 9
0
def CenterProcess(CenterCAS):
    '''
    获取Builder登录凭证
    :return:
    '''
    section = 'center'
    rf = ManageConfig().getConfig(section)
    CenterBuilder = HttpMethod.sendRequest(rf['process'], section=section)
    yield CenterBuilder
Esempio n. 10
0
 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)
Esempio n. 11
0
 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 = ''
Esempio n. 12
0
 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 = ''