MainService


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

SaveTestScenario

Saves changes to an existing test scenario or creates a new one.

If the Id of the provided test scenario is 0, then a new test scenario will be created. Otherwise the existing test scenario is updated. Updating the test scenario is subject to permission checks, a PermissionException will be generated in case the logged in user does not have the right permissions to access the test sceanrio.

Parameter '_saveTestJobs' controls whether test jobs hold in TestJobs collection should be saved (updating existing or adding new) when updating existing test scenario.When creating a new test scenario this parameter must be 'true'. '_saveTestJobs' set to false (when updating existing TS) means all existing test jobs will remain unchanged.In order to save empty (or clear existing) list of TestJobs, please set _saveTestJobs=true and provide empty collection of TestJobs.

Parameter '_saveDescription' denotes whether rich text fields (e.g. rich text custom fields) should be considered during save.If true, then '_format' parameter specifies format in which text are being saved (html, rtf, plain-text). Text are converted to RTF represenation automatically. If '_saveRichText' is false, then existing fields remain unchanged.



The method returns the TestScenario in its state after it has been saved.

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

<?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>
    <SaveTestScenario xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_ts>
        <ValidFor>string</ValidFor>
        <TestJobs>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
        </TestJobs>
        <LastExecutionDate>dateTime</LastExecutionDate>
        <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
        <NumberOfTestJobs>int</NumberOfTestJobs>
        <NumberOfTestJobsPassed>int</NumberOfTestJobsPassed>
        <NumberOfTestJobsFailed>int</NumberOfTestJobsFailed>
        <NumberOfTestJobsBlocked>int</NumberOfTestJobsBlocked>
        <NumberOfTestJobsNotCompleted>int</NumberOfTestJobsNotCompleted>
        <NumberOfTestJobsNotRun>int</NumberOfTestJobsNotRun>
      </_ts>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_saveDescription>boolean</_saveDescription>
      <_saveTestJobs>boolean</_saveTestJobs>
    </SaveTestScenario>
  </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>
    <SaveTestScenarioResponse xmlns="http://aqua-api.andagon.com/">
      <SaveTestScenarioResult>
        <ValidFor>string</ValidFor>
        <TestJobs>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
        </TestJobs>
        <LastExecutionDate>dateTime</LastExecutionDate>
        <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
        <NumberOfTestJobs>int</NumberOfTestJobs>
        <NumberOfTestJobsPassed>int</NumberOfTestJobsPassed>
        <NumberOfTestJobsFailed>int</NumberOfTestJobsFailed>
        <NumberOfTestJobsBlocked>int</NumberOfTestJobsBlocked>
        <NumberOfTestJobsNotCompleted>int</NumberOfTestJobsNotCompleted>
        <NumberOfTestJobsNotRun>int</NumberOfTestJobsNotRun>
      </SaveTestScenarioResult>
    </SaveTestScenarioResponse>
  </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>
    <SaveTestScenario xmlns="http://aqua-api.andagon.com/">
      <_session>string</_session>
      <_ts>
        <ValidFor>string</ValidFor>
        <TestJobs>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
        </TestJobs>
        <LastExecutionDate>dateTime</LastExecutionDate>
        <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
        <NumberOfTestJobs>int</NumberOfTestJobs>
        <NumberOfTestJobsPassed>int</NumberOfTestJobsPassed>
        <NumberOfTestJobsFailed>int</NumberOfTestJobsFailed>
        <NumberOfTestJobsBlocked>int</NumberOfTestJobsBlocked>
        <NumberOfTestJobsNotCompleted>int</NumberOfTestJobsNotCompleted>
        <NumberOfTestJobsNotRun>int</NumberOfTestJobsNotRun>
      </_ts>
      <_format>Html or HtmlWithEmbeddedImages or RtfWithoutImages or RtfWithImages or PlainText</_format>
      <_saveDescription>boolean</_saveDescription>
      <_saveTestJobs>boolean</_saveTestJobs>
    </SaveTestScenario>
  </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>
    <SaveTestScenarioResponse xmlns="http://aqua-api.andagon.com/">
      <SaveTestScenarioResult>
        <ValidFor>string</ValidFor>
        <TestJobs>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
          <TestJob>
            <TestCaseId>int</TestCaseId>
            <Id>int</Id>
            <TesterId>int</TesterId>
            <ValueSetKey>string</ValueSetKey>
            <IndexInTestScenario>int</IndexInTestScenario>
            <TestedVersion>string</TestedVersion>
            <LastExecutionDateLocal>dateTime</LastExecutionDateLocal>
            <LastExecutionStatusLocal>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatusLocal>
            <LastExecutionHasAttachmentLocal>boolean</LastExecutionHasAttachmentLocal>
            <LastExecutionIsFinalizedLocal>boolean</LastExecutionIsFinalizedLocal>
            <LastExecutionIdLocal>int</LastExecutionIdLocal>
            <RunDependency>string</RunDependency>
          </TestJob>
        </TestJobs>
        <LastExecutionDate>dateTime</LastExecutionDate>
        <LastExecutionStatus>NotRun or NotCompleted or Failed or Passed or Blocked</LastExecutionStatus>
        <NumberOfTestJobs>int</NumberOfTestJobs>
        <NumberOfTestJobsPassed>int</NumberOfTestJobsPassed>
        <NumberOfTestJobsFailed>int</NumberOfTestJobsFailed>
        <NumberOfTestJobsBlocked>int</NumberOfTestJobsBlocked>
        <NumberOfTestJobsNotCompleted>int</NumberOfTestJobsNotCompleted>
        <NumberOfTestJobsNotRun>int</NumberOfTestJobsNotRun>
      </SaveTestScenarioResult>
    </SaveTestScenarioResponse>
  </soap12:Body>
</soap12:Envelope>