-
Notifications
You must be signed in to change notification settings - Fork 51
/
soatest.bat
59 lines (42 loc) · 2.21 KB
/
soatest.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
IF NOT EXIST set-vars.bat (
echo "Incorrect usage ... running script in wrong directory, cannot find setvars.bat"
GOTO End
)
call set-vars
echo ===================================================================
echo Running Functional Tests against build.id=%BUILD_ID%
echo ===================================================================
pushd soatest
call copy /Y templatesettings.properties localsettings.properties
echo. >> localsettings.properties
echo build.id=%BUILD_ID% >> localsettings.properties
echo general.project=%DTP_PROJECT% >> localsettings.properties
echo session.tag=%DTP_PROJECT%-${config_name} >> localsettings.properties
echo ======================ParaBank==============================
echo **1/3** Importing project into SOAtest
soatestcli -J-Xms512m -J-Xmx512m -J-Xverify:none -J-XX:+UseCompressedOops -data . -import TestAssets
echo **2/3** Running SOAtest (ParaBank)
if EXIST "..\%REPORT_DIR%\soa-parabank\" (
del /Q ..\%REPORT_DIR%\soa-parabank\*.*
)
soatestcli -config "user://Example Configuration" -data . -resource TestAssets -report ..\%REPORT_DIR%\soa-parabank -localsettings localsettings.properties > ..\%LOG_DIR%\soatest-parabank-%RUN_TIME%.log 2>&1
echo **3/3** Uploading report to DTP
REM curl.exe -k --user admin:admin -F file=@../%REPORT_DIR%/soa-parabank/report.xml https://localhost:8082/api/v2/dataCollector
popd
echo ======================Bookstore==============================
pushd soatest
echo **1/3** Importing project into SOAtest
soatestcli -data . -import Bookstore
echo **2/3** Running SOAtest (Bookstore)
if EXIST "..\%REPORT_DIR%\soa-bookstore\" (
del /Q ..\%REPORT_DIR%\soa-bookstore\*.*
)
soatestcli -config "ApplicationCoverage.properties" -data . -resource Bookstore -report ..\%REPORT_DIR%\soa-bookstore -localsettings localsettings.properties > ..\%LOG_DIR%\soatest-bookstore-%RUN_TIME%.log 2>&1
echo **3/3** Uploading report to DTP
REM curl.exe -k --user admin:admin -F file=@../%REPORT_DIR%/soa-bookstore/report.xml https://localhost:8082/api/v2/dataCollector
popd
echo =================================================================
echo Finished Functional Tests of build.id=%BUILD_ID%
echo =================================================================
:End