Commit 7087bec7 by zhangjingdong

修改脚本软件以及外置小程序名称

parent 1b8c0667
No preview for this file type
No preview for this file type
# coding = utf-8
# coding = utf-8
......@@ -63,8 +63,8 @@ class PostmanApi():
file = []
report_text= ""
report_text1 = ""
report_file = "/phantom/file/testreport/"
# report_file = "/Users/lucas/Documents/reporter/"
# report_file = "/phantom/file/testreport/"
report_file = "/Users/lucas/Documents/reporter/"
BASE_DIR = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
path = os.listdir(BASE_DIR)
at_the = time.strftime("%H:%M", time.localtime(time.time()))
......
{
{
......@@ -6,51 +6,6 @@
},
"item": [
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"id": "ab616fda-d96b-4f71-a9aa-6c59ce279e71",
"exec": [
"// console.log(\"----------------responseBody--------------\"+responseBody);",
"var jsonData = JSON.parse(responseBody);",
"// console.log(\"----------------jsonData.data.accessToken--------------\"+jsonData.data.accessToken);",
"",
"if(jsonData.data !== null || jsonData.data !==\"\")",
"{",
" tests[\"accessToken\"] = true;",
" postman.setEnvironmentVariable(\"access-Token\",jsonData.data.accessToken);",
" ",
"}",
"else",
"{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"accessToken\"]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": {{userPassword}},\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
},
{
"name": "软文查看详情接口",
"event": [
{
......
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 sign in to comment