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.9
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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee1abde96752d194c4f63aed61933799aa44f4a0b8b7d000bd608f8d7b3e6f0 |
|
MD5 | 796adfd0c5a8e49eae4bb3215782db9b |
|
BLAKE2b-256 | 12bf41c2efb9ebb221133d654421b5ec44fb5912bc2a9356c35d1f0510c5de53 |
Close
Hashes for automation_test_with_submodule_python_sdk-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dfb5e81457504df6470e3d4e2056cccc9b499eaf72d81260a7a2fbdbd13cf4 |
|
MD5 | 7ad69702fc6df42674b84b94f5f6aa07 |
|
BLAKE2b-256 | 7fb8a4e3d2c2d98529ce82eedfe087a56c927fa8322872e9ed4227ba114e6e9d |