Giter Site home page Giter Site logo

python_qa_api's Introduction

Тестирование API

Код и примеры для занятия по тестированию API

  1. Argraprse, аргументы в pytest
  2. requests
  3. Параметризация фикстур
  4. Тестирование API

Что такое API?

Application programming interface (API) is a set of subroutine definitions, communication protocols, and tools for building software. In general terms, it is a set of clearly defined methods of communication among various components. A good API makes it easier to develop a computer program by providing all the building blocks, which are then put together by the programmer.

Что такое REST?

Representational State Transfer (REST) is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style, called RESTful Web services (RWS), provide interoperability between computer systems on the Internet. RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined set of stateless operations. Other kinds of Web services, such as SOAP Web services, expose their own arbitrary sets of operations.

SOAP (Simple Object Access Protocol)

Стандарт: https://www.w3.org/TR/soap12/

Примеры API:

https://api.spacexdata.com/ - SpaceX

https://jsonplaceholder.typicode.com/ - Тестовое API

https://rapidapi.com/ - Библиотека разных API

https://www.cbr-xml-daily.ru/ - API Центробанка

Реализации:

  • Всегда 200, коды ошибок и ответов внутри ответа (Поддержка GET, POST)

  • Могут быть различные коды ответов (PUT, PATCH, DELETE ... )

Дополнительно

Хорошее описание http://qaru.site/questions/112998/what-is-the-difference-between-put-post-and-patch

python_qa_api's People

Contributors

dependabot[bot] avatar konflic avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.