匯入手動測試 Script

您可以將儲存成本端 XML 檔的測試 Script,直接匯入至儲存庫,以便能夠在「瀏覽測試 Script」頁面中使用它們。

開始之前

請確定要匯入的本端 XML 檔遵守 XML 綱目說明文件。請參閱步驟 4 中的綱目資訊鏈結。

程序

  1. 在主功能表中,按一下建構 > 匯入 > 測試 Script。
  2. 選取手動,並且按一下瀏覽。
  3. 尋找檔案,然後按一下開啟。
  4. 按一下匯入,將測試 Script 匯入儲存庫中。
    提示: 如需測試案例 XML 檔的匯入格式與內容模型元素的相關資訊,請參閱測試 Script XML 綱目說明文件。

    請參閱下列範例,瞭解遵守 綱目的基本測試 Script 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 討論區發表。