Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

a6a18/Hahow-Quality-Recruitment

Repository files navigation

Hahow Quality Recruitment

Hahow測試工程師徵才小專案

基於pytest與allure的測試框架。

🧰 安裝

🛸 執行

  • 確保 localhost:5050、localhost:5252 port 並未被占用。
git clone https://github.com/a6a18/Hahow-Quality-Recruitment.git
cd Hahow-Quality-Recruitment
pip3 install -r requirements.txt    # 下載相關套件
docker-compose up -d allure allure-ui    # 啟動docker環境
  • 執行測試
# Linux/macOS
python3 run.py

# Windows
python run.py

可以到這裡查看最新的測試報告:

http://localhost:5050/allure-docker-service/latest-report

🏸 專案資訊

🗺️ 專案架構

.
├── allure-reports/             # allure測試報告
├── allure-results/             # allure測試結果
├── img/                        
├── tests/ 
│  ├── condition
│  │  └── api_conditon.py       # API測試的參考資料                     
│  ├── api_test.py              # API測試
│  ├── ui_test.py               # UI測試
│  └── chromedriver.exe         # WebDriver
├── .gitattributes
├── .gitignore
├── API_Answer.csv              # API問題的答案
├── docker-compose.yml          # dockerfile
├── README.md
├── requirements.txt
├── run.py                      # 執行程式
└── UI_Answer.csv               # UI問題的答案     

🐸 專案講解:

藉由docker建立allure測試報告環境

docker畫面

docker環境讀取專案內allure-reports和allure-results的檔案並呈現測試報告於

http://localhost:5050/allure-docker-service/projects/default/reports/latest/index.html?redirect=false

Allure報告視窗

測試案例呈現

Testcase

可至 http://localhost:5252/allure-docker-service-ui/projects/default 查看測試管理介面

測試管理

About

Mini project for Hahow recruitment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages