优化分批执行点击菜单

This commit is contained in:
dengqichen 2025-03-11 09:27:12 +08:00
parent 47d7883874
commit aa4b2ff884
2 changed files with 11 additions and 4 deletions

View File

@ -20,4 +20,3 @@ node src/scripts/runTestsAndSendReport.js
echo.
echo [Batch] Execution completed
pause

View File

@ -117,7 +117,15 @@ async function runTestsAndSendReport() {
console.log('[Node] ==========================================');
console.log('[Node] Starting test automation process...');
console.log('[Node] ==========================================');
runTestsAndSendReport().catch(error => {
runTestsAndSendReport().then(() => {
console.log('[Node] Process will exit in 3 seconds...');
setTimeout(() => {
process.exit(0);
}, 3000);
}).catch(error => {
console.error('[Node] Fatal error:', error);
console.log('[Node] Process will exit in 3 seconds...');
setTimeout(() => {
process.exit(1);
}, 3000);
});