|
|
@echo off |
|
|
echo ======================================== |
|
|
echo Opening Test Interface |
|
|
echo ======================================== |
|
|
echo. |
|
|
|
|
|
|
|
|
if not exist "index.html" ( |
|
|
echo ERROR: index.html not found in current directory |
|
|
echo Please ensure you are running this from the 'api' folder |
|
|
pause |
|
|
exit /b 1 |
|
|
) |
|
|
|
|
|
echo Opening index.html in default browser... |
|
|
echo. |
|
|
echo Make sure the API server is running! |
|
|
echo If not, run: start_server.bat |
|
|
echo. |
|
|
echo API should be available at: http://localhost:8000 |
|
|
echo. |
|
|
|
|
|
|
|
|
start "" "index.html" |
|
|
|
|
|
echo. |
|
|
echo Test interface opened successfully! |
|
|
echo. |
|
|
echo Tips: |
|
|
echo 1. Check API status indicator (top-right corner) |
|
|
echo 2. Try preset scenarios: Healthy, Tool Wear, Overstrain, Cooling |
|
|
echo 3. For batch processing, upload CSV with required columns |
|
|
echo. |
|
|
pause |
|
|
|