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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f43e65299f5c4d0cd15fd2b9febf8e6255b86c0e2c4a5576c8532f6a3c6cc14 |
|
MD5 | cb3252f332b101892fbafdc783595ac1 |
|
BLAKE2b-256 | 68ce79a50bc1ef76b5b324a3d92389bf723a6880474cda1d5c4d783abdfa636b |