Skip to main content

Perform SOAP and REST test

Project description

Perform SOAP, REST and UI / Feature tests

Installation

You can download and install the latest version of this software from the Python package index (PyPI) as follows::

pip install --upgrade testly

Usage

python -m testly --help=

python -m testly --command <command> [Options]

or

python -m testly -c <command> [Options]

Params

Available commands         http, texecute

Test HTTP URL

 python -m testly -c http -h <your_host>

Params

-h, --host           The Http host that you desire to test.

Optional Params

--proxy                        Sets Http proxy

--proxysec                   Sets Https proxy


Test REST Endpoint

python -m testly -c texecute -w <path to directory> -f <name of file>

or

python -m testly -c texecute

Params

-w                      The directory containing all yaml files.

-f                        The yaml file containing all the test cases.


YAML File Example Layout

 test1:
    testType: Rest
    requestMethod: get
    url: https://api.github.com/users/defunkt
    responseCode: 200
    bodyContains: 
      login: defunkt
      name: Chris Wanstrath*


  test2:
    testType: Rest
    requestMethod: post
    url: https://droopal.free.beeceptor.com/droopal
    responseCode: 201
    payload:
      status: "Awesome!"
    bodyContains:
      status: "Awesome!"

  test3:
    testType: Rest
    requestMethod: put
    url: https://droopal.free.beeceptor.com/droopal
    responseCode: 200
    payload:
      status: "Edited!"
    bodyContains:
      status: "Edited!"
      when: "Today!"

  test4:
    testType: Rest
    requestMethod: delete
    url: https://droopal.free.beeceptor.com/droopal
    responseCode: 200


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

testly-1.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

testly-1.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file testly-1.0.3.tar.gz.

File metadata

  • Download URL: testly-1.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for testly-1.0.3.tar.gz
Algorithm Hash digest
SHA256 23d01b55100e6e796d9a3919ac4879585e05cbce941a8eabdbf13ef329a9e420
MD5 b0e60a3d6f434e686770c5d413b3ba81
BLAKE2b-256 c64530ab58b1a8880fffa0a320a23376ed48293d6ba345f856a4c868b947e97f

See more details on using hashes here.

File details

Details for the file testly-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: testly-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for testly-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a02ff3369175cba0696b340363e1bab406b86657523052055957716a06f26b69
MD5 c343cc66fcd0d4aa4f7738411df6b29d
BLAKE2b-256 87d5c6b7baa1754aed6028b6112844e2e17549ec70a388da4159cf3ef7f0050b

See more details on using hashes here.

Supported by

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