Try   HackMD

SideeX Plugin for Jenkins

步驟1:安裝SideeX WebService

步驟2:安裝SideeX Plugin for Jenkins

  1. 開啟Jenkins後點選Manage Plugins
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  2. 點選Manage Plugins
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  3. 點選Available->Filter,搜尋SideeX
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

步驟3:建立一個測試工作

  1. 點選New Item

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  2. 輸入完Item名稱後選擇Freestyle project,並點選ok

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  3. 點選Build -> Add build step -> Execute SideeX Web Testing

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  4. 輸入Execute SideeX Web Testing上欄位值,說明如下:

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

    • Protocol:選擇連線至SideeX WebService Server之協定
      • 若選擇HTTPS (Enable certificate checking),則須於Certificate file path欄位中填入cert.pem檔案的本地絕對路徑或相對路徑
    • SideeX WebService base URL:SideeX WebService Server的網址,即為serverconfig.jsonwebservice.publicURL屬性值
    • Checking report periodically every (ms):設定每隔多久自動檢查SideeX WebService是否已完成測試案例執行,例如:輸入2000代表2000毫秒。
    • Test case file path:測試案例檔案路徑。測試案例檔案結構請參閱SideeX WebService 步驟4
      • 情況1:測試案例已存放在Jenkins伺服器本地端
        • 若測試案例為zip檔,則填入此檔案的絕對路徑或相對路徑,例如<some dir>/testcase.zip
        • 若測試案例為一個目錄(尚未壓縮成zip檔),則填入此目錄的絕對路徑或相對路徑,例如<some dir>/testcasedir
      • 情況2:若測試案例是上傳到git
        • 若測試案例為zip檔,則填入Jenkins Pull下來的檔案位置,例如內定Pull下來位置為workspace,則填入./testcase.zip
        • 若測試案例為一個目錄(尚未壓縮成zip檔),則填入Jenkins Pull下來的目錄位置,例如內定Pull下來位置為workspace,則填入./testcasedir

步驟4:執行並觀看測試報告

  1. 點選Save -> Build Now

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  2. 點選Console Output

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  3. 觀看執行狀態

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  4. 執行完成後,點選Back to Project->SideeX View Report

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

  5. 觀看測試報告

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →