@reportportal/client-javascript 5.3.0 → 5.3.1
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 +4 -4
- package/VERSION +1 -1
- package/lib/report-portal-client.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ReportPortal js client
|
|
2
2
|
|
|
3
|
-
This Client is to communicate with the
|
|
3
|
+
This Client is to communicate with the ReportPortal on Node.js.
|
|
4
4
|
|
|
5
5
|
Library is used only for implementors of custom listeners for ReportPortal.
|
|
6
6
|
|
|
@@ -40,9 +40,8 @@ const rpClient = new RPClient({
|
|
|
40
40
|
project: 'PROJECT_NAME'
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
rpClient.checkConnect().then((
|
|
43
|
+
rpClient.checkConnect().then(() => {
|
|
44
44
|
console.log('You have successfully connected to the server.');
|
|
45
|
-
console.log(`You are using an account: ${response.fullName}`);
|
|
46
45
|
}, (error) => {
|
|
47
46
|
console.log('Error connection to server');
|
|
48
47
|
console.dir(error);
|
|
@@ -383,7 +382,8 @@ The unix Epoch time ISO string.
|
|
|
383
382
|
|
|
384
383
|
The [ReportPortal since product version 24.2]() (Service API version 5.12.0) supports the time with microsecond precision in the ISO string format (`2024-09-23T11:10:46.793546Z`).
|
|
385
384
|
Thus, it is recommended to report time in this format to have more accurate logs and test items order on the ReportPortal UI.
|
|
386
|
-
|
|
385
|
+
|
|
386
|
+
**Note:** Reporting the time in ISO string format with millisecond precision (`2024-09-23T11:10:46.793Z`) or as a number of milliseconds (`1727089846793`) is also acceptable with microseconds automatically added as zeros on ReportPortal's API service for backward compatibility.
|
|
387
387
|
|
|
388
388
|
The client use time with microsecond precision in the ISO string format by default since [version 5.3.0]().
|
|
389
389
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.2-SNAPSHOT
|
|
@@ -130,7 +130,9 @@ class RPClient {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
checkConnect() {
|
|
133
|
-
const url = [this.config.endpoint.replace('/v2', '/v1'), '
|
|
133
|
+
const url = [this.config.endpoint.replace('/v2', '/v1'), this.config.project, 'launch']
|
|
134
|
+
.join('/')
|
|
135
|
+
.concat('?page.page=1&page.size=1');
|
|
134
136
|
return this.restClient.request('GET', url, {});
|
|
135
137
|
}
|
|
136
138
|
|