Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ declare module '@reportportal/client-javascript' {
/**
* Initializes a new Report Portal client.
*/
constructor(config: ReportPortalConfig, agentInfo?: { name?: string; version?: string });
constructor(config: ReportPortalConfig, agentInfo?: { name?: string; version?: string; framework_version?: string });

/**
* Starts a new launch.
Expand Down
7 changes: 7 additions & 0 deletions statistics/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
if (agentParams && hasOption(agentParams, 'version') && agentParams.version) {
params.agent_version = agentParams.version;
}
if (
agentParams &&
hasOption(agentParams, 'framework_version') &&
agentParams.framework_version
) {
params.framework_version = agentParams.framework_version;
}
return params;
}

Expand All @@ -48,7 +55,7 @@
requestBody,
);
} catch (error) {
console.error(error.message);

Check warning on line 58 in statistics/statistics.js

View workflow job for this annotation

GitHub Actions / test (18)

Unexpected console statement

Check warning on line 58 in statistics/statistics.js

View workflow job for this annotation

GitHub Actions / test (14)

Unexpected console statement

Check warning on line 58 in statistics/statistics.js

View workflow job for this annotation

GitHub Actions / test (16)

Unexpected console statement

Check warning on line 58 in statistics/statistics.js

View workflow job for this annotation

GitHub Actions / test (20)

Unexpected console statement

Check warning on line 58 in statistics/statistics.js

View workflow job for this annotation

GitHub Actions / test (22)

Unexpected console statement
}
}
}
Expand Down
Loading