-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_config.json
More file actions
67 lines (67 loc) · 1.95 KB
/
sample_config.json
File metadata and controls
67 lines (67 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"name": "Sample API Test Suite",
"base_url": "https://jsonplaceholder.typicode.com",
"concurrent_requests": 3,
"test_duration_seconds": 20,
"warmup_requests": 2,
"description": "Sample test suite for testing JSONPlaceholder API endpoints",
"endpoints": [
{
"name": "Get Posts",
"url": "/posts",
"method": "GET",
"expected_status_code": 200,
"description": "Get list of posts",
"timeout": 10
},
{
"name": "Get Single Post",
"url": "/posts/1",
"method": "GET",
"expected_status_code": 200,
"description": "Get single post by ID",
"timeout": 10
},
{
"name": "Get Comments",
"url": "/posts/1/comments",
"method": "GET",
"expected_status_code": 200,
"description": "Get comments for a post",
"timeout": 10
},
{
"name": "Create Post",
"url": "/posts",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"json_data": {
"title": "Test Post",
"body": "This is a test post",
"userId": 1
},
"expected_status_code": 201,
"description": "Create a new post",
"timeout": 10
},
{
"name": "Update Post",
"url": "/posts/1",
"method": "PUT",
"headers": {
"Content-Type": "application/json"
},
"json_data": {
"id": 1,
"title": "Updated Post",
"body": "This post has been updated",
"userId": 1
},
"expected_status_code": 200,
"description": "Update an existing post",
"timeout": 10
}
]
}