From bcc0c50f2a6b234d760b64ab8841e8f771f97501 Mon Sep 17 00:00:00 2001 From: "Li, Xiaoming" Date: Wed, 5 Aug 2020 14:49:10 +0800 Subject: 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 --- test/afb-test/tests/bluetooth.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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"}) -- cgit 1.2.3-korg