将测试用例导入Testlink

时间:2014-04-17 22:23:52

标签: xml excel import testlink

我试图将测试用例导入Testlink。 xml文件来自excel。我的领域是:

Name,
Summary, 
Stepactions, 
Expectedresults

但是,我只在Testlink中看到名称和摘要。不会导入步骤和预期结果。怎么了?

非常感谢!

3 个答案:

答案 0 :(得分:5)

不确定你的xml是什么样的,但这对我有用。我正在使用Testlink版本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>

答案 1 :(得分:3)

查看https://github.com/MrBricodage/TestLink--ImportExcelMacro

  • 它有pdf文档,描述了如何使用它。

答案 2 :(得分:2)

只需要三天就可以找到这个解决方案,你必须做的就是,

  • here下载Ex-Converter仅适用于Windows-7。
  • 使用字段TestCases.xlsx
  • 创建Name, Importance, Summary, Preconditions, Actions, Expected-results excel文件
  • 打开已下载的应用Ex-Converter.exe
  • 提供TestCases.xlsx文件和新文件TestCases.xml
  • 的路径
  • 点击Convert
  • On TestLink&gt; Test specification&gt; Your Project name&gt; Create test suite&gt;内部测试套件Import&gt; TestCases.xml
  • 你完成了:)
相关问题