Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I want to import a test result on testlink. Here's my XML:

<?xml version="1.0" encoding="UTF-8"?>
<results>
    <testcase external_id="123-9" >
        <tester>sabrina</tester> <!-- tester LOGIN Name--->
        <timestamp>2014-05-12 17:00:00</timestamp>
        <result>p</result>
        <notes>functionality works great </notes>
    </testcase>
</result>

But it always fails with the notification result of 'xml_ko'.

Update: I found the solution. There are invalid characters i put on: 1. <!-- tester LOGIN Name---> there's should only 2 dash (-) at the end. 2. Missing 's' at the end on </result>

The right xml code:

<?xml version="1.0" encoding="UTF-8"?>
<results>
    <testcase external_id="123-9" >
        <tester>sabrina</tester> <!-- tester LOGIN Name-->
        <timestamp>2014-05-12 17:00:00</timestamp>
        <result>p</result>
        <notes>functionality works great </notes>
    </testcase>
</results>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

I managed to upload my first test cases now. I stumbled also over the xml_ko a couple of times. At the end I could nail it down to a control character in the name of one test case (don't know how it got there) and an ampersand in the name of another. Checking the warnings and errors in "Events" helped quite a bit. For 'strange' characters I got "Entity: line 233: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0x85 0x29 0x22 0x3E" and could locate the problem in (no surprise) line 233 of my xml file.

Maybe you post your "Events" to help with troubleshooting?

share|improve this answer
    
I have found the solution. There are invalid characters i put on: 1. <!-- tester LOGIN Name---> there's should only 2 dash (-) at the end. 2. Missing 's' at the end on </result> –  SabrinaHyde May 26 '14 at 3:12
    
I validate my XML code on xmlvalidation.com –  SabrinaHyde May 26 '14 at 3:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.