Skip to content

Commit

Permalink
new tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorixx committed Mar 27, 2024
1 parent b754d0f commit 94b5b75
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion tests/autotests.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,44 @@
}
},
"response": []
},
{
"name": "Get champ data Copy",
"event": [
{
"listen": "test",
"script": {
"exec": [
"console.log(pm.request)"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/api/teacher/champs/:id",
"host": [
"{{url}}"
],
"path": [
"api",
"teacher",
"champs",
":id"
],
"variable": [
{
"key": "id",
"value": "1"
}
]
}
},
"response": []
}
]
},
Expand All @@ -200,6 +238,8 @@
" var jsonData = pm.response.json();\r",
" pm.expect(jsonData.success).to.eql(true);\r",
"});\r",
"\r",
"console.log(pm.request)\r",
""
],
"type": "text/javascript",
Expand All @@ -212,7 +252,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"1\",\r\n \"login\": \"17773\",\r\n \"password\": \"01098\"\r\n}",
"raw": "{\r\n \"id\": \"1\",\r\n \"login\": \"{{GEN_user_login}}\",\r\n \"password\": \"{{GEN_user_password}}\"\r\n}",
"options": {
"raw": {
"language": "json"
Expand Down

0 comments on commit 94b5b75

Please sign in to comment.