api1: title: 获取用户信息 url: /api/v1/customerService/listCustomerService method: post data: {"isActivation" : -1,"isDelete" : -1,"v" : "${v}"} set_value: {"picUrl" : "$.data.list[?(@.id == '${userId}')].profile"} expected: - eq: {"$.code" : 0} # #api2: # title: 更改账户名 # url: /api/v1/customerService/updateCustomerServiceAccount # method: post # data: {"id" : "${userId}" , "localLang" : "zh-CN" ,"name" : "${new_name}" , "profile" : "${picUrl}", "v" : "${v}"} # expected: # - eq: {"$.code" : 0} # - eq: {"$.msg" : "success"} # #api3: # title: 检查用户名 # url: /api/v1/customerService/listCustomerService # method: post # data: {"isActivation" : -1,"isDelete" : -1,"v" : "${v}"} # expected: # - eq: {"$.code" : 0} # - eq: {"$.data.list[?(@.id == '${userId}')].name" : "${new_name}"} # #api4: # title: 检查用户名 - 首页查询账户信息接口 # url: /api/v1/customerService/getCustomerServiceInfo?v=${v} # method: get # expected: # - eq: { "$.code": 0 } # - eq: { "$.data.name": "${new_name}" } # #api5: # title: 检查用户名 - inbox页面检查资源列表接口 # url: /api/v1/resource/getResourceItemList # method: post # data: {"resourceType" : "teammates" , "v" : "${v}"} # expected: # - eq: {"$.code" : 0} # - eq: {"$.data.list[?(@.relId == '${userId}')].name" : "${new_name}"} # #api6: # title: 更改用户的设置语言 # url: /api/v1/customerService/updateCustomerServiceAccount # method: post # data: {"id" : "${userId}" , "localLang" : "${target_language}" , "profile" : "${picUrl}", "v" : "${v}"} # after_sql: /account/account_selectLanguage.py # expected: # - eq: {"$.code" : 0} # - eq: {"$.msg" : "success"} # #api8: # title: 检查翻译文本接口 # url: /api/v1/translate/transKeyValue # before_sql: /account/account_selectTransResult.py # method: post # data: {"keyValue" : {"${trans_key}" : "${originValue}"},"targetLang" : "${target_language}","transType" : 1,"v" : "${v}"} # expected: # - eq: {"$.code": 0 } # - eq: {"$.data.translated" : {"${trans_key}" : "${transValue}"}} # #api9: # title: 检查翻译文本接口 - 2 # url: /api/v1/translate/transText # method: post # data: {"targetLang" : "English","text" : ["${originValue}"]} # expected: # - eq: {"$.code": 0 } # - eq: {"$.data.translated" : ["${originValue}"]} # # #api10: # title: 还原设置 # url: /api/v1/customerService/updateCustomerServiceAccount # method: post # data: {"id" : "${userId}" , "localLang" : "${origin_language}" ,"name" : "${old_name}", "profile" : "${picUrl}", "v" : "${v}"} # expected: # - eq: {"$.code" : 0} # - eq: {"$.msg" : "success"}