AI_UIAutomation/config/app.config.ts

25 lines
626 B
TypeScript

import { Platform } from '../drivers/types';
export const APP_CONFIG = {
ios: {
bundleId: 'com.wohand.wohand',
wdaHost: process.env.WDA_HOST || 'localhost',
wdaPort: Number(process.env.WDA_PORT) || 8100,
},
android: {
appPackage: 'com.theswitchbot.switchbot',
appActivity: '.MainActivity',
appiumHost: process.env.APPIUM_HOST || 'localhost',
appiumPort: Number(process.env.APPIUM_PORT) || 4723,
},
device: {
platform: (process.env.PLATFORM || 'ios') as Platform,
},
timeouts: {
bleOperation: 15000,
pageLoad: 10000,
animation: 3000,
longOperation: 30000,
},
};