Example #1
0
 def setup_class(self):
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.wf = ManageConfig()
     self.ppid = 171954
     self.handle = self.openapi["handle"]
     self.floor = self.openapi["floor"]
Example #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)
Example #3
0
 def setup_class(self):
     '''
     定义接口需要用到的字段信息
     '''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.orgId = ''
Example #4
0
 def setup_class(self):
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.wf = ManageConfig()
     self.ppid = 167619
     self.ppid_list = []
     self.ppid_baseBuilding_list = []
     self.ppid_houseBuilding_list = []
Example #5
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)
Example #6
0
 def setup_class(self):
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.wf = ManageConfig()
     self.ppid = 171957
     self.uuid = ''
     self.docid = ''
     self.uuid_list = []
     self.docid_list = []
Example #7
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)
Example #8
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)
Example #9
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 = ''
 def setup_class(self):
     '''
     定义接口需要用到的字段信息
     '''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.ppid = 131938
     self.floor = 1
     self.handler = self.openapi["handle"]
     self.componentId = 'd7851b39-aacd-4329-9676-596e429393e9'
Example #11
0
 def setup_class(self):
     '''
     定义接口需要用到的字段信息
     '''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.ppid = 171954
     self.floor = self.openapi["floor"]
     self.handler = self.openapi["handle"]
     self.projType = self.openapi["projType"]
Example #12
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 = ''
Example #13
0
 def setup_class(self):
     '''定义接口需要用到的字段信息'''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.ppid = 168009
     self.floor = self.openapi["floor"]
     self.handler = self.openapi["handle"]
     self.coid = ''
     self.typeId = ''
     self.typeId_list = []
     self.coid_list = []
Example #14
0
 def setup_class(self):
     '''定义接口需要用到的字段信息'''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.ppid = self.openapi['ppid_Govern']
     self.deptId = self.openapi["deptid"]
     self.projType = self.openapi["projType"]
     self.node = self.openapi["node"]
     self.unid = self.openapi["unid_Govern"]
     self.deptId_all = self.openapi["deptid_all_Govern"]
     self.code = self.openapi["code"]
     self.code_rcjSummary = self.openapi["code_rcjSummary"]
     self.uuidkey_qtxm = self.openapi["uuidkey_qtxm"]
     self.uuidkey_gfsj = self.openapi["uuidkey_gfsj"]
Example #15
0
 def __init__(self, host, section, header=None):
     '''
     请求数据初始化
     @host:请求的地址前缀
     @header:请求头信息
     '''
     self.host = host
     self.header = header
     # 是否使用默认请求头
     if self.header is None:
         self.header = ManageConfig().getConfig('default')["json_header"]
     self.postSite = requests.session()
     self.section = section
     self.rf = ManageConfig().getConfig(self.section)
     self.wf = ManageConfig()
Example #16
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)
Example #17
0
 def test_lubansoft_Login(self):
     '''
     ShuanLiang_Login查询用户是否存在
     '''
     from suds.client import Client
     self.section = 'lubansoft'
     self.lubansoft = ManageConfig().getConfig(self.section)
     self.host = self.lubansoft["host"]
     self.username = self.lubansoft["username"]
     self.password = self.lubansoft["password"]
     loginParameter = {
         "computerName": "DESKTOP-S2CJPRR",
         "hardwareCodes":
         "0d80c194d531820c71de04a3998b435e-4ece03d1c7f03a151b241cbd455505ef",
         "intranet_IP": "172.16.21.178",
         "lubanNetVersion": "4.9.0.5",
         "password": self.password,
         "platform": "64",
         "productId": "3",
         "softwareEnvironment":
         "hostType=CAD;hostVer=2012;OSName=Windows 10;OSBit=64;OSVer=6-2;",
         "username": self.username,
         "version": "30.2.1"
     }
     loginWSDL = Client(f'{self.host}/webservice/clientInfo/LBClient?wsdl')
     res = loginWSDL.service.login(loginParameter)
     assert res["isValidated"] is True
Example #18
0
def CenterBuilder(CenterCAS):
    '''
    获取Builder登录凭证
    :return:
    '''
    section = 'demoEnterprise'
    rf = ManageConfig().getConfig(section)
    CenterBuilder = HttpMethod.sendRequest(rf['builder'], section=section)
    yield CenterBuilder
Example #19
0
def OpenAPIToken():
    '''
    登录获取token
    '''
    section = 'openapi'
    rf = ManageConfig().getConfig(section)
    OpenAPIToken = PublicLogin.OpenAPI(rf['apikey'], getStrMD5(rf['apikey']),
                                       section).Login()
    yield OpenAPIToken
Example #20
0
def LBBV(PDSCAS):
    '''
    获取LBBV登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    LBBV = HttpMethod.sendRequest(rf['lbbv'], section=section)
    yield LBBV
Example #21
0
def BimCO(PDSCAS):
    '''
    获取BimCO登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    BimCO = HttpMethod.sendRequest(rf['bimco'], section=section)
    yield BimCO
Example #22
0
def CenterProcess(CenterCAS):
    '''
    获取Builder登录凭证
    :return:
    '''
    section = 'center'
    rf = ManageConfig().getConfig(section)
    CenterBuilder = HttpMethod.sendRequest(rf['process'], section=section)
    yield CenterBuilder
Example #23
0
def Process(PDSCAS):
    '''
    获取Process登录凭证
    :return:
    '''
    section = 'mylubanapp'
    rf = ManageConfig().getConfig(section)
    Process = HttpMethod.sendRequest(rf['lbprocess'], section=section)
    yield Process
Example #24
0
def CenterCAS():
    '''
    获取Center CAS登录凭证
    :return:
    '''
    section = 'demoEnterprise'
    rf = ManageConfig().getConfig(section)
    PublicLogin.Center(rf["centerusername"], rf["centerpassword"],
                       section).Login()
    yield
Example #25
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
Example #26
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
Example #27
0
def PDSCAS():
    '''
    获取PDS登录凭证
    :return:
    '''
    section = 'sysadmin'
    rf = ManageConfig().getConfig(section)
    username = rf['newusername']
    password = "******"
    PublicLogin.BV(username, password, section='mylubanapp').Login()
    yield
Example #28
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
Example #29
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
 def setup_class(self):
     '''定义接口需要用到的字段信息'''
     self.wf = ManageConfig()
     self.section = 'openapi'
     self.openapi = ManageConfig().getConfig(self.section)
     self.deptId = '846f74592e5e4824b80a113058d67f67'