ローカル XML ファイルとして保存されているテスト・スクリプトをリポジトリーに直接インポートすると、これらのテスト・スクリプトは、
リポジトリーの「テスト・スクリプトの参照」ページで選択可能になります。
始める前に
インポートするローカル XML ファイルが XML スキーマ文書に従っていることを確認してください。 ステップ 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>