Service: zimbraAdmin

Command: RunUnitTests
Namespace: urn:zimbraAdmin
Description: Runs the server-side unit test suite.
If <test>'s are specified, then run the requested tests (instead of the standard test suite). Otherwise the standard test suite is run.
Properties:
Authorization token required true
Admin Authorization token required true

RunUnitTestsRequest

    <RunUnitTestsRequest> ## RunUnitTestsRequest
        (<test>{tests} (String)</test>)*
    </RunUnitTestsRequest>

elements and attributes you can define within a <RunUnitTestsRequest> element:

XPath Required / Optional Description
/test Optional (0 or more) Type: {tests} (String)
Test names - each entry of form: className[#testName[+testName]*]

Example test names:

 com.zimbra.qa.unittest.TestCalDav
 com.zimbra.qa.unittest.TestUtilCode#testGzip
 com.zimbra.qa.unittest.TestUtilCode#testGzip+testLruMap
 

RunUnitTestsResponse

    <RunUnitTestsResponse numExecuted="{num-executed} (int)" numFailed="{num-failed} (int)"> ## RunUnitTestsResponse
        <results> ## TestResultInfo
            (<completed name="{test-name}" execSeconds="{exec-seconds}" class="{test-class}" /> ## CompletedTestInfo)*
            (<failure name="{failed-test-name}" execSeconds="{failed-test-exec-seconds}" class="{failed-test-class}">{throwable}</failure> ## FailedTestInfo)*
        </results>
    </RunUnitTestsResponse>

elements and attributes you can define within a <RunUnitTestsResponse> element:

XPath Required / Optional Description
@numExecuted Required (only 1) Type: int
Number of executed tests
@numFailed Required (only 1) Type: int
Number of failed tests
/results Required (only 1) Information about test results
/results/completed Optional (0 or more) Information for completed tests
/results/completed@name Required (only 1) Type: String
Test name
/results/completed@execSeconds Required (only 1) Type: String
Number of seconds to execute the test
/results/completed@class Required (only 1) Type: String
Test class
/results/failure Optional (0 or more) Type: {throwable}
Information for failed tests
Description for element text content:Text of any exception thrown during the test
/results/failure@name Required (only 1) Type: String
Failed test name
/results/failure@execSeconds Required (only 1) Type: String
Failed test execution time
/results/failure@class Required (only 1) Type: String
Failed test class name