本指導教學引導您建立 Manual Test Script。教您如何在 Script 中加入步驟、驗證點、群組及報告點。
按一下開始 > 程式集 > IBM Rational > IBM Rational Manual Tester 6.1 > ClassicsJavaA。
按一下啟動 > 程式集 > IBM Rational > IBM Rational Manual Tester 6.1 > IBM Rational Manual Tester。
畫面上會出現 Manual Test 視窗,而「文字編輯器」裡是空白的 Script。
空白 Script 含有步驟圖示和 "Begin typing test statements here," 這句反白的文字。
若「文字編輯器」內不是空白 Script,請在 Manual Test 功能表中,選取檔案 > 新建。
Start the Classics Java application.
然後按 Enter 鍵。
Manual Test 會將 "Begin typing test statements here," 取代成您輸入的文字。
請留意 Manual Test 如何將游標移至下一行及新增另一個步驟圖示。
Did the ClassicsCD window open?
然後按 Enter 鍵。
因為剛才輸入的陳述式是提出問題,我們會將陳述式類型改為驗證點。
Manual Test 會將步驟圖示變更為驗證點圖示
。
在 Manual Test 功能表中,按一下檔案 > 儲存,將 Script 命名為 CreateTutorial。 按一下儲存之後,Script 檔案名稱後面會自動加上副檔名 .rmt。
Expand the Bach folder.
然後按 Enter 鍵。
這個陳述式應該算是步驟。
如果不是,請在 Manual Test 工具列上按一下「設為步驟」按鈕。
Under Bach, click Violin Concertos.
然後按 Enter 鍵。
Click the Place Order button.
然後按 Enter 鍵。
到目前為止,我們已經在 Script 中建立 5 個陳述式 - 4 個步驟和 1 個驗證點。 請看一下 Manual Test 視窗左窗格中的「概要」視圖。 「概要」視圖顯示您已撰寫的 Script 結構。 但每一條陳述式只會顯示前幾個字元而已。 在「概要」視圖中,可以將任何陳述式重新命名為更有意義的名稱,但不必在 Script 中變更陳述式。Did the Member Logon dialog box open?
然後按 Enter 鍵。
Manual Test 會將步驟圖示變更為驗證點圖示
。
下面四個步驟形成一連串一起執行的作業,所以我們要把這些步驟組合起來。 首先,我們來建立群組資料夾。
Manual Test會將步驟圖示變更為群組資料夾圖示
。
Log In As Existing Customer.
然後按 Enter 鍵。
Manual Test會自動定位游標,好讓您輸入的下一個陳述式縮排在群組資料夾之下。
Make sure Existing Customer is selected.
然後按 Enter 鍵。
請注意,Manual Test已經將您剛才輸入的陳述式縮排在群組資料夾之下。
Make sure Trent Culpito appears in the Full Name list.
In the Password field, type 1234567.
Click OK.
Manual Test會縮排以上每一個步驟,因為每一個步驟都是群組的一部份。
您剛才已經建立一個包含 4 個陳述式的群組。 接下來測試的六個陳述式並不是該群組的一部份。
Was the order placed correctly?
然後按 Enter 鍵。
您剛才輸入的陳述式很像是驗證點,不過更重要一些。 這個問題的答案就是您想在報告中加入的資訊。 所以,我們要把陳述式改為報告點。
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.
完成了。現在可以執行 Script。