diff --git a/TestData/automation/ai_test_data.py b/TestData/automation/ai_test_data.py index a429cd15eb397ac05752ccc2021f172bddc11ccc..5f5b59d9871c312fd5d329b01c5f8809d932ea16 100644 --- a/TestData/automation/ai_test_data.py +++ b/TestData/automation/ai_test_data.py @@ -1,7 +1,7 @@ from Utils.global_variate import Global from Utils.mockData_handler import data_handler class AiTestData(Global): - new_url = data_handler.url() + new_url = 'https://www.baidu.com' edit_url = data_handler.url() new_question = data_handler.name() new_answer = data_handler.name() diff --git a/TestFile/automation/ai/product_select_sql.py b/TestFile/automation/ai/product_select_sql.py index 675ac9d9cf0535efd1ea836e889d60f61915e6cc..8efe3b307957738e986bbdd8912daa36ebbe8746 100644 --- a/TestFile/automation/ai/product_select_sql.py +++ b/TestFile/automation/ai/product_select_sql.py @@ -1,6 +1,6 @@ from Utils.sql_handler import test_env_conn from TestData.automation.ai_test_data import AiTestData -product_select_sql = f'select * from `shopify_product` where shop_id = {AiTestData.shopId} and is_delete = 0 order by update_at desc' +product_select_sql = f'select * from `shopify_product` where shop_id = {AiTestData.shopId} and is_delete = 0 and status = "active" order by update_at desc' product_select_result = test_env_conn.select_many_value(sql=product_select_sql) diff --git a/YamlCase/inbox/team.yaml b/YamlCase/inbox/team.yaml index 624a1b13866a6e89a906b263be1c1b70347fd1c3..befdb52836d4f030e9bd3dd716439b6dbfc329b5 100644 --- a/YamlCase/inbox/team.yaml +++ b/YamlCase/inbox/team.yaml @@ -37,6 +37,7 @@ api4: expected: - eq: { "$.code": 0 } - eq: { "$.data.list.${team_id}.openCount": "${open_room_num_add}" } + sleep: 2 api5: title: 检查团队会话是否移除 diff --git a/conftest.py b/conftest.py index 3929a410047c054ee9df471480f265c2649bc004..26d93863a491724e574679f25a660f0a835fd07e 100644 --- a/conftest.py +++ b/conftest.py @@ -12,7 +12,7 @@ from Utils import webhook_handler session = requests.session() def backstage_login(): url = 'https://backstage.willdesk.com/api/v1/BackStage/AdminUser/login' - data = {"password":"123456","username":"willdesk"} + data = {"password":"f*[r&m4&d$*YrTq","username":"willdesk"} res = requests.post(url=url,json=data) token = res.json()['data']['token'] setattr(global_variate.Global,'backstage_token',token)