文章目錄
技術架構
前端:js+vue+element-ui
github地址:https://github.com/pencil1/ApiTestWeb
後端:python+flask+httprunner
github地址: https://github.com/pencil1/ApiTestManage
數據庫:sqlite
前端部署
1、安裝windows版本的node.js
2、安裝windows版本的Python2(包括配置環境變量)
3、安裝yarn(包括配置yarn)
npm install -g yarn
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g
4、安裝node-sass
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
npm install node-sass
5、安裝依賴的packages
yarn install
6、運行項目
yarn serve
後端部署
1、安裝windows版本的Python3(包括配置環境變量)
2、安裝項目依賴的packages
pip install -r requirements.txt
3、安裝IDEA插件
4、運行項目
5、初始化數據庫
set FLASK_APP=manage.py
flask initdata
參考資料
[01] 開源啦~接口自動化測試平臺
[02] npm,yarn替換國外鏡像爲國內鏡像,安裝依賴
[03] 使用 yarn 安裝時,報錯node_modules\node sass:Command failed.
[04] 解決pip install慢的方法
[05] HttpRunner中文用戶手冊
[06] 基於 HttpRunner 的 Web 測試平臺
[07] SQLAlchemy中解決數據庫訪問時出現的Incorrect string value: xxx at row 484
[08] mysql 創建表遇到單列的長度限制 ERROR 1074 (42000) 與 行長限制 ERROR 1118 (42000)
微信掃一掃關注公衆號
點擊鏈接加入羣聊
https://jq.qq.com/?_wv=1027&k=5eVEhfN
軟件測試學習交流QQ羣號:511619105