Exemple #1
0
 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')
Exemple #2
0
 def test_database(self):
     '''
     加工厂数据共享新建分类
     :return:
     '''
     test = DmpLogin()
     postsearch = test.get_api("/api/db/database")
     print(postsearch)
     assert postsearch['data']["databaseName"] == 'slkfjlesfjl失而复得'
Exemple #3
0
    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'
Exemple #4
0
 def test_lable_search_private_info(self):
     test = DmpLogin()
     postsearch = test.get_api("/labelDimension/getDimensionListData",
                               {"searchContent": "ddtest", "page": 1, "size": 20})
     print(postsearch)
Exemple #5
0
 def test_label_scope(self):
     test = DmpLogin()
     postsearch = test.get_api("/labelDimension/getDimensionListData",
                               { "page": 1, "size": 20})
     print(postsearch)
     assert postsearch['total']>=10
Exemple #6
0
 def test_getSettingData(self):
     test = DmpLogin()
     postsearch = test.get_api("/gzapi/getSettingData")
     print(postsearch)
Exemple #7
0
 def test_getIdiEtlShow(self):
     test = DmpLogin()
     postsearch = test.get_api("/trans/getIdiEtlShow")
     print(postsearch)