newman-reporter-qase 1.0.5 → 1.0.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -9
- package/dist/index.d.ts +12 -6
- package/dist/index.js +289 -87
- package/dist/index.js.map +1 -1
- package/dist/reportBulk.js +30 -0
- package/examples/package-lock.json +19168 -0
- package/{example → examples}/package.json +1 -1
- package/examples/sample-collection.json +100 -0
- package/examples/screenshots/demo.gif +0 -0
- package/{example → examples}/screenshots/screenshot.png +0 -0
- package/package.json +3 -3
- package/example/package-lock.json +0 -7713
- package/example/sample-collection.json +0 -34
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "newman run ./sample-collection.json -r qase --reporter-qase-logging --reporter-qase-projectCode
|
|
7
|
+
"test": "newman run ./sample-collection.json -r qase --reporter-qase-logging --reporter-qase-projectCode project_code --reporter-qase-apiToken api_key --reporter-qase-rootSuiteTitle 'Newman tests'"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [],
|
|
10
10
|
"author": "",
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "549b1242-0882-4fbe-8e6e-aa77b58dceec",
|
|
4
|
+
"name": "Example collection",
|
|
5
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
6
|
+
"description": "A sample collection to demonstrate collections as a set of related requests"
|
|
7
|
+
},
|
|
8
|
+
"item": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Example folder",
|
|
11
|
+
"item": [
|
|
12
|
+
{
|
|
13
|
+
"name": "A simple GET request with ids",
|
|
14
|
+
"event": [
|
|
15
|
+
{
|
|
16
|
+
"listen": "test",
|
|
17
|
+
"script": {
|
|
18
|
+
"type": "text/javascript",
|
|
19
|
+
"exec": [
|
|
20
|
+
"// qase: 222 ",
|
|
21
|
+
"pm.test('Status code is 200', function () {",
|
|
22
|
+
" pm.response.to.have.status(200);",
|
|
23
|
+
"})",
|
|
24
|
+
"pm.test('expect response json contain args', function () {",
|
|
25
|
+
" pm.expect(pm.response.json().args).to.have.property('source')",
|
|
26
|
+
" .and.equal('newman-sample-github-collection')",
|
|
27
|
+
"})"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"request": {
|
|
33
|
+
"method": "GET",
|
|
34
|
+
"header": [],
|
|
35
|
+
"url": {
|
|
36
|
+
"raw": "https://postman-echo.com/get?source=newman-sample-github-collection",
|
|
37
|
+
"protocol": "https",
|
|
38
|
+
"host": [
|
|
39
|
+
"postman-echo",
|
|
40
|
+
"com"
|
|
41
|
+
],
|
|
42
|
+
"path": [
|
|
43
|
+
"get"
|
|
44
|
+
],
|
|
45
|
+
"query": [
|
|
46
|
+
{
|
|
47
|
+
"key": "source",
|
|
48
|
+
"value": "newman-sample-github-collection"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"response": []
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "A simple GET request without ids",
|
|
59
|
+
"event": [
|
|
60
|
+
{
|
|
61
|
+
"listen": "test",
|
|
62
|
+
"script": {
|
|
63
|
+
"exec": [
|
|
64
|
+
"pm.test('Status code is 200', function () {",
|
|
65
|
+
" pm.response.to.be.ok;",
|
|
66
|
+
"})"
|
|
67
|
+
],
|
|
68
|
+
"type": "text/javascript"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"request": {
|
|
73
|
+
"url": "https://postman-echo.com/g",
|
|
74
|
+
"method": "GET"
|
|
75
|
+
},
|
|
76
|
+
"response": []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "A simple GET request without ids 2",
|
|
80
|
+
"event": [
|
|
81
|
+
{
|
|
82
|
+
"listen": "test",
|
|
83
|
+
"script": {
|
|
84
|
+
"exec": [
|
|
85
|
+
"pm.test('Response time is less than 200ms', function () {",
|
|
86
|
+
" pm.expect(pm.response.responseTime).to.be.below(10);",
|
|
87
|
+
"})"
|
|
88
|
+
],
|
|
89
|
+
"type": "text/javascript"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"request": {
|
|
94
|
+
"url": "https://postman-echo.com/get?source=newman-sample-github-collection",
|
|
95
|
+
"method": "GET"
|
|
96
|
+
},
|
|
97
|
+
"response": []
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
Binary file
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newman-reporter-qase",
|
|
3
|
-
"version": "v1.0.
|
|
3
|
+
"version": "v1.0.6-alpha.2",
|
|
4
4
|
"description": "Qase TMS Newman Reporter",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">=10"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "npm run lint && tsc",
|
|
19
|
+
"dev": "npm run lint && tsc && cp ./src/reportBulk.js ./dist",
|
|
20
20
|
"dev:watch": "nodemon --exec 'npm run dev || exit 1'",
|
|
21
21
|
"lint": "eslint src/**",
|
|
22
22
|
"lint:fix": "eslint --fix src/**",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"chalk": "^4.1.0",
|
|
55
|
-
"qaseio": "^
|
|
55
|
+
"qaseio": "^2.0.0"
|
|
56
56
|
}
|
|
57
57
|
}
|