Beispiel #1
0
def BimAadminLogin():
    '''
    BIM Aadmin运维管理系统登录
    :return:
    '''
    section = 'sysadmin'
    BimAadminLogin = PublicLogin.BimAdmin(section=section).Login()
    yield BimAadminLogin
Beispiel #2
0
def OpenAPIToken():
    '''
    登录获取token
    '''
    section = 'openapi'
    rf = ManageConfig().getConfig(section)
    OpenAPIToken = PublicLogin.OpenAPI(rf['apikey'], getStrMD5(rf['apikey']),
                                       section).Login()
    yield OpenAPIToken
Beispiel #3
0
def CenterCAS():
    '''
    获取Center CAS登录凭证
    :return:
    '''
    section = 'demoEnterprise'
    rf = ManageConfig().getConfig(section)
    PublicLogin.Center(rf["centerusername"], rf["centerpassword"],
                       section).Login()
    yield
Beispiel #4
0
def BussinessLogin():
    '''
    Bussiness 业务管理系统登录
    :return:
    '''
    section = 'Bussiness'
    rf = ManageConfig().getConfig(section)
    username = rf['username']
    password = rf['password']
    BussinessLogin = PublicLogin.Bussiness(username, password).Login()
    yield BussinessLogin
Beispiel #5
0
def PDSCAS():
    '''
    获取PDS登录凭证
    :return:
    '''
    section = 'sysadmin'
    rf = ManageConfig().getConfig(section)
    username = rf['newusername']
    password = "******"
    PublicLogin.BV(username, password, section='mylubanapp').Login()
    yield
Beispiel #6
0
def PDSCAS():
    '''
    获取PDS登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    username = rf['username']
    password = rf['password']
    PublicLogin.BV(username, password, section=section).Login()
    yield
Beispiel #7
0
def BimAppLogin():
    '''
    BIMApp 通行证系统登录
    :return:
    '''
    section = 'bimapp'
    rf = ManageConfig().getConfig(section)
    username = rf['username']
    password = rf['password']
    BimAppLogin = PublicLogin.Bimapp(username, password,
                                     section=section).Login()
    yield BimAppLogin
Beispiel #8
0
def MylubanWebLogin():
    '''
    Myluban web 登录
    :return:
    '''
    section = 'MylubanWeb'
    rf = ManageConfig().getConfig(section)
    username = rf['username']
    password = rf['password']
    MylubanWebLogin = PublicLogin.MylubanWeb(username,
                                             password,
                                             section=section).Login()
    yield MylubanWebLogin