Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slxiao/python-test-automation-atoz

Python test automation tricks from A to Z, with examples
https://github.com/slxiao/python-test-automation-atoz

a-z python-tricks test-automation

Last synced: about 1 month ago
JSON representation

Python test automation tricks from A to Z, with examples

Awesome Lists containing this project

README

        

# Introduction

Test automation is one major application of the Python programming langurage. Inspired by [An A-Z of useful Python tricks](https://www.freecodecamp.org/news/an-a-z-of-useful-python-tricks-b467524ee747/) (which however focuses on Python basics), I created this repo to present A-Z useful tricks for Python automated tesing domain.

The tricks is composed by awesome Python testing features, libraries and frameworks. Generally, they can be classified into two parts:

- **Python-specific testing tricks**. For example, python `unittest`, python `coverage`. There tools are used for testing Python programs. In other words, they are dedicetd for Python langurage whilebox testing.
- **General-purpose testing tricks**. Since Python is general-purpose langurage, many test automation tools are written in Python and generally, they can be used in any kind of (blackbox) testing. Such tools include `Robot Framework`, `Selenium`, `pytest` and etc.

[公众号文章](./wechat.md)

# A-Z of Python test automation tricks

- [assert](https://www.programiz.com/python-programming/assert-statement)

- [bahave](https://github.com/behave/behave)

- [coverage.py](https://github.com/nedbat/coveragepy)

- [doctest](https://docs.python.org/2/library/doctest.html)

- [elasticsearch](https://elasticsearch-py.readthedocs.io/)

- [ftplib](https://docs.python.org/3/library/ftplib.html)

- [gauge-python](https://github.com/getgauge/gauge-python)

- [html](https://docs.python.org/3/library/html.html)

- [ipython](https://github.com/ipython/ipython)

- [json](https://docs.python.org/3/library/json.html)

- [kubernetes](https://github.com/kubernetes-client/python)

- [locust](https://locust.io/)

- [mock](https://docs.python.org/3/library/unittest.mock.html)

- [nose2](https://github.com/nose-devs/nose2)

- [os](https://docs.python.org/3/library/os.html)

- [pytest](https://docs.pytest.org/en/latest/)

- [Queue](https://docs.python.org/3/library/queue.html)

- [Robot Framework](https://robotframework.org/)

- [Selenium](https://selenium-python.readthedocs.io/)

- [tox](https://tox.readthedocs.io/)

- [unittest](https://docs.python.org/3/library/unittest.html)

- [VCR.py](https://github.com/kevin1024/vcrpy)

- [webbrowser](https://docs.python.org/2/library/webbrowser.html)

- [xml](https://docs.python.org/2/library/xml.etree.elementtree.html)

- [yappi](https://github.com/sumerc/yappi)

- [zope.testbrowser](https://github.com/zopefoundation/zope.testbrowser)

# Examples

[Code examples](./examples) of the above tools.

# Lisense
MIT

# Author
This repo is created by [Shelwin Xiao](https://slxiao.github.io/). He is the author of 微信公众号《[测试不将就](https://slxiao.github.io/img/wechat-public.png)》.