Skip to main content

Using this module you can create a API collection and it also has lots of utilities to validate the response, status code, store a value in collection variable etc.

Project description

CAKE API:
Using this module you can create a API collection and it also has lots of utilities to validate the response, status code, store a value in collection variable etc.

INSTALLATION:

pip install CakeApi

USAGE:
from CakeApi.CakeApiUtilities import CreateApiCollection

demoApiCollection = CreateApiCollection(baseUrl="https://reqres.in/")
demoApiCollection.hitTheGetRequest(url="/api/users?page=2").validateStatusCodeIs200()\
    .validateTheResponseValue(expectedValue="Michael", responseDictPath="['data'][0]['first_name']")\
    .hitThePostRequest(url="/api/users", data=dict(name="morpheus", job="leader")).validateStatusCodeIs201()\
    .validateTheResponseValue(expectedValue="leader", responseDictPath="['job']")

Note: Refer the function comments, to get a better idea on the usage.

CONTACT:
Contact me for collabration.

Email - krishnaForTestAutomation@gmail.com

LinkedIn - https://www.linkedin.com/in/krishna-kumar-859a73134

LICENSE:
© 2020 Krishna Kumar Viswanathan
This repository is licensed under the MIT license See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CakeApi-1.0.5.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CakeApi-1.0.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file CakeApi-1.0.5.tar.gz.

File metadata

  • Download URL: CakeApi-1.0.5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for CakeApi-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f6abae2a6e4596a770438b249e3241f68439ffc31767df7d2d4a2f42cc623967
MD5 23682e4d1b486546f72578674017dc28
BLAKE2b-256 77293ee38ca3a0b6db59cd58780aeba010a93a429ae9679b1e3f5d30876fe019

See more details on using hashes here.

File details

Details for the file CakeApi-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: CakeApi-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for CakeApi-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3a0b73347ae2a0fa4bd32968a55ce292968ecfa134701a59883c752e06ac9cb7
MD5 997d67229ba928ab1bf47cabcfb4e994
BLAKE2b-256 04f21a177c444eef04898fa02316894ff55b04f57134c1167ffc1bfc08453539

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page