Change the way of importing results

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
maryegra
TestLink user
Posts: 11
Joined: Tue Oct 13, 2009 3:46 pm

Change the way of importing results

Post by maryegra »

I don´t know what can I do in order to be able to import 2 or more notes per test case when importing results, so that they would be shown in to differents rows in the test report.
I have tried to import this xml:

Code: Select all

<results> 
	<testcase id="26"> <!-- ID: internal/DB id --> 
		<result>p</result>
 
		<notes>functionality works great</notes>
		<notes>this case failed due to error</notes> 
		<notes>this case failed due to error</notes>  
	</testcase> 
	<testcase id="29"> 
		<result>p</result> 
		<notes>this case failed due to error</notes> 
	</testcase> 
	<testcase id="33"> 
		<result>b</result> 
		<notes>this test case is blocked1</notes> 
		
	</testcase> 
</results>
Testlink allows me to import this xml file whit 2 or more notes per test case, but then only shows the first note in the test report of the reports an metric menu, it ignores the others.

I´ll be very gratefull if anyone help me with this!!!
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Post by TurboPT »

Will <br /> work?

I tried them in this trial:

Code: Select all

<results>
   <testcase id="26"> <!-- ID: internal/DB id -->
      <result>p</result>
 
      <notes>functionality works great<br />
        this case failed due to error<br />
        this case failed due to error</notes> 
   </testcase>
   <testcase id="29">
      <result>p</result>
      <notes>this case failed due to error</notes>
   </testcase>
   <testcase id="33">
      <result>b</result>
      <notes>this test case is blocked1</notes>
   </testcase>
</results> 
...and the browser output looks like this:

Code: Select all

<results>
−
<testcase id="26">
<!-- ID: internal/DB id -->
<result>p</result>
−
<notes>
functionality works great
<br/>

        this case failed due to error
<br/>

        this case failed due to error
</notes>
</testcase>
−
<testcase id="29">
<result>p</result>
<notes>this case failed due to error</notes>
</testcase>
−
<testcase id="33">
<result>b</result>
<notes>this test case is blocked1</notes>
</testcase>
</results>
Make sure it appears as expected, though.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

@maryegra

you are free to invent any format to want to import, and result will be , that will not work.
What about reading documentation ?
Locked