def test_save_slaveServer(self): test = DmpLogin() post = test.get_api("/subscribemanagement/subscribelist", params={ "size": 10, "page": 0 }) util.info(post) assert (post['rtCode'] == '1' or post['rtCode'] == '2')
def test_database(self): ''' 加工厂数据共享新建分类 :return: ''' test = DmpLogin() postsearch = test.get_api("/api/db/database") print(postsearch) assert postsearch['data']["databaseName"] == 'slkfjlesfjl失而复得'
def test_del_label_scope(self): test = DmpLogin() # try: data = {"dimname": "ddtest", "dimcode": "ddtest", "descriptions": "test", "pid": "-1", "orderid": "1"} postsave = test.post_api("/labelDimension/saveTagDimension", json=data) print(postsave) postsearch = test.get_api("/labelDimension/getDimensionListData", {"searchContent": "ddtest", "page": 1, "size": 20}) print(postsearch) post = test.post_api("/labelDimension/deleteDimensionList", json=[postsearch['rows'][0]['ID']]) util.info(post) # except Exception as e: # print(e) # util.info(e) assert postsave['code'] == '200' assert postsearch['total'] == 1 assert post['code'] == '200'
def test_lable_search_private_info(self): test = DmpLogin() postsearch = test.get_api("/labelDimension/getDimensionListData", {"searchContent": "ddtest", "page": 1, "size": 20}) print(postsearch)
def test_label_scope(self): test = DmpLogin() postsearch = test.get_api("/labelDimension/getDimensionListData", { "page": 1, "size": 20}) print(postsearch) assert postsearch['total']>=10
def test_getSettingData(self): test = DmpLogin() postsearch = test.get_api("/gzapi/getSettingData") print(postsearch)
def test_getIdiEtlShow(self): test = DmpLogin() postsearch = test.get_api("/trans/getIdiEtlShow") print(postsearch)