CoolFace
Apppublic

lankasailendra/BMCTESTMAIN

sourceHugging Faceupdated 1d agoView on Hugging Face
0likes
testexecute-generic.bat46 linesDownload Raw Back to client_executor
1@echo off2setlocal EnableExtensions3cd /d "%~dp0"4 5echo === Helix CoPilot — {{PRODUCT_TITLE}} ===6echo Folder: %CD%7echo.8echo 1. Set credentials in this file or as environment variables.9echo 2. Drop generated test_*.py files from CoPilot zip export here.10echo 3. Run: testexecute.bat11echo.12 13REM --- Credentials (edit for your tenant) ---14REM set BMC_ITSM_URL=https://your-tenant-restapi.onbmc.com15REM set BMC_ITSM_USER=your-user16REM set BMC_ITSM_PASSWORD=your-password17 18if not exist reports mkdir reports19if not exist logs mkdir logs20 21if not defined BMC_PYTEST_TARGET set BMC_PYTEST_TARGET=.22REM set BMC_PYTEST_TARGET=test_foo_generated.py::test_tc_bar_00123REM set BMC_PYTEST_TARGET=-k test_tc_bar_00124 25for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set RUN_TS=%%i26set "REPORT_HTML=%CD%\reports\run_%RUN_TS%.html"27set "REPORT_JUNIT=%CD%\reports\run_%RUN_TS%.xml"28 29python -c "import pytest_html" 2>nul30if errorlevel 1 (31    echo ERROR: Run install from repo: Install-HelixCoPilot-Client.bat32    pause33    exit /b 134)35 36echo Pytest target: %BMC_PYTEST_TARGET%37python -m pytest %BMC_PYTEST_TARGET% -v -s --tb=short -ra ^38  --html=%REPORT_HTML% --self-contained-html ^39  --junitxml=%REPORT_JUNIT%40set TEST_EXIT=%ERRORLEVEL%41 42echo.43echo Reports: %REPORT_HTML%44pause45exit /b %TEST_EXIT%46