Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Testlink migration with steps


#1

Hi,

We’re running Testlink 1.9.14 and have exported our test cases and run them through the php conversion script. We are trying to import with the steps in Testlink (where we have seperate steps and results). We’ve set the default test case template to be steps so we get the test steps and not just a block of text.

We’re stumped a bit, though, since it doesn’t seem to be working for us. What we get is ‘summary’, then ‘preconditions’ then…nothing.

I have noticed by creating a test in Testrail and exporting that, the XML format looks like:
<steps_separated>

1


2

and so on.

The converted Testlink file is missing the . Is that needed? Do I need to edit it in?


#2

Hi Rick,

Thanks for your posting. Can you please check if the generated XML file contains the steps? Does the name/system name match the system name in TestRail (steps_separated)? For the import, it’s also important that the default case template is set to Steps and it appears you already changed that. Can you please double-check this again?

Cheers,
Tobias


#3

Hi Tobias,

Here’s what it’s set to in the customizations:

Now, under ‘Case Fields’, I have this:

I’m wondering if having the ‘Steps (steps)’ and ‘Steps (steps_separated)’ may be confusing things.

Here’s an example of a test case with steps that was exported from Testlink, converted using the tool and then and then imported into Testrail (slightly sanitized):

<steps_separated>
<step>
<content>Provision a guest VM (e.g. &quot;ovftool --machineOutput --diskMode=thin --datastore=&quot;ds1&quot; --name=&quot;win2012r2\_SQL2012\_V2_B&quot;  --noSSLVerify   --powerOn [http://X.X.X.X/library/test-vm/win2012r2\_SQL2012\_V2.ova][1] vi://administrator:XXXXXX@XX.XX.XX.XX?ip=10.101.8.1&quot;.

 [1]: http://XX.XX.XX.XX/library/test-vm/win2012r2_SQL2012_V2.ova</content>
<expected>The user should be able to able to provision the VM.</expected>
</step>
   
<step>
<content>Enable stuff on the VM by executing &quot;svt-vm-backup-params-set --enable-stuff  --vm your\_guest\_VM  --datastore your_datastore.</content>
<expected>The user should be able to enable stuff on the guest VM.</expected>
</step>

Here is a similar case where the test case was entered into TestRail and exported from TestRail:

<steps_separated>
<step>
<index>1</index>
<content>svt-vm-backup-params-set --enable-stuff  --vm  valid_vm --datastore valid_ds --guestUsername valid_user_name --guestPassword invalid_password </content>
<expected>An error message is displayed</expected>
</step>

Note, the converted file has no <index> tags where the export from TestRail does for each step.

Do those <index> tags need to be there?

What do you mean by this:

Does the name/system name match the system name in TestRail (steps_separated)?

Thanks,
-Rick


#4

Hi Rick,

Thanks for the additional details. Do you see the separated steps field when you edit/add a new case (and select the Test Case (Steps) template? You would need to make sure that the field is associated with the template. This is set up this way by default but it seems that you changed the template configuration a bit (e.g. changed the default and renamed some templates). You can check this by clicking on the steps_separated field on Administration > Customizations?

Cheers,
Tobias


#5

Hi Tobais,

So it looks like that even though we set steps_seperated as default, it didn’t get picked up by all projects so we went back in and selected all projects. Appears to be working now.

And once again, we’re off and moving!

Thanks.

-Rick


#6

Hi Rick,

Thanks for the update and great to hear that it works now :slight_smile:

Cheers,
Tobias