Client for Test Automation (No submodules)
Project description
automation-test-with-submodule-python-sdk
SDKs (no submodules) to test automation workflows.
Table of Contents
Requirements
Python >=3.7
Installation
pip install automation-test-with-submodule-python-sdk==1.0.8
Getting Started
from pprint import pprint
from automation_test_with_submodule import AutomationTestWithSubmodule, ApiException
automationtestwithsubmodule = AutomationTestWithSubmodule()
try:
# Get a simple greeting!!!
hello_response = automationtestwithsubmodule.greetings.hello()
print(hello_response)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
Async
async
support is available by prepending a
to any method.
import asyncio
from pprint import pprint
from automation_test_with_submodule import AutomationTestWithSubmodule, ApiException
automationtestwithsubmodule = AutomationTestWithSubmodule()
async def main():
try:
# Get a simple greeting!!!
hello_response = await automationtestwithsubmodule.greetings.ahello()
print(hello_response)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
asyncio.run(main())
Raw HTTP Response
To access raw HTTP response values, use the .raw
namespace.
from pprint import pprint
from automation_test_with_submodule import AutomationTestWithSubmodule, ApiException
automationtestwithsubmodule = AutomationTestWithSubmodule()
try:
# Get a simple greeting!!!
hello_response = automationtestwithsubmodule.greetings.raw.hello()
pprint(hello_response.body)
pprint(hello_response.body["message"])
pprint(hello_response.headers)
pprint(hello_response.status)
pprint(hello_response.round_trip_time)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
Reference
automationtestwithsubmodule.greetings.hello
Get a simple greeting!!!
🛠️ Usage
hello_response = automationtestwithsubmodule.greetings.hello()
🔄 Return
🌐 Endpoint
/hello
get
Author
This Python package is automatically generated by Konfig
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for automation_test_with_submodule_python_sdk-1.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9861084b49cb1a99bbb99a85f02b6c61650e5d923b47240f3c3f337d638a017 |
|
MD5 | 6e21d67bd4640d17e5012dfb581059d6 |
|
BLAKE2b-256 | 96d25d1967d5c9205a93043d740e255ec437d84f961c591312d2752536e43857 |
Close
Hashes for automation_test_with_submodule_python_sdk-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e4c95c7561f7d00f37714bc88b77d98d564797242e85ea9dbf29ceee19a59db |
|
MD5 | 6da1c494582a8eb667749a9771f13ec8 |
|
BLAKE2b-256 | b5fa8ad44b40709a028af99177231b87bc82c85b176bdf6b3d99083eaeb0e10e |