python測試框架數據生成工具最全資源匯總

xUnit frameworks 單元測試框架
frameworks 框架
unittest - python自帶的單元測試庫,開箱即用
unittest2 - 加強版的單元測試框架,適用于Python 2.7以及后續版本
pytest - 成熟且功能強大的單元測試框架
plugincompat - pytest的執行及兼容性插件
nosetests - 讓python測試更容易一點
slash - python實現的單元測試框架

extensions 擴展
proboscis - 仿TestNG擴展了unittest模塊以及Nose的功能
grail - 可以讓你一步一步編寫測試用例的庫
testify - 單元測試框架,提供了加強型fixture,用例切割并行運行,testrunner高亮及詳盡的log和report功能
trial - unittest模塊的擴展,提供了命令行的testrunner工具以及代碼覆蓋率的整合,跟nose差不多
subunit - 提供了unittest在另一個進程執行用例并匯總測試數據的能力
testresources - 提供了多用例間管理測試數據的機制,兼容unittest
testtools - 為Twisted和Bazaar提供的unittest擴展
Sancho - 運行用例,并為失敗的用例提供報告,但僅限于此
zope.testing - testrunner,提供了不錯的debuge能力,并且集成了代碼覆蓋率。可以跟zope項目使用,也可以用在非zope項目上
pythoscope - 自動或半自動為遺留的python系統創建測試用例的工具
testlib - 更強大的unittest,更多的斷言,支持module級的setup/teardown,skip test等...
dutest - An object oriented interface to retrieve unittest test cases out of doctests. Hides initialization from doctests by allowing setUp and tearDown for each interactive example. Allows control over all the options provided by doctest. Specialized classes allow selective test discovery across a package hierarchy.
green - Green是一個簡潔多彩的testrunner,跟nose很像
ddt - 讓unittest 支持 Data-Driven
pytractor Selenium python bindings的擴展. 目的是讓angular項目的測試更簡單

TDD ATDD BDD 測試框架
BDD
behave - BDD 框架
lettuce - 又一個BDD框架
lettuce-tools - 一整套lettuce擴展,讓BDD更加簡單
contexts - Python的描述性測試工具
mamba - python的definitive testing 工具
pyvows - 異步的行為驅動開發測試工具
pytest-bdd - py.test runner的BDD庫
robotframework - 最有名的acceptance test-driven development (ATDD)測試框架
awesome-robotframework - 各種rf的擴展庫
radish-bdd - BDD框架,支持gherkin語言

Assertions 斷言
pyshould - 基于pyhamcrest的Should style斷言
pyhamcrest - python版的Hamcrest matchers
sure -python實現的測試庫,提供了強大靈活的斷言
assertpy - 巨簡單的python單元測試斷言庫,提供了優雅流利的API. 支持Python 2 和 3.

Mocking
mock - python實現的Mocking和Patching庫
Ludibrio - 用python實現的優雅的test doubles框架(mocks, stubs, spy, and dummies).
responses - mock請求的 Python測試工具庫
doublex - 強大的 test doubles 框架
freezegun - 通過mocking datetime模塊實現時光穿梭
httpretty - HTTP請求的mock工具
httmock - requests的mock工具,支持Python 2.6+ and 3.2+.
pretenders - 測試用的fake server
mock-server - 簡單的mock sever,支持REST and XML-RPC API,還有基于tornado的管理界面
VCR.py - 自動 mock HTTP 交互 讓測試更簡單快速
Test Data manipulation 測試數據的操作和處理
faker - 生成假數據的python庫
fake2db - 創建假數據庫
ForgeryPy - 使用起來很簡單的假數據生成庫.
radar - 隨機生成時間
robotframework-faker - faker的Robot Framework封裝
hypothesis - Library for property based testing in Python, based on the Haskell library Quickcheck.
factory_boy - factory_girl的python版本
fauxfactory - 隨機數據生成器
Code analysis 代碼掃描及分析
pysonar2 - 類型推斷

coverage - 覆蓋率
pycallgraph - 流程可視化
Flake8 - The modular source code checker: pep8, pyflakes and co.
pylama - Python and JavaScript的代碼審查工具
Pylint - 源代碼分析器
hacking - OpenStack Hacking Style Checks (flake8 plugins).
prospector - 代碼分析工具,可以輸出錯誤信息,潛在問題,不規范的代碼以及代碼復雜度
Web UI test automation Web UI 自動化
libraries 各種庫
selenium webdriver - 瀏覽器自動化工具
splinter - 簡單的web自動化工具,讓元素定位,表單提交等更加容易
mechanize - 有狀態可編程的瀏覽器

?

