newman-reporter-qase 1.0.6-alpha.1 → 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.
@@ -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 DEMO --reporter-qase-apiToken $QASE_API_TOKEN"
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": "",
@@ -1,34 +1,100 @@
1
1
  {
2
- "info": {
3
- "name": "Sample Postman Collection",
4
- "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
5
- "description": "A sample collection to demonstrate collections as a set of related requests"
6
- },
7
- "item": [
8
- {
9
- "name": "A simple GET request",
10
- "event": [
11
- {
12
- "listen": "test",
13
- "script": {
14
- "type": "text/javascript",
15
- "exec": [
16
- "// qase: 1,2,3,4 ",
17
- "pm.test('expect response be 200', function () {",
18
- " pm.response.to.be.ok",
19
- "})",
20
- "pm.test('expect response json contain args', function () {",
21
- " pm.expect(pm.response.json().args).to.have.property('source')",
22
- " .and.equal('newman-sample-github-collection')",
23
- "})"
24
- ]
25
- }
26
- }
27
- ],
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
+ ],
28
93
  "request": {
29
94
  "url": "https://postman-echo.com/get?source=newman-sample-github-collection",
30
95
  "method": "GET"
31
- }
32
- }
33
- ]
96
+ },
97
+ "response": []
98
+ }
99
+ ]
34
100
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newman-reporter-qase",
3
- "version": "v1.0.6-alpha.1",
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",