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