Skip to content

Commit

Permalink
feat: added test run url as reporter attribute (#22634)
Browse files Browse the repository at this point in the history
Signed-off-by: mdolhalo <[email protected]>
  • Loading branch information
nallikaea authored Oct 27, 2023
1 parent 95f5f91 commit 3240700
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/configs/reporters.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ module.exports = {
{
key: 'url',
value: BASE_TEST_CONSTANTS.TS_SELENIUM_BASE_URL
},
{
value: REPORTER_CONSTANTS.TEST_RUN_URL
}
],
rerun: REPORTER_CONSTANTS.RP_RERUN(),
Expand Down
9 changes: 6 additions & 3 deletions tests/e2e/constants/REPORTER_CONSTANTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ export const REPORTER_CONSTANTS: {
SAVE_ALLURE_REPORT_DATA: boolean;
SAVE_RP_REPORT_DATA: boolean;
TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS: number;
TS_SELENIUM_REPORT_FOLDER: string;
TS_SELENIUM_EXECUTION_SCREENCAST: boolean;
TS_SELENIUM_PRINT_TIMEOUT_VARIABLES: string | boolean;
TS_SELENIUM_LOAD_TEST_REPORT_FOLDER: string;
TS_SELENIUM_LOG_LEVEL: string;
TS_SELENIUM_PRINT_TIMEOUT_VARIABLES: string | boolean;
TS_SELENIUM_REPORT_FOLDER: string;
TEST_RUN_URL: string;
} = {
/**
* path to folder with load tests execution report.
Expand Down Expand Up @@ -142,5 +143,7 @@ export const REPORTER_CONSTANTS: {
? `${REPORTER_CONSTANTS.RP_USER}_personal`
: BASE_TEST_CONSTANTS.TESTING_APPLICATION_NAME();
return process.env.RP_PROJECT || project;
}
},

TEST_RUN_URL: process.env.TEST_RUN_URL || 'Test run url not set'
};

0 comments on commit 3240700

Please sign in to comment.