xml - 将测试用例导入 TeSTLink

标签 xml excel import testlink

我正在尝试将测试用例导入 TeSTLink。 xml文件来自excel。我的字段是:

Name,
Summary, 
Stepactions, 
Expectedresults

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

非常感谢!

最佳答案

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

关于xml - 将测试用例导入 TeSTLink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23144475/

相关文章:

android - ListView 完整按钮消失

C# 是Microsoft.Office.Interop.Excel.Range.Cell.Count 是为每次调用计算的还是常量

vba - Excel VBA : Simplify long Code

excel - AVERAGEIFS 不起作用,但 AVERAGE(IF( 起作用

java - java可以导入文本方法吗

php - 导入 XML Google 电子表格 - 帮助我编写 PHP 代码

csv - 将 CSV 导入 CouchDB 时防止重复的替代方法

xml - 用 perl 和 libXML 解析 xml

java - 单击 fragment ListView 中的 TextView

java - Android XML 文件不保存