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
add comment

3 Answers 3

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 at 3:12
    
I validate my XML code on xmlvalidation.com –  SabrinaHyde May 26 at 3:27
add comment

I am pretty new to testlink and XML. But assuming that you posted your 'real' xml code I guess the problem is that you tried to terminate results with /result (missing s at the end)

share|improve this answer
    
thank you for your answer, I think I did miss 's' at the end...but unfortunately after I added an 's', it's still doesn't work. –  SabrinaHyde May 14 at 2:05
add comment

Maybe I was not specific enough with my answer since I saw not that there are two result tags. What I meant was:

<?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>                                   <------ line is OK
        <notes>functionality works great </notes>
    </testcase>
</result>                                                 <------ this should be </results>

Did you try to change the last line into results? If yes, there is the need of somebody with competence to solve this....

share|improve this answer
    
Yes @GuestReader I already exactly did the same, but it still didn't work. :) Thank you again... –  SabrinaHyde May 20 at 2:06
add comment

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.