frameworks and wrappers 框架和封裝

py.saunter - 有主見的自動化測試框架,使用了selenium RC和webdriver api
moz-web-qa - py.test的插件,為Mozilla的WebQA項目提供了額外功能
testutils sst - A web test framework that uses Python to generate functional browser-based tests.
wtframework - 讓web測試可以配置的框架
holmium.core - Page Object及其他工具庫支持
robotframework-selenium2library - Robot Framework的selenium擴展
gocept.selenium - selenium RC的API, 適合編寫基于WSGI, Plone, Zope 2, ZTK, or Grok 應用的測試用例
webium - 基于python的一個Page Object實現
robotframework-anywherelibrary - Robot Framework的擴展庫,使用selenium2測試web應用,使用appium測試移動應用
robotframework-pageobjects - 一個不錯的Page Object實現,可以脫離robot framework單獨使用。 具體看這里
elementium - 用jQuery風格的語法糖來實現瀏覽器的自動化測試用例
slickqa - slick-webdriver-python 項目是python selenium binding的一個封裝
selene - Concise UI 測試用例,使用python實現支持Ajax,PageObjects和Widgets
hitch - 編寫基于service的應用的測試用例
Needle - Needle是基于圖片比對的測試工作,它可以對web應用的一部分進行截圖,然后跟預期結果的圖片進行比對
PyPOM - PyPOM是另一個Page Object庫,適用于Selenium和Splinter測試
POM - POM是Page-Object-Model 微框架,目的是讓Web UI測試更加簡單,快速和有樂趣
websmith - Web測試的一套DSL
pages - 輕量的page object庫和組建
widgetastic - RedHat UI widget 組建框架
navmazing - PageObjects based navigation from RedHat
nightwatch - 基于python和selenium的UI 自動化測試框架. 靈感來源于nightwatch.js

extensions 擴展
webdriver_manager - 主要目的是讓不同版本的瀏覽器driver管理起來更加方便
pytest_splinter - pytest spinter 和 selenium的集成
lettuce_webdriver - Selenium webdriver 的 lettuce封裝
Browsermob Proxy - python的Browsermob Proxy封裝
FireRobot - 一個Firefox的擴展,讓你可以更高效的編寫基于robot framework的selenium用例
pytractor - Python的selenium擴展,以便更好的測試angular.js應用
Selenium-Requests - 擴展 Selenium WebDriver類,包含了Requests庫的一些功能,可以更方便的處理cookie和請求頭
selenium-respectful - selenium的封裝,可以并行訪問站點

Mobile test automation 移動端自動化測試工具
appium - 開源的自動化測試框架,可以測試native/hybrid/mobile web應用。核心是基于webdriver協議進行了擴展
Winium.StoreApps - 開源的自動化測試用具,用來測試Windows Store應用,實現了Selenium Remote WebDriver
robotframework-androidlibrary - Robot Framework用來測試android應用的擴展庫
robotframework-appiumlibrary - appium的RobotFramework擴展
robotframework-ioslibrary -Robot的ios測試擴展庫
uiautomator - Android uiautomator的python封裝, 支持 Android 4.1+
ATX - 智能機自動化測試工具. 支持 iOS, Android, WebApp 和游戲

Windows UI test automation Windows的UI測試工具
Winium.Desktop - 測試Windows應用(主要是基于WinForms和WPF平臺)的自動化測試工具. 實現了Selenium Remote WebDriver協議
PyAutoGUI - 跨平臺的GUI測試工具,支持通過python腳本控制鍵盤和鼠標
robotframework-autoitlibrary - Robot Framework的windows GUI測試擴展
autopy - 簡單跨平臺的GUI測試工具集
UISoup - 支持windows和MacOS平臺的UI自動化(僅工作在x86平臺)
pywinauto - 非常有python面向對象風格的GUI測試庫,現已支持64位機器以及py2和py3
SikuliX - 基于OpenCV的 GUI 測試框架, 使用圖片識別技術,支持python2.7

Unix \ Linux UI test automation
ldtp - 跨平臺的linux GUI測試項目
fMBT - 支持多平臺的python GUI測試庫
SikuliX - 基于OpenCV的 GUI 測試框架, 使用圖片識別技術,支持python2.7

MacOS UI test automation MacOS UI自動化測試工具
ATOMac - 通過Apple Accessibility API來測試Mac應用的python庫
PyAutoGUI - 跨平臺的GUI測試工具,支持通過python腳本控制鍵盤和鼠標
SikuliX - 基于OpenCV的 GUI 測試框架, 使用圖片識別技術,支持python2.7
REST API Testing REST API測試
Rester - 測試RESTful API的框架

