Skip to main content

Version: 18.11 (EOL)

app-svc-test

The app-svc-test task runs automated service tests for a given application package.

Task Attributes

All attributes are optional unless otherwise indicated.

AttributeDescription
appFileString

Required. The application package archive ZIP file.

Example

The example Ant task below runs the application package service tests. If any tests fail, a BuildException is thrown.

<app-svc-test appFile="target/app-home-loan-v${version}.zip" />

Example Ant log output:

app-svc-test:
[app-svc-test] Func1 - v0.1.0 : unit test succeeded in 79 ms
[app-svc-test] 15:19:16,998 INFO com.avoka.tm.func.FormFuncResult@5d1b1c2a[
[app-svc-test] errors=[]
[app-svc-test] includeFormData=false
[app-svc-test] continueProcessing=true
[app-svc-test] data={}
[app-svc-test] ]
[app-svc-test] 15:19:16,998 INFO com.avoka.tm.vo.SvcConn@6397248c[
[app-svc-test] id=1
[app-svc-test] name=serviceConn
[app-svc-test] orgId=1
[app-svc-test] clientCode=maguire
[app-svc-test] endpoint=https://maguire.com/rest/products/v1/
[app-svc-test] type=HTTP Endpoint
[app-svc-test] username=TODO...
[app-svc-test] password=TODO...
[app-svc-test] ]
[app-svc-test] 15:19:16,998 INFO https://maguire.com/rest/products/v1/
[app-svc-test]
[app-svc-test] Func2 - v0.1.0 : unit test succeeded in 75 ms
[app-svc-test] 15:19:17,073 INFO com.avoka.tm.func.DeliveryFuncResult@2a02e34b[
[app-svc-test] status=Completed
[app-svc-test] continueProcessing=true
[app-svc-test] data={}
[app-svc-test] ]
[app-svc-test]
[app-svc-test] 2 Service Unit Tests completed in 511 ms
BUILD SUCCESSFUL
Total time: 4 seconds