2016年7月4日 星期一

Squish GUI Tester 測試工具

Hello~ Everyone!!!

今天這一節要來介紹一下 Froglogic 公司旗下的一個 GUI(Graphical User Interface) 測試工具 —Squish
首先我們先來聊聊什麼是 "Squish",它是一個跨平台、跨技術的 GUI 自動化測試工具,一般多用於 GUI 的功能性回歸測試使用。而目前所支援的平台如下:
  • Desktop:

  • Mobile:
  • Web:
  • Embedded:

目前業界有很多公司大都選擇 Squish GUI 測試,這大大縮短了測試時間並提升軟體的品質。

而這一節的內容大致會介紹一下 Squish 的安裝方式與測試方法,開始介紹前一樣先來張圖解大綱:


Step 1: First open Squish official website then click "Try Squish now"


Step 2: Fill in the form then click "Click to Download Squish GUI Tester"


Step 3: The Website will guide you how to download and also can download from below.
  • Desktop
  1. squish-6.0.3-windows.exe
  • Mobile
  1. squish-6.0.3-ios-windows.exe
  2. squish-6.0.3-android-win32.exe
  • Web
Step 4: Double click "squish-6.0.3-windows.exe" to  install Squish for test Desktop Windows version.


Step 5: Select a directory to extract Squish then click 



Step 6: Enter the License Key get from froglogic's email after register an account.


Step 7: Select "Accept" then click "Next >"


Step 8: Double click the License Type should be under "Evaluation version" then click "Next >"


Step 9: Check "Start the forglogic Squish IDE now" then click "Finish" for first start Squish IDE



9.1: Squish IDE main console.


Step 10: Create a new Squish Test Suite that got two way as below.
10.1: Click 


10.2: Click File > New Test Suite...


Step 11: Enter "Test Suite Name" and select "Test Suite folder's parent folder" then click "Next >"


Step 12: Choose GUI toolkit for test. This case select "Windows" then click "Finish(First time create test suite please follow the step 12.1)


12.1: Click "Next >" for select "Scripting Language"(ex. Python) then click "Next >"



12.2: Select Application "addressbook.exe" under test then click "Finish"


Step 13: The new test suite "TestSuite1" has been created ready.


Step 14: Create a new test case as below. Click 


14.1: Another way to create test case. Click File > New Test Case...


14.2: Enter "Test Case Name" and select "Script Test Case" then click "Finish"


Step 15: Record the test case. Click 


15.1: Select "addressbook" for the test application then click "OK"


Step 16: Show "Application" and "Control Bar"



Step 17: Fill in the detail as below for record the scenario then click "儲存".



Step 18: Select "Control Bar" then "Insert Verifications > Screenshot"


Step 19: Check the main object then click for select target "Object"




Step 20: Click "Save and Insert Verifications" then click "確認" finish the scenario record.




Step 21: Click for run the test then all pass and success show like as below.



Step 22: Now try the "Fail Case" change the script "001" to "002"

Step 23: Click for test again.


Step 24: Show "Object Not Found" then click "Pick New Object"



24.1: Select the testing "Object" and click then the window turn to "Red"


Step 25: Click "Retry" to continue the test.


Step 26: Show the "Test Results" is "Failed"


經過了漫長的安裝與攏長的測試過後,相信各位應該對 Squish 有了初步的概念。
不管是測試方法與測試概念,經由同一測試腳本修改 Script 就會有成功與失敗的兩種測試結果,這說明此測試情境是可行的。

雖然這次做的測試是執行在 Windows 底下的應用程式,以後還有機會我們會分別做 Web GUI 與 Mobile GUI 的測試案例。這一節就先介紹到這裡,我們下次見~ Bye Bye!!!

~ See you ~

參考出處:
https://www.froglogic.com/index.php

沒有留言:

張貼留言