pyresttest - REST以及API microbenchmarking工具

siesta - Python REST 客戶端

Virtual environments 虛擬環境
virtualenv - 創建隔離的python開發環境的工具

virtualenvwrapper - virtualenv的一些擴展

tox - 虛擬環境管理,可以在不同的python版本上進行測試和截圖

pew - 一些管理虛擬環境的工具

Vex - 在命名的虛擬環境運行命令

PyRun - 單文件無需按照的python版本

pyenv - 簡單的python版本管理

Tapper - all-embracing test infrastructure.

Performance & stress & load 性能測試
Multi-Mechanize - 開源的性能測試框架

locust - 可擴展的python性能測試工具

Yandex.Tank - 性能及benchmark工具

pytest-benchmark - py.test的benchmark工具

Airspeed Velocity - 簡單的Python benchmarking工具自帶基于web的報告

The Grinder - 支持分布式的負載測試框架. 包含一些常規用例,比如 HTTP web servers, SOAP and REST web services, 和 application servers (CORBA, RMI, JMS, EJBs),以及定制化的協議. 測試腳本使用Jython和Clojure實現

Tsung - 開源,支持多協議的分布式性能測試工具. 可以測試 HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP 和 Jabber/XMPP 服務

taurus - 自動化友好的持續測試工具

Security checking 安全掃描
sparta - 支持gui的網絡掃描工具

OWASP ZAP - 用python實現的OWASP ZAP-features API

pythem - pythem是多用途的安全測試工具

轉載于:https://www.cnblogs.com/qianjinyan/p/10444054.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280083.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280083.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280083.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

t30智能插座怎么設置_如何設置ConnectSense智能插座

t30智能插座怎么設置If you like the idea of smart outlets, but wish you had one with more than just one receptacle on it, the ConnectSense Smart Outlet is worth looking into. Here’s how to set it up and instantly get double the fun. 如果您喜歡智能插座的想法…

用鏈表和數組實現HASH表,幾種碰撞沖突解決方法

Hash算法中要解決一個碰撞沖突的辦法,后文中描述了幾種解決方法。下面代碼中用的是鏈式地址法,就是用鏈表和數組實現HASH表。 he/*hash table max size*/ #define HASH_TABLE_MAX_SIZE 40/*hash table大小*/ int hash_table_size0;/*.BH----------------…

安卓操作sqlite3,增刪改查

創建 layout <?xml version"1.0" encoding"utf-8"?> <LinearLayout xmlns:android"http://schemas.android.com/apk/res/android"android:orientation"vertical"android:layout_width"match_parent"android:layo…

基于.NetCore開發博客項目 StarBlog - (23) 文章列表接口分頁、過濾、搜索、排序

1前言上一篇留的坑&#xff0c;火速補上。在之前的第6篇中&#xff0c;已經有初步介紹&#xff0c;本文做一些補充&#xff0c;已經搞定這部分的同學可以快速跳過&#xff0c;基于.NetCore開發博客項目 StarBlog - (6) 頁面開發之博客文章列表對標準的WebApi來說&#xff0c;分…

如何在Chrome中保存您當前的所有標簽,以便以后閱讀

Chrome allows you to open tabs from your last browsing session when you open the browser. However, what if you want to save your current set of tabs to re-open at any time? Chrome doesn’t provide a way to do that natively, but there is an easy workaround…

ubuntu 16.04(Windows 10雙系統+grub引導)無法進入tt1~tt6(NVIDIA驅動安裝相關-黑屏,login loop,分辨率)...

目錄 前言回顧最終解決&#xff1a;0.關閉x服務1.禁用nouveau2.加入3.更新4.查找匹配驅動5.選擇推薦版本6.等待安裝后重啟,nvidia-smi查看是否安裝成功,或者lsmod | grep nvidia&#xff0c;成功結果如下7.重啟x服務8.此時還不能進入圖形界面&#xff0c;因為nomodeset還在&…

(備忘)打開office2010總是在配置進度

1、同時按上鍵盤上面的windows鍵和R鍵&#xff0c;出現“運行” 2、輸入“regedit”&#xff0c;回車進入注冊表 3、點擊“HKEY_CURRENT_USER”展開&#xff0c;依次“Software”--“Microsoft”--“Office”--"14.0"--"Word"展開&#xff0c;點擊"Op…

java、oracle對CLOB處理

oracle CLOB字段轉換位VARCHAR 1.實際上處理CLOB字段的時候&#xff0c;直接TO_CHAR&#xff0c;當長度超過4000的時候&#xff0c;會報錯&#xff0c;提示列被截取&#xff1b; CLOB轉varchar2&#xff1a;select to_char(CLOB字段) from table 2.直接使用SUBSTR對CLOB字段進行…

