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!
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".
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.
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.
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>
Have a look at https://github.com/MrBricodage/TestLink--ImportExcelMacro
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With