B2G/QA/Bluetooth PTS

From MozillaWiki
< B2G‎ | QA
Revision as of 03:01, 7 May 2015 by Teri (talk | contribs)
Jump to navigation Jump to search

Run tests at

You will need

  • A SIM card - ability to make conference call for some cases.
  • A bluetooth headset

Driver installation for PTS dongle

  • Disable bluetooth on your laptop to avoid confusion.
  • How to stop Windows 7 automatically installing drivers | MS KB2500967
  • Specify driver for the unknown device in C:\Program Files(x86)\Bluetooth SIG\Bluetooth PTS\PTS Driver, DO NOT let Windows install driver by itself.
  • If CSR BlueCoreBluetooth shown, you are good to go.

CSRBlueCoreBluetoothInDeviceManager.png

Setup before testing

  • Create a new Workspace
  • Add mac address of testing device(IUT) to workspace, you can turn on bluetooth and let PTS find it.

NewWorkspaceDeviceAddress.png

  • Select the profiles you need to test to the right column, then save the workspace and quit if you have specific .PICSX to use for testing.

NewWorkspaceSelectTestSuite.png

  • (optional) Put specific <profile>.PICSX files to correspong C:\Program Files(x86)\Bluetooth SIG\Bluetooth PTS\My Workspace\<workspace name>\<profile>\, then launch the PTS and open your workspace.
  • Set the profile active and modify PIXIT as needed, for HFP, we need 3 phones for testing, PIXIT needs to have the other 2 extra phones' number in it. Your testing device is IUT(Implementation Under Test).

PIXIT.png


  • In PTS 6.0.1
  • If you copy workspace file to replace the existing one, you need to update bluetooth mac address to your IUT again for each profile.

Bluetooth-6.0.1-IXIT.png

Testing

  • You need to follow direction shown on the pop up exactly in order to pass a test.
  • Choose a small set to run it.

Run.png

Reference

Terminology

  • TG: Target
  • CT: Controller
  • AG: Audio Gateway
  • SCO: Synchronous Connection Oriented Link (For audio transfer, disconnect/connect to bluetooth headset)
  • ACL: Asynchronous Connectionless Link (For data transfer)
  • IUT: Implementation Under Test
  • SLC: Service Link Connection


PTS Test Cases

N.B. You can search through bugzilla to see test case related bugs.

  • A2DP
    • TC_SRC_AS_BV_01_I - Remember to turn on the speaker of your Windows, music played through it.
  • AVRCP
    • TC_TG_MDI_BV_02_C - Try to pause the music, rewind it and ff it.
    • TC_TG_MDI_BV_04_C - ??
    • TC_TG_NFY_BV_02_C - ??
    • TC_TG_NFY_BV_04_C - Stop the music, not just pause it. (bug 924775, bug 953034)
    • TC_TG_RCR_BV_02_C - Playing music with >512kb metadata
    • TC_TG_RCR_BV_04_C - Playing music with >512kb metadata
  • HFP
    • TC_AG_TRS_BV_01_I - The test case requires to turn off cellular network but keeps BT on. Our current UI doesn't support such action so this case is unable to test.
    • TC_AG_PSI_BV_03_I - Unable to change battery level - skipping.
    • TC_AG_TWC_BV_04_I - SIM of IUT should have 3 way calling enabled.
    • TC_AG_TWC_BV_05_I - 主動連線的TWC
    • TC_AG_RSV_BV_01_I - Set volume greater then default, set it >= 12. Set to default, set it to 7, 8 or 9.
    • TC_AG_IIA_BV_01_I - Currently no way to de-register a phone from cell network.
    • TC_AG_IIA_BV_02_I - Unable to change battery level - skipping.
    • TC_AG_IIA_BV_05_I - Unable to change battery level - skipping.
    • TC_AG_IID_BV_03_I - Unable to change battery level - skipping.
    • TC_AG_IID_BV_04_I - Unable to change battery level - skipping.
    • TC_AG_IIC_BV_02_I - Unable to change battery level - skipping.
    • TC_AG_IIC_BV_03_I - Currently no way to de-register a phone from cell network.
  • HSP
    • HSP TC_AG_OAC_BV_01_I - In step 2, make an outgoing call and stay active. (See Bug 1161889)
  • OPP
    • OPP TC_CLIENT_OPH_BV_01_I - Turn on Bluetooth, send a photo from Gallery.
    • OPP TC_CLIENT_OPH_BV_02_I - Turn on Bluetooth, send a photo from Gallery.
    • OPP TC_CLIENT_OPH_BV_34_I - Turn on Bluetooth, send a photo from Gallery.

Reference