导入手动测试脚本

您可直接将另存为本地 XML 文件的测试脚本导入存储库中,导入之后,可在“浏览测试脚本”页面上获得这些测试脚本。

开始之前

确保要导入的本地 XML 文件遵循 XML 模式文档。请参阅步骤 4 中模式信息的链接。

过程

  1. 在主菜单中,单击构造 > 导入 > 测试脚本。
  2. 选择手动,然后单击浏览。
  3. 找到文件并单击打开。
  4. 单击导入,以将测试脚本导入到存储库中。
    提示: 有关测试用例 XML 文件的导入格式和内容模型元素的更多信息,请参阅测试脚本 XML 模式文档。

    请参阅以下示例以了解有关遵从模式的基本测试脚本 XML 文件:

    <?xml version="1.0" encoding="UTF-8"?>
    <testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
      <title xmlns="http://purl.org/dc/elements/1.1/">New Customer Order Test Script</title>
      <description xmlns="http://purl.org/dc/elements/1.1/">Steps to manually test the Customer Order functionality</description>
      <category xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" value="Web UI" term="Function"/>
      <state xmlns="http://jazz.net/xmlns/alm/v0.1/">com.ibm.rqm.planning.common.new</state>
      <steps xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
        <step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="execution">
          <description>
            <div xmlns="http://www.w3.org/1999/xhtml">Log in to the system</div>
          </description>
          <expectedResult>
            <div xmlns="http://www.w3.org/1999/xhtml">Login succeeds</div>
          </expectedResult>
        </step>
        <step type="execution">
          <description>
            <div xmlns="http://www.w3.org/1999/xhtml">Place an order</div>
          </description>
          <expectedResult>
            <div xmlns="http://www.w3.org/1999/xhtml">An order is created in the system</div>
          </expectedResult>
        </step>
      </steps>
    </testscript>


有疑问?请在 Jazz.net 论坛发帖。