From d98644e4551f909a3b16c935e64188459b948cc7 Mon Sep 17 00:00:00 2001 From: "Li, Xiaoming" Date: Tue, 21 Jul 2020 09:46:27 +0800 Subject: fix(bluetooth-map.lua): add message and list_messages test Complete the misssing verb test. About the msg string in message verb: In order to get a real msg, we need to add extra lua code to read the response of list_messages verb first. In this phase, I will use a random string for it, and later add condition code to optimise them. Bug-AGL: SPEC-3458 Change-Id: Ieb0e8622ecf1e5d8d0c0daa5d6ba522b7e1016ef Signed-off-by: Li, Xiaoming --- test/afb-test/tests/bluetooth-map.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/afb-test/tests/bluetooth-map.lua b/test/afb-test/tests/bluetooth-map.lua index 5ee4268..a5f04d1 100644 --- a/test/afb-test/tests/bluetooth-map.lua +++ b/test/afb-test/tests/bluetooth-map.lua @@ -20,3 +20,9 @@ _AFT.testVerbStatusSuccess('testcomposeSuccess','bluetooth-map','compose', {recipient="+639203600900", message="AGL bluetooth-map message sent successfully"}) _AFT.testVerbStatusSuccess('testsubscribeSuccess','bluetooth-map','subscribe', {value="notification"}) _AFT.testVerbStatusSuccess('testunsubscribeSuccess','bluetooth-map','unsubscribe', {value="notification"}) + +_AFT.testVerbStatusSuccess('testListMsgSuccess','bluetooth-map','list_messages', {folder="INBOX"}) + +-- "message" verb test depends on the "list_messages" verb result, it need to add context later +_AFT.testVerbStatusSkipped('testMsgSuccess','bluetooth-map','message', {handle="message288230376151711769"}) + -- cgit 1.2.3-korg