newman-reporter-qase 1.0.6-alpha.2 → 2.0.0-beta.0
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 +55 -26
- package/package.json +38 -38
- package/tsconfig.build.json +9 -0
- package/dist/index.d.ts +0 -39
- package/dist/index.js +0 -415
- package/dist/index.js.map +0 -1
- package/dist/reportBulk.js +0 -30
- package/examples/package-lock.json +0 -19168
- package/examples/package.json +0 -16
- package/examples/sample-collection.json +0 -100
- package/test/plugin.test.ts +0 -9
- /package/{examples/screenshots → screenshots}/demo.gif +0 -0
- /package/{examples/screenshots → screenshots}/screenshot.png +0 -0
package/examples/package.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
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
|
-
},
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"author": "",
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"newman": "^5.3.0",
|
|
14
|
-
"newman-reporter-qase": "../"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
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
|
-
}
|
package/test/plugin.test.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'jest';
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import NewmanQaseReporter from '../src';
|
|
4
|
-
|
|
5
|
-
describe('Tests', () => {
|
|
6
|
-
it('Init main class', () => {
|
|
7
|
-
new NewmanQaseReporter(new EventEmitter(), {apiToken: "", projectCode: ""}, {collection: ""});
|
|
8
|
-
});
|
|
9
|
-
});
|
|
File without changes
|
|
File without changes
|