api1: title: 检查会话详情 url: /api/v1/chatRoom/roomDetail method: post before_sql: inbox/ticketDetail_select.py data: {"roomId":"${ticket_room_id}","v":"${v}"} expected: - eq: {"$.code" : 0} - eq: {"$.data.timeZone" : "${customer_time_zone}"} - eq: {"$.data.location" : "${customer_location}"} - eq: {"$.data.email" : "${customer_email}"} - eq: {"$.data.phone" : "${customer_phone}"} - eq: {"$.data.isVisitor" : "${customer_is_visitor}"} - eq: {"$.data.customerId" : "${customer_id}"} - eq: {"$.data.lastSeenTime" : "'${customer_last_msg_time}'"} api2: title: 设置笔记注释 url: /api/v1/note/edit method: post data: {"id":0,"uid":"${customer_id}","uType":1,"customerServiceName":"${customer_name}","noteMsg":"${noteMsg}","siteId":"${shopId}","v":"${v}"} set_value: {"note_id" : "$.data.id"} expected: - eq: {"$.code" : 0} api3: title: 检查笔记注释是否设置 url: /api/v1/note/list method: post data: {"uid":"${customer_id}","uType":1,"customerServiceName":"${customer_name}","siteId":"${shopId}","page":1,"pageSize":2,"v":"${v}"} expected: - eq: {"$.code" : 0} - eq: {"$.data.list[0].id" : "${note_id}"} - eq: {"$.data.list[?(@.id == '${note_id}')].noteMsg" : "${noteMsg}"} api4: title: 删除笔记注释 url: /api/v1/note/delete method: post data: {"id":"${note_id}","v":"${v}"} expected: - eq: {"$.code" : 0} api5: title: 检查获取shopify订单的接口是否正常 url: /api/v1/order/getCustomerOrderList method: post data: {"email":"${customer_email}","pageNum":1,"pageSize":2,"shopId":"${shopId}","phone":"${customer_phone}","v":"${v}"} expected: - eq: {"$.code" : 0} api6: title: 设置快捷发送为ctrl + enter url: /api/v1/customerService/updateCustomerServiceAccount method: post data: {"id":"${userId}","enterType":2,"v":"${v}"} expected: - eq: {"$.code" : 0} api7: title: 检查快捷发送是否设置成功 url: /api/v1/customerService/getCustomerServiceInfo?v=${v} method: get expected: - eq: {"$.code" : 0} - eq: {"$.data.enterType" : 2} api8: title: 设置快捷发送为shift + enter url: /api/v1/customerService/updateCustomerServiceAccount method: post data: {"id":"${userId}","enterType":3,"v":"${v}"} expected: - eq: {"$.code" : 0} api9: title: 检查快捷发送是否设置成功 url: /api/v1/customerService/getCustomerServiceInfo?v=${v} method: get expected: - eq: {"$.code" : 0} - eq: {"$.data.enterType" : 3} api10: title: 设置快捷发送为enter url: /api/v1/customerService/updateCustomerServiceAccount method: post data: {"id":"${userId}","enterType":1,"v":"${v}"} expected: - eq: {"$.code" : 0} api11: title: 检查快捷发送是否设置成功 url: /api/v1/customerService/getCustomerServiceInfo?v=${v} method: get expected: - eq: {"$.code" : 0} - eq: {"$.data.enterType" : 1} api12: title: b端获取房间号 url: /api/v1/chat/local/roomList method: post data: {"uid":"${userId}","uType":2,"platform":1,"siteIds":["${shopId}"],"status":1,"page":1,"pageSize":20,"sortName":"all","keyword":"","v":"${v}"} set_value: {"roomId": "$.data.list[?(@.fromID == '${customerId}')].roomId"} expected: - eq: {"$.code" : 0} - like: {"$.data.list[?(@.fromID == '${customerId}')].firstSendUid" : "${customerId}"} api13: title: 检查其他最后会话信息 url: /api/v1/chatRoom/closeList method: post data: {"uid":"${userId}","uType":2,"platform":1,"firstSendUid":"${customerId}","firstSendUidType":1,"siteId":"${shopId}","roomId":"${roomId}","page":1,"pageSize":2,"v":"${v}"} before_sql: inbox/ticketDetail_finalChat_select.py expected: - eq: {"$.code": 0} - eq: {"$.data.total": "${final_chat_num}"} - eq: {"$.data.list[0].roomId": "${first_chat_id}"} - eq: {"$.data.list[0].allocationName": "${first_chat_allocation_name}"} - eq: {"$.data.list[0].allocationUid": "${first_chat_allocation_uid}"} - eq: {"$.data.list[0].lastMsgContext": "${first_chat_last_msg}"} - eq: {"$.data.list[0].closeTime": "${first_chat_close_time}"}