Multi step test cases

The release related discussions, plans and questions.
Locked
innovez
TestLink user
Posts: 4
Joined: Thu Mar 06, 2008 2:12 pm

Multi step test cases

Post by innovez »

Hi.....

I am new to TestLink and am impressed by the features this freeware provides. I dont have coding knowledge and I am not able to fix a simple problem i face.

When i import test cases from .xml file having multi step test cases, all the steps are appearing as a paragraph in TestLink. Is there a piece of code using which i can give a break after every step? I tried import.inc.php file, which dint help me!

Please help if anyone knows how to do it. Thanks a lot guys!!!
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

we do not support multistep.
there is only one step field.
If you want to put several steps on it use <br> or <p> or something like that (I'me not sure if it will work :( )

Please add your company to forum if you like TL
innovez
TestLink user
Posts: 4
Joined: Thu Mar 06, 2008 2:12 pm

Post by innovez »

ya, adding </br> after every step in xml file enables the steps to appear in different lines in TL.
We used a csv2testcase converter that converts hundreds of test cases from csv to xml TL format. And my project folks are not interested in adding break statements in xml for every testcase of such a big suite.

i m trying all ways to find a solution for this and make TL piloting a success in my project.
:)
testlink
TestLink user
Posts: 3
Joined: Fri May 30, 2008 5:35 pm

Post by testlink »

Did any of you get importing multiple steps into seperate lines in testlink to work?
I have tried including </br> after every step and it does not seem to work. I'm not sure what I'm doing wrong.
This is what I'm doing
<steps>
1. Set up xxx</br>
2. Start xxx by running the yyyy</br>
3. Login to zzzz</br>

</steps>
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

1. It's <br /> and not </br>.
2. Do not write it into text (it's encoded then). Pressed Enter button generates the tag in html editor.
testlink
TestLink user
Posts: 3
Joined: Fri May 30, 2008 5:35 pm

Post by testlink »

Thanks for the reply.
I tried the following and it still didn't work

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<testcases xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<testcase name="testcase">
<summary>Verify summary</summary>
<steps>
1. Set up xxx<br/>
2. yyyyy<br/>
3. zzzzz
</steps>
<expectedresults>these are the expected results.</expectedresults>
</testcase>

</testcases>
gk1981
Advanced user
Posts: 20
Joined: Wed Sep 24, 2008 8:59 am

Post by gk1981 »

Here's a sample XML file that preserves newlines when uploaded to Testlink.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<testcases>
<testcase name="1">
<summary>Check whether the login screen color is been changed to Brand New format</summary>
<steps>1. Login to the application<br />2. Check the Login screen color</steps>
<expectedresults>Refer: New Layout Login Screen.Jpeg</expectedresults>
</testcase>
</testcases>
Hope this helps![/quote]
Locked