From f845522b103624009f8d2b321c65ed26a6c9c384 Mon Sep 17 00:00:00 2001 From: zhanhuasheng Date: Fri, 21 Mar 2025 18:40:35 +0800 Subject: [PATCH] bugfix --- TestData/automation/ai_test_data.py | 2 +- TestFile/automation/ai/product_select_sql.py | 2 +- YamlCase/inbox/team.yaml | 1 + conftest.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TestData/automation/ai_test_data.py b/TestData/automation/ai_test_data.py index a429cd1..5f5b59d 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 675ac9d..8efe3b3 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 624a1b1..befdb52 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 3929a41..26d9386 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) -- GitLab