From a02c64169a386d08a17dafdf2ccd57f39d0bfaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Wed, 25 Mar 2026 09:43:43 +0800 Subject: [PATCH] feat: create UAT test directory structure and configuration --- uat-tests/.env.example | 5 +++++ uat-tests/config/uat-config.ts | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 uat-tests/.env.example create mode 100644 uat-tests/config/uat-config.ts 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' +};