Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import test cases to Testlink

I'm trying to import test cases to Testlink. The xml file is from excel. The fields I have are:

Name,
Summary, 
Stepactions, 
Expectedresults

However, I only see Name and Summary in Testlink. Stepactions and expectedresults are not imported. What's wrong??

Thanks a lot!

like image 382
user127947 Avatar asked Apr 17 '14 22:04

user127947


People also ask

How do you move test cases from one project to another in TestLink?

You just need to go to project overview and click on "Assign Test Case Execution" in the right panel. Then select the test cases or test suites you want to reassign and the application will show you the TC information, assigned to and assign to fields. Select the new assignee and click on "Save".

How do I download test cases from TestLink?

TestLink supports XML to export test suites and cases data. Step 1 − Go to Test Specification → Test Specification from the dashboard. Step 2 − To export all the test suites, select the parent folder from the left pane and click the Action icon on the right pane. It opens the test suite operations page.

How do I add a folder to TestLink?

Step 1 − Go to Requirement Specification → Requirement Specification from the dashboard as shown below. Step 2 − On the left side, Search the folder structure where you want to add a requirement. Step 3 − Click the Create button present on the right side panel as shown below.


2 Answers

Not sure what your xml looks like, but this works for me. I'm using Testlink version 1.9.7

<?xml version="1.0" encoding="UTF-8"?>
<testcases>
<testcase name="NAME_OF_TESTCASE">
    <summary>Description of test case</summary>
    <preconditions>some pre conditions</preconditions>
    <execution_type>2</execution_type>
    <steps>
        <step>
            <step_number>1</step_number>
            <actions>Do a thing</actions>
            <expectedresults>This is what to expect</expectedresults>
            <execution_type>2</execution_type>
        </step>
        <step>
            <step_number>2</step_number>
            <actions>Do another thing</actions>
            <expectedresults>more expected results</expectedresults>
            <execution_type>1</execution_type>
        </step>
    </steps>
    <custom_fields>
        <custom_field>
            <name>some_cf_name</name>
            <value>some_cf_value</value>
        </custom_field>
    </custom_fields>
</testcase>

like image 169
D-D-Doug Avatar answered Oct 23 '22 15:10

D-D-Doug


Have a look at https://github.com/MrBricodage/TestLink--ImportExcelMacro

  • It has pdf documents which describes how to use it.
like image 27
parthiban Avatar answered Oct 23 '22 16:10

parthiban