Commit f845522b authored by zhanhuasheng's avatar zhanhuasheng

bugfix

parent 3efe469c
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()
......
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)
......
......@@ -37,6 +37,7 @@ api4:
expected:
- eq: { "$.code": 0 }
- eq: { "$.data.list.${team_id}.openCount": "${open_room_num_add}" }
sleep: 2
api5:
title: 检查团队会话是否移除
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment