VTS Trade Federation, vts-tradefed for short, is the next generation test harness for VTS.
vts-tradefed is built on top of the Android Trade Federation test harness.
It works in a similar manner to the prior VTS harness, but with much simplicity.
Example: PATH=$PATH:/home/myuser/android-sdk-linux_x86/platform-tools
Connect the device to the host machine.
Ensure device is visible via 'adb devices'
To run a test plan on a single device:
make vts
, the script can be found at
out/host/linux-x86/vts/android-vts/tools/vts-tradefedSome other useful commands are
To run a test module: 'run vts --module <module_name>'
To run a specific test: 'run vts --module <module_name> --test <test_name>'
To shard a plan test run on multiple devices 'run vts --shard-count note: all connected devices must be running the same build
For more options: 'run vts --help'
See http://source.android.com for instructions on obtaining the Android platform source code and setting up a build environment.
The source for the VTS extensions for tradefed can be found at /test/vts/tools/vts-tradefed
The source for the tradefed framework can be found on the 'tradefed' branch.
Perform these steps to build and run vts-tradefed from the development environment: cd make vts vts-tradefed
More documentation and details on using and extending trade federation will be forthcoming in the near future.