QA/Test Cases/connman-pan-tethering

From Apertis
Jump to: navigation, search


Test Case connman-pan-tethering

  • Id: connman-pan-tethering
  • Type: Functional
  • Priority: Medium
  • Execution Type: Manual
  • LAVA Integration: Not Integrated
  • Target: Any
  • Image Type: Any


Test ConnMan support for PAN connectivity.


  • A Bluetooth adapter.
  • A device supporting PAN PANU.


Enable Package Repositories

  1. Ensure you have the development repository enabled in your sources.list and you have recently run apt-get update.

Install Package Dependencies

  1. Ensure Rootfs is remounted as read/write:
    sudo mount -o remount,rw /
  2. Install dependencies:
     sudo apt install chaiwala-tests  python3-dbus python3-gi 
  3. Restart the system to restore the filesystem state to read-only before running the test:
    sudo reboot

Warning: Connman changes are persistent (over reboot!). After finishing testing, it might be wise to perform the dhcp test to ensure that the network is in a sensible state.

For ALL tests the enable step will give an "In progress" error if the device is already enabled. This is to be expected.

  1. Make sure an Internet connection is active on the system.
  2. When testing on the SDK image, make sure blueman-applet is not running or kill it


  1. Enable bluetooth:
    connmanctl enable bluetooth 
  2. Start Bluetooth tethering:
    connmanctl tether bluetooth on
  3. Start simple agent:
    /usr/lib/chaiwala-tests/bluez/simple-agent -y 
  4. On the other device, scan for the Bluetooth device and pair with, then connect to the Bluetooth PAN. Most phones(?) don't actually support tethering to another device (as they, by definition, already have an internet connection) but connecting a computer and asking, say, NetworkManager to connect to the newly paired bluetooth device should work just fine (when testing in this case, ensure all other connections are disabled!)

Expected Results

  • If connections succeeds and you are able to navigate on the internet then it works.
Personal tools