原文連結:https://www.jianshu.com/p/ea6f7fb69501
參考資料:
https://github.com/vinta/awesome-python
https://github.com/atinfo/awesome-test-automation
https://westurner.github.io/wiki/awesome-python-testing
splinter - web UI測試工具,基於selnium封裝。https://github.com/cobrateam/splinterhttps://github.com/SeleniumHQ/selenium/tree/master/py --推薦 文檔參考:https://china-testing.github.io/selenium_example5.html
mechanize- Python中有狀態的程序化Web瀏覽。https://github.com/python-mechanize/mechanize
selene - 使用Python + Ajax支持+ PageObjects + Widgets進行簡明UI測試https://github.com/yashaka/selene/
hitch - 基於服務的應用程式的高級集成測試框架。https://github.com/hitchtest/hitchhttps://github.com/python-needle/needle
seleniumbase - 端到端自動化測試框架。https://github.com/seleniumbase/SeleniumBase
pytest_splinter - pytest spinter和selenium集成。https://github.com/pytest-dev/pytest-splinter
Browsermob Proxy - Browsermob Proxy的python包裝器。https://github.com/AutomatedTester/browsermob-proxy-py
Selenium-Requests - 擴展Selenium WebDriver類以包含請求庫中的請求函數,同時完成所有需要的cookie和請求頭處理。https://github.com/cryzed/Selenium-Requests
https://github.com/appium/python-client --推薦https://github.com/xiaocong/uiautomator
ATX - 智慧型手機自動化工具。支持iOS,Android,WebApp和遊戲。網易出品 https://github.com/xiaocong/uiautomator --推薦
uiautomator2- Android Uiautomator2 Python Wrapper。 https://github.com/openatx/uiautomator2 --推薦
facebook-wda Facebook WebDriverAgent Python Client Library (not official) 可用於IOS應用測試。 https://github.com/openatx/facebook-wda2 --推薦
Winium.Desktop - 開源測試自動化工具,用於基於WinForms和WPF平臺自動測試Windows應用程式,基於Selenium遠程WebDriver實現。https://github.com/2gis/Winium.Desktop/
pyautogui- 跨平臺的UI自動化工具,控制滑鼠和鍵盤。https://github.com/asweigart/pyautogui
autopy - 簡單的跨平臺GUI自動化工具包,適用於Python。https://github.com/msanders/autopy
pywinauto - Windows UI自動化。https://github.com/pywinauto/pywinauto/
SikuliX - 基於OpenCV的GUI測試框架,使用圖像識別來定位與之間的項目,來自python 2.7的腳本,跨平臺。https://github.com/RaiMan/SikuliX-2014
https://github.com/reclosedev/pyautocadhttps://developer.android.com/studio/test/monkeyrunner/index.htmlhttps://pypi.python.org/pypi/ldtphttps://pypi.python.org/pypi/dogtail
pyautoit- autoit python api。https://github.com/jacexh/pyautoit雪峰磁針石說明:autopy、WATSUP、winGuiAuto因為較長時間未更新未收錄。https://china-testing.github.io/testing_tools_perf.html
http://funkload.nuxeo.org/ --推薦
Locust.io –
了解伺服器端性能的好工具。 語言python3。源碼:https://github.com/locustio/locust python3+ python2.7+ github上star和fork最多的性能測試工具。--強烈推薦
Bees with Machine Guns –
進行負載測試的蜜蜂(微型EC2實例)。語言python3+ python2.6+ https://github.com/newsapps/beeswithmachineguns --強烈推薦
Multi-Mechanize –
用於性能和負載測試的開源框架,
它運行並發Python腳本以生成針對遠程站點或服務的負載(複合事務)。它通常用於Web性能和擴展性測試,但您也可以使用Multi-Mechanize來測試任何遠程API。--基於python多進程和多線程實現,學習自行開發性能測試的佳品。Python 2.6 or 2.7 較長時間沒有更新,一般只建議改造使用。https://github.com/cgoldberg/multi-mechanize
ngrinder - 市面上最強大的性能測試工具之一,
主要用jython書寫腳本,性能在loadrunner和jmeter之上,擴展性好。https://github.com/naver/ngrinder --強烈推薦
boom - 類似ab(ApacheBench)的性能測試工具。https://github.com/tarekziade/boom
https://github.com/svanoort/pyresttest
HttpRunner HTTP接口測試框架 -- 推薦https://github.com/HttpRunner/HttpRunner
augmented-traffic-control facebook開發的最強悍弱網網絡模擬工具 --強烈推薦https://github.com/facebook/augmented-traffic-control
Hypothesis - 高級單元測試測試框架,支持行為驅動,基於property 。-- 推薦https://github.com/HypothesisWorks/hypothesis-python
unittest - (Python 標準庫) 單元測試框架-- 推薦 https://docs.python.org/2/library/unittest.html https://github.com/nestorsalceda/mambahttps://github.com/nose-devs/nose
nose2- nose基於unittest2的版本。https://github.com/nose-devs/nose2
pytest- 很好的強大的單元測試框架,實際上廣泛使用在自動化單元、接口、功能等測試。https://github.com/pytest-dev/pytest -- 強烈推薦 參考:https://china-testing.github.io/python_pytest_testing1.html
testify - 單元測試框架,提供增強的測試fixture設置,
將測試套件拆分成易於並行化的存儲bucket,PEP8命名約定,帶有大量日誌/報告選項及顏色測試運行器。https://github.com/Yelp/Testify/
trial - Twisted的單元測試框架,基於unittest。http://twistedmatrix.com/trac/wiki/TwistedTrial
Robot Framework- 通用的python測試框架,易於上手,
生成的報告比較好看,適合小型公司使用,支持關鍵字和數據等驅動,系業界內很出名的框架。不過因為寫用例不能很靈活的應用python,需要大量的python封裝,大公司通常使用pytest,django,flask之類的庫自行開發。https://github.com/robotframework/robotframework
green- 彩色(命令行能顯示多種顏色)的單元測試框架。https://github.com/CleanCut/green
tox- 基於virtualenv的測試框架,主要用於解決多版本python問題。https://github.com/tox-dev/toxhttps://github.com/sixpack/sixpackhttps://github.com/gabrielfalcao/lettuce
pyccuracy- 行為驅動 web驗收測試框架。https://github.com/heynemann/pyccuracy
pytest-bdd- 基於pytest的行為驅動 測試框架。https://github.com/pytest-dev/pytest-bddhttps://github.com/txels/ddthttps://github.com/behave/behavehttps://github.com/gabrielfalcao/lettuce
mamba - Python的測試定義工具,基於行為驅動。https://github.com/nestorsalceda/mamba
pyvows - Python的異步行為驅動開發,Vows.js的python移植。https://github.com/heynemann/pyvows
pyhamcrest - Python的Hamcrest匹配器。https://github.com/hamcrest/PyHamcrest
sure - 強大而靈活的斷言python測試庫。https://github.com/gabrielfalcao/sure
factory_boy - 基於thinkbot的factory_girl的fixture替代。https://github.com/FactoryBoy/factory_boy
https://bitbucket.org/DavidVilla/python-doublex
mock:(Python3 標準庫) mock和patch。https://docs.python.org/3/library/unittest.mock.htmlhttps://github.com/spulec/freezegun
httmock:Python 2.7+ 和 3.4+ mock requests庫。https://github.com/patrys/httmock
httpretty:Python 的 HTTP 請求 客戶端mock 工具,暫時不支持python3。https://github.com/tox-dev/tox
responses:針對requests 庫的mock庫。https://github.com/getsentry/responses
VCR.py:錄製HTTP請求加快測試執行速度並可進行mock。https://github.com/kevin1024/vcrpy -- 推薦
factoryboy:Python測試fixtures(setup和teardown)替代庫。https://github.com/FactoryBoy/factory_boy
mixer:另外一個測試fixtures(setup和teardown)替代庫,支持 Django, Flask, SQLAlchemy, Peewee 等。https://github.com/klen/mixer
modelmommy:為 Django測試創建隨機fixtures https://github.com/vandersonmota/model_mommyhttps://github.com/joke2k/fakerhttps://github.com/emirozer/fake2dbhttps://github.com/lk-geimfari/mimesis雪峰磁針石說明:radar 因為github星級太少而未收錄 最近版本參見原文:https://github.com/china-testing/python-api-tesinghttps://bitbucket.org/ned/coveragepyhttps://github.com/ajalt/fuckitpy
RoboBrowser:一個簡單的,Python 風格的庫,用來瀏覽網站,而不需要一個獨立安裝的瀏覽器。https://github.com/jmcarp/robobrowser
MechanicalSoup:用於自動和網絡站點交互的 Python 庫。https://github.com/MechanicalSoup/MechanicalSoup
augmented-traffic-control:網絡模擬工具。-- 強烈推薦https://github.com/facebook/augmented-traffic-control
buildbot - google等公司使用的持續集成框架,上手比Jenkins難,功能和性能遠比Jenkins強大。https://github.com/buildbot/buildbot/ python庫介紹-buildbot教程
BitBake – 嵌入式Linux上類似make工具。http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
buildout – 用於從多個部分創建,組裝和部署應用程式的構建系統。PlatformIO – 在不同的開發平臺的控制臺構建工具。https://github.com/platformio/platformio-core
PyBuilder – 純Python編寫的持續構建工具。https://github.com/buildbot/buildbot/https://github.com/SCons/scons
jira –自動化JIRA。
https://github.com/pycontribs/jira
https://github.com/vinta/awesome-pythonhttps://github.com/atinfo/awesome-test-automationhttps://westurner.github.io/wiki/awesome-python-testing本文相關書籍下載:https://github.com/china-testing/python-api-tesing/blob/master/books.md本文github地址:https://github.com/china-testing/python-api-tesing如果這篇文章對你有幫助,請給臻叔點個讚!👍這樣我才有動力繼續更新下去!
也歡迎加入臻叔的測試交流群,我們一起交流成長!
更新日期 2021.11.02
獲得最新目錄,回復關鍵詞:目錄
資料匯總:測試必讀書籍 | 必知網站清單
學習路線:轉行測試 | 自動化測試-學習路線 | Python-學習路線 | 測試開發 |性能測試學習路線
面試寶典:測試崗面試題專刊(牛客獨家) | 2020面試題合集 | Python編程題 | 測試基礎知識 | 測試基礎知識(舊) | 面試技巧 | 面試思路|怎麼測電梯|
面試真題:百度面試題答案1 | 百度面試題答案2 | 字節面經1 |貝殼面經1
精華筆記:《餓了麼質量體系搭建實戰》| 《AI自動化測試》|《代碼整潔之道》 | 《性能測試》
測試基礎:軟體測試基本概念 | 黑盒測試用例 | 抓包教程|測試計劃|軟體測試生命周期 | 軟體測試基本分類|最全APP測試點 | 新手抓包教程 |
測試用例:測試用例書寫 | 抖音直播功能測試用例 | 優惠券測試用例|手機掃二維碼的測試用例 |
測試工具:測試工具庫 | 常用軟體 | 測試框架 | 瀏覽器F12 | Python測試開發庫及項目
測試思維:排查問題的思路
測試進階:淺談devOps
測試日常:提升測試效率
資料庫:資料庫索引 | 手撕SQL | 搜尋引擎ES | ES搭建
個人項目:搭建個人博客
移動端測試:adb命令 | APP耗電量測試 |
自動化測試:ui自動化工具-uiautomator2 | 移動端UI自動化思路 |
接口/性能測試:接口測試實戰 | 伺服器監控平臺 | Apifox | Postman基礎 | 接口自動化Newman | Jmeter1 | Jmeter2 |Jmeter3
網際網路工作:常見名詞(上)| 常見名詞(下)| 國外測試崗位1 | 國外測試崗位2 | 成都值得去的中小公司 | 廣州值得去的網際網路公司 | 杭州值得去的網際網路公司 |深圳值得去的網際網路公司 |
自學python:數據類型 | 編程風格 | 運算符 | 函數 | 變量
臻叔嘮嗑:成都程式設計師的生活 | 只會測試沒有前途?| 不靠譜的測試工程師 | 編程誤區 | 硬功夫 | 軟實力 | 粉絲問題(上)| 粉絲問題(下)| 四川美景 | 為什麼測試要懂開發 |
推薦文章:垃圾回收|輸入URL後的技術步驟|面試題:IOC|搭建Appium環境|突擊JAVA面試|Redis消息隊列|線程和進程區別|資料庫優化|MongoDB應用場景|樂觀鎖和悲觀鎖適用場景|消息隊列MQ|阿里怎麼做單元測試 |
段子:不講碼德