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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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