本指導教學中,您將會建立新的 Manual Test Script,重複使用現有測試 Script 中儲存的內容 - 單一陳述式和一組陳述式。
請按一下開始 > 程式集 > IBM Rational Software Development Platform > IBM Rational Manual Tester 6.1 > ClassicsJavaA。
請按一下開始 > 程式集 > IBM Rational Software Development Platform > IBM Rational Manual Tester 6.1 > IBM Rational Manual Tester。
若您在第一個指導教學中建立的 Script 沒有出現, 請按一下最近使用的檔案標籤,然後在 Script 資料夾下方按兩下 CreateTutorial.rmt。
Manual Test 會將此步驟納入「重複使用」視圖中。 如此便大功告成了。 現在,可以在其他 Script 中重複使用這個步驟。 接下來,您會先儲存一組步驟,再於一個新的 Manual Test Script 中重複使用內容。
Manual Test 會將整個群組納入「重複使用」視圖中。 啟動 Manual Test 時,自動會出現「重複使用」視圖,而剛才儲存的內容也可用在您所有的 Script 中。
現在,開始重複使用我們剛才儲存的內容。
Manual Test 會在「文字編輯器」中建立新的未命名 Script。
Manual Test 會將步驟新增到「概要」視圖和「文字編輯器」。
在「文字編輯器」中,注意 Manual Test 會將步驟放在灰色框內,表示參照到已儲存的內容。
請注意,重複使用的步驟圖示也表示陳述式是參照。
在 Manual Test 工具列中, 按一下檔案 > 儲存檔案,將 Script 命名為 ReuseTutorial。
Expand the Haydn folder.
然後按 Enter 鍵。
Manual Test 會將反白文字取代為您輸入的文字。
Under Haydn, click Violin Concertos.
然後按 Enter 鍵。
Click the Place Order button.
然後按 Enter 鍵。
接下來是登入。 因為已經儲存描述登入的陳述式,所以可以利用已儲存的內容,不必再重寫步驟。
Manual Test 會將整個群組新增到「概要」視圖和「文字編輯器」。
在「文字編輯器」中,Manual Test 會將群組放在灰色框內,表示參照到已儲存的內容。
請注意,重複使用的群組圖示也表示陳述式是參照。
In the Card Number field of the Place an Order dialog box, type 555 1212 555 1212.
In the Expiration Date field, type 10/06.
Click the Place Order button.
Was the Message Box displayed that indicates your order has been received?
然後按 Enter 鍵,將剛才輸入的陳述式設為驗證點。
Click OK to close the message box.