anadroid.testing_framework.work package
Submodules
anadroid.testing_framework.work.AbstractWorkLoad module
anadroid.testing_framework.work.AppCrawlerWorkUnit module
- class anadroid.testing_framework.work.AppCrawlerWorkUnit.AppCrawlerWorkUnit(bin_cmd, stop_call=None)[source]
Bases:
WorkUnit
extends WorkUnit functionality to adapt it to App Crawler framework executions.
anadroid.testing_framework.work.DroidBotWorkUnit module
- class anadroid.testing_framework.work.DroidBotWorkUnit.DroidBotWorkUnit(bin_cmd)[source]
Bases:
WorkUnit
extends WorkUnit functionality to adapt it to droidbot framework executions.
anadroid.testing_framework.work.MonkeyRunnerWorkUnit module
anadroid.testing_framework.work.MonkeyWorkUnit module
- class anadroid.testing_framework.work.MonkeyWorkUnit.MonkeyWorkUnit(bin_cmd)[source]
Bases:
WorkUnit
extends WorkUnit functionality to adapt it to UI Exerciser Monkey executions.
anadroid.testing_framework.work.RERANWorkUnit module
- class anadroid.testing_framework.work.RERANWorkUnit.RERANWorkUnit(bin_cmd)[source]
Bases:
WorkUnit
extends WorkUnit functionality to adapt it to RERAN framework executions.
anadroid.testing_framework.work.WorkLoad module
anadroid.testing_framework.work.WorkUnit module
- class anadroid.testing_framework.work.WorkUnit.WorkUnit(bin_cmd)[source]
Bases:
object
Provides a reference implementation to store information about a work unit. A work unit is a command or task to be performed in a context of a test or test suite to be performed by a testing framework command. .. attribute:: command
command to be executed.
- type:
str
- cmd_args
set os keyed args to appended to command.
- Type:
dict
- has_timeout
True if the command has time limit to execute, False otherwise.
- Type:
bool
- add_timeout(timeout_val)[source]
adds a timeout to the work unit. :param timeout_val: timeout value in seconds. :type timeout_val: int
- build_command(pkg_name, *args, **kwargs)[source]
build command for a given app identified by package name. :param pkg_name: package name. :type pkg_name: str