MainService


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

GetTestCase

Retrieves a testcases and all of its data. This includes all of the test case's fields and also the description of the test case.

The description is retrieved in one of the following formats: Html, RtfWithImages or RtfWithoutImages. In the formats Html and RtfWithoutImages all images are removed from the text and substituted by special markers of the form AQUAID...AQUAID with a number between the markers. The number is an aqua ID for which you can find the corresponding ScreenShotInfo data in the ScreenShots collection of the test case. The image data for the ScreenShotInfo can be retrieved using the method GetScreenShots. In the RtfWithoutImages format the AQUAID...AQUAID markers should be simply replaced by the image data. If you are working with the Html format you should replace the AQUAID...AQUAID markers with an img tag and save the picture data to a file.

The content of dictionary fields (like the TargetVersion) is an integer value. This integer value can be mapped to a human-readable string by evaluating the results of the GetProjectInfo and specifically its TestCaseTemplate field.

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/GetTestCase"

<?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>
    <GetTestCase xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_testCaseId>int</_testCaseId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
    </GetTestCase>
  </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>
    <GetTestCaseResponse xmlns="http://aqua-api.andagon.com/">
      <GetTestCaseResult>
        <Usage>int</Usage>
        <TestLevel>int</TestLevel>
        <TestSteps>
          <TestStep>
            <Name>string</Name>
            <StepType>Step or Condition or NestedTestCase</StepType>
            <Id>int</Id>
            <Description>string</Description>
            <ExpectedResults>string</ExpectedResults>
            <Version>int</Version>
          </TestStep>
          <TestStep>
            <Name>string</Name>
            <StepType>Step or Condition or NestedTestCase</StepType>
            <Id>int</Id>
            <Description>string</Description>
            <ExpectedResults>string</ExpectedResults>
            <Version>int</Version>
          </TestStep>
        </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>
      </GetTestCaseResult>
    </GetTestCaseResponse>
  </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>
    <GetTestCase xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_testCaseId>int</_testCaseId>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
    </GetTestCase>
  </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>
    <GetTestCaseResponse xmlns="http://aqua-api.andagon.com/">
      <GetTestCaseResult>
        <Usage>int</Usage>
        <TestLevel>int</TestLevel>
        <TestSteps>
          <TestStep>
            <Name>string</Name>
            <StepType>Step or Condition or NestedTestCase</StepType>
            <Id>int</Id>
            <Description>string</Description>
            <ExpectedResults>string</ExpectedResults>
            <Version>int</Version>
          </TestStep>
          <TestStep>
            <Name>string</Name>
            <StepType>Step or Condition or NestedTestCase</StepType>
            <Id>int</Id>
            <Description>string</Description>
            <ExpectedResults>string</ExpectedResults>
            <Version>int</Version>
          </TestStep>
        </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>
      </GetTestCaseResult>
    </GetTestCaseResponse>
  </soap12:Body>
</soap12:Envelope>