aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLi, Xiaoming <lixm.fnst@cn.fujitsu.com>2020-08-05 14:49:10 +0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-08-13 09:29:07 +0000
commitbcc0c50f2a6b234d760b64ab8841e8f771f97501 (patch)
tree2733366ec8939437edba00c0c2463680e2994dd7 /test
parentcb8db512e462af970735aa86781ca2cfa58d0760 (diff)
fix(bluetooth.lua): introduce some missing verb test
These verbs depends on the context and cannot execute at this moment, so this patch will only complete the missing ones on paper in this phase. The future work of adding extra condition code to optimise these verbs is on schedule. Bug-AGL: SPEC-3458 Change-Id: I6948b335bc1f2a486767fd0292f2c62068adfd56 Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'test')
-rw-r--r--test/afb-test/tests/bluetooth.lua20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/afb-test/tests/bluetooth.lua b/test/afb-test/tests/bluetooth.lua
index 6ba2b0f..5b6a4a6 100644
--- a/test/afb-test/tests/bluetooth.lua
+++ b/test/afb-test/tests/bluetooth.lua
@@ -44,5 +44,23 @@ _AFT.testVerbStatusSuccess('testBtAdpStateSuccess','Bluetooth-Manager','adapter_
-- Cancel pairing test - cancel an ongoing pairing
-- _AFT.testVerbStatusSuccess('testBtCancelPairSuccess', 'Bluetooth-Manager', 'cancel_pairing', {})
--- Connect to a paired device
+-- Confirm pairing test - confirm incoming/outgoing bluetooth pairing pincode
+-- _AFT.testVerbStatusSuccess('testBtConfirmPairSuccess', 'Bluetooth-Manager', 'confirm_pairing', {pincode="31415"})
+
+-- Remove device test - remove already paired device
+-- _AFT.testVerbStatusSuccess('testBtRemoveDeviceSuccess', 'Bluetooth-Manager', 'remove_device', {device="dev_01_23_45_67_89_0A"})
+
+-- Connect to a paired device test - connect to already paired device
-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'connect', {device="dev_01_23_45_67_89_0A"})
+
+-- avrcp_controls test -- requied connected to a smart phone
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Play"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Pause"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Stop"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Next"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Previous"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="FastForward"})
+-- _AFT.testVerbStatusSuccess('testBtConnectSuccess', 'Bluetooth-Manager', 'avrcp_controls', {action="Rewind"})
+
+-- Disconnect to a connected device test
+-- _AFT.testVerbStatusSuccess('testBtDisConnectSuccess', 'Bluetooth-Manager', 'disconnect', {device="dev_01_23_45_67_89_0A"})