Course Code: pytest
Duration: 21 hours
Prerequisites:
  • 對自動化測試有大致的瞭解

觀眾

  • 軟體測試人員
Overview:

Unit Testing 是一種測試方法,它通過修改原始程式碼的各個單元的屬性或觸發事件來確認結果是否符合預期。PyTest 是一個功能齊全、獨立於 API 的靈活且可擴展的測試框架,具有高級、完整的夾具模型。

在這個由講師指導的現場培訓中,參與者將學習如何使用 PyTest 編寫簡短、可維護的測試,這些測試優雅、富有表現力且可讀性強。

在本次培訓結束時,參與者將能夠:

  • 編寫可讀且可維護的測試,而無需樣板代碼。
  • 使用 fixture 模型編寫小型測試。
  • 將測試擴展到應用程式、軟體包和庫的複雜功能測試。
  • 瞭解並應用 PyTest 功能,例如鉤子、斷言重寫和外掛程式。
  • 通過並行和跨多個處理器運行測試來縮短測試時間。
  • 在持續集成環境中運行測試,以及其他實用程式,如 tox、mock、coverage、unittest、doctest 和 Selenium。
  • 使用 Python 測試非 Python 應用程式。

課程形式

  • 部分講座、部分討論、練習和大量動手實踐
Course Outline:

使用 PyTest 的 Unit Testing 簡介

Unit Testing 使用 UnitTest 與 Unit Testing 使用 PyTest

編寫可讀和可維護的測試

使用類比、偽造和存根

使用 Hooks、Assert 重寫和外掛程式

使用夾具和參數化測試簡化測試

獲得所需的測試覆蓋率

使用 Doctest 產生可測試的 Documentation

將 Python 單元測試集成到持續集成 (CI) 環境中

縮放 Python 單元測試

使用 Python 測試非 Python 應用程式

總結和結論

Sites Published:

United Arab Emirates - Unit Testing with Python

Qatar - Unit Testing with Python

Egypt - Unit Testing with Python

Saudi Arabia - Unit Testing with Python

South Africa - Unit Testing with Python

Brasil - Unit Testing with Python

Canada - Unit Testing with Python

中国 - Unit Testing with Python

香港 - Unit Testing with Python

澳門 - Unit Testing with Python

台灣 - Unit Testing with Python

USA - Unit Testing with Python

Österreich - Unit Testing with Python

Schweiz - Unit Testing with Python

Deutschland - Unit Testing with Python

Czech Republic - Unit Testing with Python

Denmark - Unit Testing with Python

Estonia - Unit Testing with Python

Finland - Unit Testing with Python

Greece - Unit Testing with Python

Magyarország - Unit Testing with Python

Ireland - Unit Testing with Python

Luxembourg - Unit Testing with Python

Latvia - Unit Testing with Python

España - Prueba unitaria con Python

Italia - Unit Testing with Python

Lithuania - Unit Testing with Python

Nederland - Unit Testing with Python

Norway - Unit Testing with Python

Portugal - Unit Testing with Python

România - Unit Testing with Python

Sverige - Unit Testing with Python

Türkiye - Unit Testing with Python

Malta - Unit Testing with Python

Belgique - Unit Testing with Python

France - Unit Testing with Python

日本 - Unit Testing with Python

Australia - Unit Testing with Python

Malaysia - Unit Testing with Python

New Zealand - Unit Testing with Python

Philippines - Unit Testing with Python

Singapore - Unit Testing with Python

Thailand - Unit Testing with Python

Vietnam - Unit Testing with Python

India - Unit Testing with Python

Argentina - Prueba unitaria con Python

Chile - Prueba unitaria con Python

Costa Rica - Prueba unitaria con Python

Ecuador - Prueba unitaria con Python

Guatemala - Prueba unitaria con Python

Colombia - Prueba unitaria con Python

México - Prueba unitaria con Python

Panama - Prueba unitaria con Python

Peru - Prueba unitaria con Python

Uruguay - Prueba unitaria con Python

Venezuela - Prueba unitaria con Python

Polska - Unit Testing with Python

United Kingdom - Unit Testing with Python

South Korea - Unit Testing with Python

Pakistan - Unit Testing with Python

Sri Lanka - Unit Testing with Python

Bulgaria - Unit Testing with Python

Bolivia - Prueba unitaria con Python

Indonesia - Unit Testing with Python

Kazakhstan - Unit Testing with Python

Moldova - Unit Testing with Python

Morocco - Unit Testing with Python

Tunisia - Unit Testing with Python

Kuwait - Unit Testing with Python

Oman - Unit Testing with Python

Slovakia - Unit Testing with Python

Kenya - Unit Testing with Python

Nigeria - Unit Testing with Python

Botswana - Unit Testing with Python

Slovenia - Unit Testing with Python

Croatia - Unit Testing with Python

Serbia - Unit Testing with Python

Bhutan - Unit Testing with Python

Nepal - Unit Testing with Python

Uzbekistan - Unit Testing with Python