cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Having Trouble with tm setresults

nborrerojr.
12-Amethyst

Having Trouble with tm setresults

I am trying to use tm setresults to commit a few hundred test case results (in a single session) at a time. I don't think the issue is with the quantity but I don't know. My action definition is below (minus most of the results). When I try to execute the command (via C API), I get the error: MKS124581: Line 11: Problem parsing XML content: null

I assume this error is actually referring to line 12 with the attachment but I don't know for sure. Does anyone know what the issue is? Attachment name is supposed to be optional so I don't think leaving that out is the issue.

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE ActionList SYSTEM "ActionList.dtd">

<ActionList sessionID="61686">

<SetResult caseID="60768">

  <Verdict>Passed</Verdict>

  <AddRelatedItem id="61743" />

</SetResult>

<SetResult caseID="60764">

  <Verdict>Not Passed</Verdict>

  <Annotation>Reason: </Annotation>

  <AddRelatedItem id="61744" />

  <AddAttachment file="remote://C:\Users\borrno\AppData\Local\Packages\f6931c13-f27d-4e60-849e-9aabd681f391_ke8sybv4sk4d6\LocalState\artifact150723014349_6168060764.jpg">

   <Description>Test Artifact</Description>

  </AddAttachment>

</SetResult>

<SetResult caseID="60765">

  <Verdict>Passed</Verdict>

</SetResult>

<SetResult caseID="60761">

  <Verdict>Not Passed</Verdict>

  <Annotation>Reason: </Annotation>

  <AddRelatedItem id="61745" />

  <AddAttachment file="remote://C:\Users\borrno\AppData\Local\Packages\f6931c13-f27d-4e60-849e-9aabd681f391_ke8sybv4sk4d6\LocalState\artifact150723014414_6168060761.jpg">

   <Description>Test Artifact</Description>

  </AddAttachment>

</SetResult>

<SetResult caseID="60757">

  <Verdict>Passed</Verdict>

  <AddAttachment file="remote://C:\Users\borrno\AppData\Local\Packages\f6931c13-f27d-4e60-849e-9aabd681f391_ke8sybv4sk4d6\LocalState\artifact150723014429_6168060757.jpg">

   <Description>Test Artifact</Description>

  </AddAttachment>

</SetResult>

<SetResult caseID="60799">

  <Verdict>Not Passed</Verdict>

  <Annotation>Reason: </Annotation>

</SetResult>

</ActionList>

3 REPLIES 3

I've determined that the issue is with the AddAttachment. I don't know what the solution is though.

Also, how do you add values for custom fields?

Figured out custom fields....

<Field name="Custom Field Name">Value of Field</Field>

Still can't get attachments to work though.

I forgot to mention that I am sending the actionDefinition directly in the command and not sending an xml file. The action definition is a string in proper XML format.

Announcements


Top Tags