MainService


Klicken Sie hier, um die vollständige Vorgangsliste anzuzeigen.

GetTestCases

Retrieves a list of testcases in a specific project and folder. The folder provided can be 0 - in this case test cases in the root of the project are retrieved. Turning the option recursive on causes the method to return all the test cases in the specified folder and folders beneath it in the hierarchy.

The ID of a user view filters for a limited set of test cases and must be always provided. You can find all user views with their names by invoking the GetProjectInfo method.

Note that the test cases returned here do not contain the description field - it is always empty. You need to retrieve a specific test case using GetTestCase to obtain its full description.

Test

Das Testformular ist nur für Anforderungen vom lokalen Computer verfügbar.

SOAP 1.1

Es folgt ein Beispiel für eine SOAP 1.1-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.

POST /aquaAPI/mainservice.asmx HTTP/1.1
Host: aqua-demo2.andagon.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://aqua-api.andagon.com/GetTestCases"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTestCases xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_projectId>int</_projectId>
      <_folderId>int</_folderId>
      <_recursive>boolean</_recursive>
      <_userViewId>int</_userViewId>
      <_customFieldProperties>
        <string>string</string>
        <string>string</string>
      </_customFieldProperties>
    </GetTestCases>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTestCasesResponse xmlns="http://aqua-api.andagon.com/">
      <GetTestCasesResult>
        <TestCase>
          <Usage>int</Usage>
          <TestLevel>int</TestLevel>
          <TestSteps>
            <TestStep xsi:nil="true" />
            <TestStep xsi:nil="true" />
          </TestSteps>
          <LastExecutionDate>dateTime</LastExecutionDate>
          <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
          <LastExecutionHasAttachment>boolean</LastExecutionHasAttachment>
          <LastExecutionIsFinalized>boolean</LastExecutionIsFinalized>
          <LastExecutionId>int</LastExecutionId>
          <LastExecutionTestedVersion>string</LastExecutionTestedVersion>
          <ValidFor>string</ValidFor>
        </TestCase>
        <TestCase>
          <Usage>int</Usage>
          <TestLevel>int</TestLevel>
          <TestSteps>
            <TestStep xsi:nil="true" />
            <TestStep xsi:nil="true" />
          </TestSteps>
          <LastExecutionDate>dateTime</LastExecutionDate>
          <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
          <LastExecutionHasAttachment>boolean</LastExecutionHasAttachment>
          <LastExecutionIsFinalized>boolean</LastExecutionIsFinalized>
          <LastExecutionId>int</LastExecutionId>
          <LastExecutionTestedVersion>string</LastExecutionTestedVersion>
          <ValidFor>string</ValidFor>
        </TestCase>
      </GetTestCasesResult>
    </GetTestCasesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

Es folgt ein Beispiel für eine SOAP 1.2-Anforderung und -Antwort. Die angezeigten Platzhalter müssen durch tatsächliche Werte ersetzt werden.

POST /aquaAPI/mainservice.asmx HTTP/1.1
Host: aqua-demo2.andagon.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetTestCases xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_projectId>int</_projectId>
      <_folderId>int</_folderId>
      <_recursive>boolean</_recursive>
      <_userViewId>int</_userViewId>
      <_customFieldProperties>
        <string>string</string>
        <string>string</string>
      </_customFieldProperties>
    </GetTestCases>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetTestCasesResponse xmlns="http://aqua-api.andagon.com/">
      <GetTestCasesResult>
        <TestCase>
          <Usage>int</Usage>
          <TestLevel>int</TestLevel>
          <TestSteps>
            <TestStep xsi:nil="true" />
            <TestStep xsi:nil="true" />
          </TestSteps>
          <LastExecutionDate>dateTime</LastExecutionDate>
          <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
          <LastExecutionHasAttachment>boolean</LastExecutionHasAttachment>
          <LastExecutionIsFinalized>boolean</LastExecutionIsFinalized>
          <LastExecutionId>int</LastExecutionId>
          <LastExecutionTestedVersion>string</LastExecutionTestedVersion>
          <ValidFor>string</ValidFor>
        </TestCase>
        <TestCase>
          <Usage>int</Usage>
          <TestLevel>int</TestLevel>
          <TestSteps>
            <TestStep xsi:nil="true" />
            <TestStep xsi:nil="true" />
          </TestSteps>
          <LastExecutionDate>dateTime</LastExecutionDate>
          <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
          <LastExecutionHasAttachment>boolean</LastExecutionHasAttachment>
          <LastExecutionIsFinalized>boolean</LastExecutionIsFinalized>
          <LastExecutionId>int</LastExecutionId>
          <LastExecutionTestedVersion>string</LastExecutionTestedVersion>
          <ValidFor>string</ValidFor>
        </TestCase>
      </GetTestCasesResult>
    </GetTestCasesResponse>
  </soap12:Body>
</soap12:Envelope>