Testwizard for Mobile testobjects
Project description
Testwizard - Mobile
Python language support for testing Mobile devices using testwizard
Usage
- import the testwizard.core and the testwizard.mobile packages
- get a sesion 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)
import sys
import time
from testwizard.core import TestWizard
from testwizard.core import ResultCodes
from testwizard.mobile import Mobile
with TestWizard() as TW:
session = TW.session
print(session.args['param1'])
print(session.args['param2'])
mobile = Mobile(session, "Mobile")
print("InitDriver")
result = mobile.initDriver()
print(result.message)
if (not result.success):
session.addFail(result.message)
# 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.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b4eb1bee5c794a93ef79963c06d68193d1cd9040f576243c084c76ac7f4e83 |
|
MD5 | 19bae2431f265bf4359f808516b99a0d |
|
BLAKE2b-256 | 42bb1518e5a1c62c50edd2c182b292a0a874649ae5d02bbfb1f2219617c3f5d8 |