Test Command Scheduler
Stay organized with collections
Save and categorize content based on your preferences.
In Tradefed, every single test request goes through the
Command Scheduler
to be run. So the Command Scheduler is a key component of the harness needed to
run tests.
Lifecycle
When a test request is presented to Tradefed (for example, input from the
console), it will go through the following events before being run:
- Test request is parsed - A test request is usually composed of an XML
Tradefed configuration reference followed by options.
For example:
> run host --class com.android.tradefed.build.BuildInfoTest
- Device Manager is requested for device(s) matching the test request -
Device Manager allocates a device
that matches the test requests. For example, if a Pixel device is requested
then Device Manager will look for an available Pixel device.
- Test request + device(s) starts as an invocation - Testing is starting.
- Device release - Once the invocation is finished, the device allocated will
be released and can be allocated for other tests.
Tradefed invocation
An invocation in Tradefed refers to when a test command is currently executing.
Devices included in the invocation are marked as allocated
and cannot be used
by other tests to run.
TF will execute the following steps in this order:
- Build and test artifacts download
- Target preparation
- Test execution
- Target clean up
- Result reporting
Each step is described in more detail within the
Architecture section.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-28 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-28 UTC."]]