【问题标题】:Import test cases to Testlink将测试用例导入Testlink
【发布时间】:2014-06-02 09:27:10
【问题描述】:

我正在尝试将测试用例导入到 Testlink。 xml文件来自excel。我拥有的领域是:

Name,
Summary, 
Stepactions, 
Expectedresults

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

非常感谢!

【问题讨论】:

    标签: xml excel import testlink


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

      花了三天时间才找到这个解决方案,只有你要做的是,

      • here 下载 Ex-Converter 仅适用于 Windows-7。
      • 创建TestCases.xlsx 带有字段Name, Importance, Summary, Preconditions, Actions, Expected-results 的excel 文件
      • 打开下载的应用Ex-Converter.exe
      • 给出TestCases.xlsx文件和新文件TestCases.xml的路径
      • 点击Convert
      • 在 TestLink > Test specification > Your Project name > Create test suite > 测试套件内部 Import > TestCases.xml
      • 你已经完成了:)

      【讨论】:

        【解决方案3】:

        不确定您的 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>
        

        【讨论】:

          猜你喜欢
          • 2013-09-30
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多