【正文】
(論 文) 基于 QTP 的自動化測試 學(xué) 院(系): 計算機科學(xué)與工程學(xué)院 專 業(yè): 軟件工程 學(xué) 生 姓 名: 學(xué) 號: 指 導(dǎo) 教 師: 評 閱 教 師: 大連 民族學(xué)院 基于 QTP 的自動化測試 I 摘 要 目前 在軟件測試行業(yè) 里 , 除了大家所熟悉的黑盒測試和白盒測試以外,還 分為手工測試和自動化測試 。 自動化測試相對于手工測試有 很多優(yōu)點,它 最主要的優(yōu)點就是省時,省力,省財務(wù)開銷。 自動化測試工具中具有代表性的是 QTP, QTP 適用于軟件測試中的smoke 測試以及回歸測試( regression test), QTP 腳本具有相當(dāng)高的可移植性和可重用性,“一本萬利”,即一本 QTP 測試腳本經(jīng)過簡單修改后可以應(yīng)用于多個測試軟件以及測試環(huán)境。 本次畢業(yè)設(shè)計,以 QTP 為自動化測試工具,以“美圖秀秀”軟件為 被測軟件,通過 QTP 的描述性編程方法,實現(xiàn)該軟件從安裝到卸載的功能測試 和 界面檢查測試,以及安裝完成后的軟件功能性測試和 UI 測試。最終產(chǎn)生可讀性 好 ,易于跟蹤的 QTP 自動化報告, 用來分析軟件的缺陷。通過使用 QTP 對“美圖秀秀”軟件進(jìn)行測試的實例,展示出了 QTP 自動化測試在軟件測試行業(yè)中 方便,快捷的優(yōu)越性。 關(guān)鍵詞: 自動化測試 ; 報告 ; 描述性編程 基于 QTP 的自動化測試 II Automated testing based on QTP Abstract In the software testing industry, with the exception that everyone is familiar distinguished with black box testing and white box testing, it also consist of manual testing and automated testing. The main advantage of automation is saving time, effort, the provincial financial cost. In automated testing software, QTP is outstanding. QTP used in smoking testing and regression testing (regression test ) in the software testing. QTP script with a very high portability and reusability, a big profit, that is a QTP test script through simple modifications can be applied to various test software and test environment. In this graduation design, using QTP for the automated testing tools and using beauties Xiu Xiu software for the software under test, through QTP descriptive programming, implementation of the software from installation to uninstall which include the functional testing and inspection interface testing, and the software functionality testing and UI testing after installation Upon pletion. Eventually produce readable and easy to follow the QTP automated reporting, which used to analyze software defects. By using QTP on the beauties Xiu Xiu software test examples, demonstrating the convenient, fast superiority of QTP automated testing in the software testing industry. Key Words: Automated testing; Report; Descriptive programming 基于 QTP 的自動化測試 III 目 錄 摘 要 ..................................................................................................................................... I Abstract ...................................................................................................................................... II 1 軟件測試簡介 ......................................................................................................................... 1 軟件測試簡介 ............................................................................................................. 1 2 自動化測試簡介 .................................................................................................................... 2 自動化測試的目的 ..................................................................................................... 2 自動化測試流程圖 ..................................................................................................... 3 3 QTP 自動化測試 .................................................................................................................... 4 QTP 自動化測試簡介 ................................................................................................. 4 QTP 的工作模式 ......................................................................................................... 5 QTP 自動化測試流程 .............................................................................................. 7 準(zhǔn)備測試用例 .................................................................................................. 7 配置 QTP 運行環(huán)境 ........................................................................................ 7 錄制或編寫自動化測試腳本 .......................................................................... 7 檢查修改腳本 .................................................................................................. 7 運行調(diào)試測試腳本 ................................................................................