android 更改軟鍵盤_如何在Android的Google鍵盤上更改聲音和振動

android 更改軟鍵盤Tactile feedback from a touch screen keyboard is crucial, in my opinion, but I don’t like sounds when I tap keys. You may not be like me—maybe sounds are your thing, but vibration is annoying. Or maybe you dislike both (you rebel!). The…

『 再看.NET7』看看required屬性有什么不同

還是先看看C#中屬性的這定義&#xff0c;在初始化和訪問上有哪些方式&#xff0c;就能看出required屬性有什么不一樣的地方了。屬性&#xff0c;是封裝字段的&#xff0c;通過get和set訪問器可以很好地驗證數據的有效性。public record Order_00 {public Guid Id { get; set; }…

知識點:Mysql 索引原理完全手冊(1)

知識點&#xff1a;Mysql 索引原理完全手冊(1) 知識點&#xff1a;Mysql 索引原理完全手冊(2) 知識點&#xff1a;Mysql 索引優化實戰(3) 知識點&#xff1a;Mysql 數據庫索引優化實戰(4) Mysql-索引原理完全手冊 一、 介紹二、 索引的原理三、 索引的數據結構四、 聚集索引與輔…

如何將Apple Mail建議用于事件和聯系人

Apple products come preinstalled with an email client that can, on occasion, be quite smart. Today we want to show you another great feature: suggestions for event and contacts. Apple產品預裝了一個電子郵件客戶端&#xff0c;該客戶端有時可能非常聰明。 今天&a…

TPshop表結構

tp_account_log -- 賬戶表 字段名字段類型默認值描述log_idmediumint(8) unsigned 日志iduser_idmediumint(8) unsigned 用戶iduser_moneydecimal(10,2)0.00用戶金額frozen_moneydecimal(10,2)0.00凍結金額pay_pointsmediumint(9) 支付積分change_timeint(10) unsigned 變動時間…

Redis 通配符批量刪除key

問題&#xff1a; 線上有部分的redis key需要清理。 一、 由于Keys模糊匹配&#xff0c;請大家在實際運用的時候忽略掉。因為Keys會引發Redis鎖&#xff0c;并且增加Redis的CPU占用&#xff0c;情況是很惡劣的&#xff0c; 官網說明如下&#xff1a; Warning: consider KEYS as…

如何在 .Net 7 中將 Query 綁定到數組

在 .Net 7 中&#xff0c;我們可以通過綁定數組的方式來接收來自查詢字符串的參數。這樣就不需要再使用逗號分隔的字符串來獲取參數了。代碼演示 假設我們需要從 query 上接受多個 id 并返回查詢的結果。例如&#xff1a;id1&id2在 .Net 7 中&#xff0c;我們可以這樣實現&…

xbox one 越獄_如何在Xbox One上播放視頻和音樂文件

xbox one 越獄The Xbox One has integrated TV features and support for streaming media apps like Netflix and Hulu, but that isn’t where it ends. You can play video and music files you’ve ripped or downloaded by plugging in a USB drive or streaming them ove…

C++實驗七

11——3 #include<fstream>using namespace std;int main(){ ofstream file; file.open("test1.txt",ios_base::binary); file<<"已成功添加字符&#xff01;"; file.close(); return 0; } 11-4 #include<fstream>#include<iostrea…

Visual Studio 15.4發布,新增多平臺支持

微軟發布了Visual Studio 2017的第四個升級版本&#xff0c;并且延續了支持.NET Standard 2.0和通用Windows平臺&#xff08;UWP&#xff09;的承諾。.NET Standard 2.0支持是微軟推動跨平臺應用程序開發和代碼重用戰略的重要一環。\\15.4版本的變化與微軟發布的預覽版非常接近…

重新學習web后端開發-001-寫在前面的話

"長風破浪會有時 直掛云帆濟滄海" —— 李白<!-- more --> 1. 為什么會寫這個系列 隨著互聯網技術飛速的非常&#xff0c;web開發一直都是互聯網技術的重要部分之一。在作者十余年的工作中&#xff0c;經歷了從程序員到高級工程師&#xff0c;然后開始負責項目…

WPF-20 ICommand命令綁定

這節我們介紹一下WPF中比較重要的接口ICommand&#xff0c;也是WPF中一個新的特性&#xff0c;做過WinForm朋友都知道&#xff0c;WinForm開發是基于事件驅動開發模式&#xff0c;比如一個Button有Click事件&#xff0c;當我點擊該按鈕時&#xff0c;在當前頁面會執行具體的業務…