feat: create UAT test directory structure and configuration

This commit is contained in:
张翔
2026-03-25 09:43:43 +08:00
parent e2ad1331cc
commit a02c64169a
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -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
+15
View File
@@ -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'
};