diff --git a/uat-tests/.env.example b/uat-tests/.env.example new file mode 100644 index 0000000..66f74e1 --- /dev/null +++ b/uat-tests/.env.example @@ -0,0 +1,5 @@ +TEST_BASE_URL=http://localhost:3001 +API_BASE_URL=http://localhost:8080 +TEST_TIMEOUT=30000 +TEST_RETRY_COUNT=2 +HEADLESS_BROWSER=true diff --git a/uat-tests/config/uat-config.ts b/uat-tests/config/uat-config.ts new file mode 100644 index 0000000..4ffc83a --- /dev/null +++ b/uat-tests/config/uat-config.ts @@ -0,0 +1,15 @@ +export interface UATConfig { + baseURL: string; + apiURL: string; + timeout: number; + retryCount: number; + testDataPath: string; +} + +export const uatConfig: UATConfig = { + baseURL: process.env.TEST_BASE_URL || 'http://localhost:3001', + apiURL: process.env.API_BASE_URL || 'http://localhost:8080', + timeout: parseInt(process.env.TEST_TIMEOUT || '30000'), + retryCount: parseInt(process.env.TEST_RETRY_COUNT || '2'), + testDataPath: './data' +};