Testwizard for Mobile testobjects
Project description
Testwizard - Mobile
Python language support for testing Mobile devices using testwizard
Usage
- Import the testwizard.test and the testwizard.mobile packages.
- Get a session and use it to create a mobile testobject.
- Use this object to execute commands.
- You can use the session to add results that will be reported to the robot when the script finishes or set results that will be posted immediately.
Sample
Python (mobile.py)
from testwizard.test import TestWizard
from testwizard.test import ResultCodes
from testwizard.mobile import Mobile
with TestWizard() as TW:
session = TW.session
print(f"param1 = {session.parameters['param1']}")
print(f"param2 = {session.parameters['param2']}")
mobile = Mobile(session, "Mobile")
print("InitDriver")
result = mobile.initDriver()
print(result.message)
if not result.success:
session.addFail(result.message)
exit()
# Add your commands here
print("QuitDriver")
result = mobile.quitDriver()
print(result.message)
if not result.success:
session.addFail(result.message)
if not (session.hasFails or session.hasErrors):
session.setResult(ResultCodes.PASS, "Test was successful")
sidecar file (mobile.json)
{
"tester": "Some tester",
"parameters": [
{ "name": "param1", "value": "value1"},
{ "name": "param2", "value": "value2"}
],
"resources": [{ "category": "MOBILE", "name": "Mobile", "id": "Mobile 1"}
],
"outputFolder": "c:\\temp"
}
License
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 testwizard.mobile-3.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e2be795cd4db9baba946af51fdfaa54563b2ba1953357036811b0582163afb |
|
MD5 | 723911bd47b64cee4dd62bf29355836a |
|
BLAKE2b-256 | 53d37c99aa25b6bdcb9a4dc4d6111207fdb6e8a8cc8fcd95cadbfc792bbf03ce |