This direcotry contains example Mobly tests.
The tests here works with Mobly in AOSP as well as from GitHub (https://github.com/google/mobly).
The Mobly tests generally assume android devices are already running on the host. Prior to running the example tests please start two android virtual devices and verify they are connected to adb.
Ensure you are using Cuttlefish virtual device when launching with atest. AOSP Mobly support was developed with Cuttlefish only. Running with Goldfish emulator isn't fully supported and may encounter errors such as apk install failures.
Simply invoke atest on the test module defined in Android.bp:
atest ble-gatt-test
Use Mobly's local test runner script with the test module and Mobly YAML config file:
tools/test/mobly_extensions/scripts/local_mobly_runner.py -m ble-gatt-test -c tools/netsim/testing/mobly/sample_config.yml
Refer to the local_mobly_runner.py
script or Mobly documentation for additional info about the runner.
python3 ./tests/betosim/ble_gatt_test.py -c ./tests/betosim/sample_config.yml