다음은 이전의 결과를 서면으로 이상없이 포착 할 수있는 결과를 date time
를 사용하여 동적 디렉토리를 설정할 수있는 것 윈도우 배치 파일입니다.
물론 Jeninks의 배치 파일을 호출 할 수도 있습니다.
다음 스크립트를 파일로 복사하십시오 (예 : wrapper_testrunner.cmd
). testrunner.bat가있는 곳에이 파일을 복사하십시오. soapui의 testrunner.bat
파일을 호출하기 때문에이 배치 파일을 SOAPUI_HOME/bin
디렉토리 아래에 배치하십시오. 당신은 변수의 값을 변경하기 위해 필요한 경우
@echo off
REM Provide the base directory where the results needs to be saved
REM A new dynamic directory is created using date time under this directory
set RESULTS_BASE_DIR=C:\Temp\TEST_Results
REM Set the soapui project to run
set PROJECT=C:\Temp\Project\hellow-world-soapui-project.xml
REM Set the environment name
set ENVIRONMENT_NAME="Default environment"
REM set the dynamic directory name using date time
set mdate=%date:~10%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%
REM create dynamic directory for results
mkdir %RESULTS_BASE_DIR%\%mdate%
REM run the project using testrunner
call testrunner.bat -f %RESULTS_BASE_DIR%\%mdate% -E %ENVIRONMENT_NAME% -raj %PROJECT%
는 변경 주시기 난 그냥 장소 홀더 만 넣어.
그렇다면 testrunner.bat
파일로 전달해야하는 추가 옵션을 추가해야합니다.
희망이 있으면 도움이됩니다.
출처
2016-11-10 14:35:27
Rao
Ready API를 사용하고 있습니까? junit 스타일 보고서를 사용합니까? 현재 보고서가 매번 덮어 씁니까? 이 정보로 질문을 업데이트하십시오. – Rao
Ready API를 사용하고 있습니까? - 예; junit 스타일 보고서를 사용합니까? - 예; 현재 보고서가 매번 덮어 씁니까? - 네, 그렇습니다. 그래서, 당신은 나의 곤경을 이해합니다. 각 보고서를 저장하고 싶습니다.; –
젠킨스에서 위의 명령 (질문에 언급)을 어떻게 부르셨습니까? 그런데 이전 답변에 감사드립니다. 젠킨스에서 어떤 일을하셨습니까? – Rao