|
|
The test session must be in a state that allows test results to be created, and the test result policy for the session must allow the user to modify test results.
|
<?xml version='1.0' encoding='UTF-8'?>
<!ELEMENT ActionList (SetResult)*>
<!ATTLIST ActionList
sessionID CDATA #IMPLIED>
<!ELEMENT SetResult (Verdict?,Annotation?,
(AddRelatedItem*|RemoveRelatedItem*|AddAttachment*|RemoveAttachment*|SetStepResult*)*)>
<!ATTLIST SetResult
caseID CDATA #REQUIRED>
<!ELEMENT Annotation (#PCDATA)>
<!ELEMENT AddAttachment (Description)?>
<!ATTLIST AddAttachment
name CDATA #IMPLIED
file CDATA #REQUIRED
<!ELEMENT RemoveAttachment EMPTY>
<!ATTLIST RemoveAttachment
name CDATA #REQUIRED>
<!ELEMENT Description (#PCDATA)
AddRelatedItemEMPTY>
<!ATTLIST AddRelatedItem
id CDATA #REQUIRED>
<!ELEMENT RemoveRelatedItem EMPTY>
<!ATTLIST RemoveRelatedItem
id CDATA #REQUIRED>
<!ELEMENT SetStepResult (Result?,Annotation?)>
<!ATTLIST SetStepResult
stepID CDATA #REQUIRED>
<!ELEMENT Verdict(#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE ActionList SYSTEM "ActionList.dtd">
<ActionList sessionID="1">
<SetResult caseID="1">
<Verdict>
failed
</Verdict>
<Annotation> result annotation </Annotation>
<AddAttachment file="path/attachment1.gif" name="attachmentName">
<Description> attachment description </Description>
</AddAttachment>
<AddRelatedItem id="12"/>
<AddRelatedItem id="13"/>
<SetStepResult stepID="1">
<Verdict>
passed
</Verdict>
<Annotation>
this is step annotation
</Annotation>
</SetStepResult>
<SetStepResult stepID="2">
<Verdict>
failed
</Verdict>
<Annotation>
this is step annotation
</Annotation>
</SetStepResult>
</SetResult>
<SetResult caseID="2">
<Verdict>
passed
</Verdict>
<Annotation> annotation </Annotation>
<SetStepResult stepID="4">
<Verdict>
passed
</Verdict>
<Annotation>
This is step annotation
</Annotation>
</SetStepResult>
<AddAttachment file="path/attachment2.gif" name="attachment2Name">
<Description> attachment description </Description>
</AddAttachment>
<RemoveAttachment name="screenshot2.jpeg"/>
<AddRelatedItem id="14"/>
<RemoveRelatedItem id="15"/>
</SetResult>
</ActionList>
<ActionList sessionID="1393">
<SetResult caseID="895-1.0:906-1.0">
<Verdict>blocked</Verdict>
<Annotation>myAnnotation</Annotation>
</SetResult>
<SetResult caseID="853-3.0:856-6.0">
<Verdict>passed</Verdict>
<Annotation>myAnnotation</Annotation>
</SetResult>
</ActionList>