41 lines
941 B
Batchfile
41 lines
941 B
Batchfile
@echo off
|
|
echo Starting Redis Stream Demo Test...
|
|
|
|
echo.
|
|
echo 1. Starting Spring Boot Application...
|
|
start "Redis Stream App" cmd /k "mvn spring-boot:run"
|
|
|
|
echo.
|
|
echo Waiting for application to start...
|
|
timeout /t 10 /nobreak > nul
|
|
|
|
echo.
|
|
echo 2. Testing Manual Ack Consumer with 100 messages...
|
|
curl -X POST "http://localhost:8080/api/stream/send-batch?count=100"
|
|
|
|
echo.
|
|
echo Waiting for messages to be sent...
|
|
timeout /t 3 /nobreak > nul
|
|
|
|
echo.
|
|
echo 3. Processing messages with Manual Ack...
|
|
curl -X POST "http://localhost:8080/api/stream/consume-manual?count=100"
|
|
|
|
echo.
|
|
echo Waiting for processing...
|
|
timeout /t 5 /nobreak > nul
|
|
|
|
echo.
|
|
echo 4. Checking Stream Info...
|
|
curl http://localhost:8080/api/stream/info
|
|
|
|
echo.
|
|
echo 5. Testing completed! Check the application logs for details.
|
|
echo Press any key to close the application...
|
|
pause > nul
|
|
|
|
echo.
|
|
echo Stopping application...
|
|
taskkill /f /im java.exe > nul 2>&1
|
|
echo Test completed!
|