From 26a6708ea19a003c9346823887127d243b5da560 Mon Sep 17 00:00:00 2001 From: mdolhalo Date: Mon, 2 Oct 2023 14:45:53 +0200 Subject: [PATCH] feat: added test run url as reporter attribute Signed-off-by: mdolhalo --- tests/e2e/configs/reporters.config.js | 3 +++ tests/e2e/constants/REPORTER_CONSTANTS.ts | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/e2e/configs/reporters.config.js b/tests/e2e/configs/reporters.config.js index 73f561544c8..29390f19d01 100644 --- a/tests/e2e/configs/reporters.config.js +++ b/tests/e2e/configs/reporters.config.js @@ -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(), diff --git a/tests/e2e/constants/REPORTER_CONSTANTS.ts b/tests/e2e/constants/REPORTER_CONSTANTS.ts index e662e1a124a..7987a11e609 100644 --- a/tests/e2e/constants/REPORTER_CONSTANTS.ts +++ b/tests/e2e/constants/REPORTER_CONSTANTS.ts @@ -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. @@ -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' };