====== Raip(SideeX) Runner Web Test Tools ======
* [[https://github.com/RapiTest/rapi|Rapi]] 前身是 [[https://hackmd.io/@sideex/history-zh|SideeX]] , 但改成 Chrome 的 Extension 方式進行安裝使用, 若要整合 [[https://www.selenium.dev/|Selenium]] 則需要自行額外安裝
===== 在 Windows 環境安裝 Selenium =====
- 先安裝 [[https://www.oracle.com/java/technologies/downloads/|Java SE]] Exp. JDK Development Kit 21.0.1
java --version
- 下載 [[https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.15.0/selenium-server-4.15.0.jar|Selenium Server(Grid)]] Exp. selenium-server-4.15.0.jar
- 啟動 Selenium Server(Grid)
java -jar selenium-server-4.15.0.jar standalone --selenium-manager true
++看畫面|{{:tech:2023-11-21_120356.png|}}++
===== 設定 Rapi 啟用 Selenium =====
- 下載 [[http://chromedriver.chromium.org/downloads|chromeDrive(Chrome)]] Exp. [[https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_win32.zip|ChromeDriver 114.0.5735.90]] 解壓縮後將 exe 檔放到和 selenium-server 相同目錄 ++看畫面|{{:tech:2023-11-21_121605.png|}}++
- 下載 [[https://github.com/mozilla/geckodriver/releases|geckodriver(Firefox)]] Exp. [[https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-win64.zip|geckodriver-v0.33.0]] 解壓縮後將 exe 檔放到和 selenium-server 相同目錄 ++看畫面|{{:tech:2023-11-21_122012.png|}}++
- 設定 Rapi
- Playback Throuth WebDriver
- 勾選 chrome 與 firefox
- ++看設定畫面|{{:tech:2023-11-21_122154.png|}}++
- 可以將透過 rapi 錄製的 json 檔撥放時透過 WebDriver
===== 參考網址 =====
* https://hackmd.io/@Rapi/rapi-runner
* https://hackmd.io/@Rapi/rapi-runner-config-file
* https://github.com/RapiTest/rapi-runner/releases/
* https://hub.docker.com/_/openjdk/tags?page=1&name=bookworm
* https://www.selenium.dev/downloads/
* https://chromedriver.chromium.org/downloads
* https://pkgs.org/download/google-chrome-stable
* https://googlechromelabs.github.io/chrome-for-testing/#stable
* https://chromedriver.storage.googleapis.com/index.html?path=114.0.5735.90/
{{tag>draft, devops}}