def BimAadminLogin(): ''' BIM Aadmin运维管理系统登录 :return: ''' section = 'sysadmin' BimAadminLogin = PublicLogin.BimAdmin(section=section).Login() yield BimAadminLogin
def OpenAPIToken(): ''' 登录获取token ''' section = 'openapi' rf = ManageConfig().getConfig(section) OpenAPIToken = PublicLogin.OpenAPI(rf['apikey'], getStrMD5(rf['apikey']), section).Login() yield OpenAPIToken
def CenterCAS(): ''' 获取Center CAS登录凭证 :return: ''' section = 'demoEnterprise' rf = ManageConfig().getConfig(section) PublicLogin.Center(rf["centerusername"], rf["centerpassword"], section).Login() yield
def BussinessLogin(): ''' Bussiness 业务管理系统登录 :return: ''' section = 'Bussiness' rf = ManageConfig().getConfig(section) username = rf['username'] password = rf['password'] BussinessLogin = PublicLogin.Bussiness(username, password).Login() yield BussinessLogin
def PDSCAS(): ''' 获取PDS登录凭证 :return: ''' section = 'sysadmin' rf = ManageConfig().getConfig(section) username = rf['newusername'] password = "******" PublicLogin.BV(username, password, section='mylubanapp').Login() yield
def PDSCAS(): ''' 获取PDS登录凭证 :return: ''' section = 'mylubanapp' rf = ManageConfig().getConfig(section) username = rf['username'] password = rf['password'] PublicLogin.BV(username, password, section=section).Login() yield
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
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