Skip to content
Snippets Groups Projects
Commit 2ceab1b3 authored by Baghmar Tarun's avatar Baghmar Tarun Committed by Sjoerd Simons
Browse files

T5734:Changes for ofono medium priority test case

1. ofono-sms-recieve
2. ofono-sms-send

Signed-off-by: default avatarBaghmar Tarun <tarun.baghmar@in.bosch.com>
parent 510d9d5f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ metadata:
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: functional
exec-type: manual
priority: medium
......@@ -17,18 +18,30 @@ metadata:
- "A phone with a SIM card."
- "A modem plugged into the Apertis system with a SIM card."
macro_install_packages_preconditions: ofono-tests
expected:
- "A similar output should be displayed when the SMS is received:"
- |
>{MessageManager} [/phonesim] IncomingMessage any message here
({ LocalSentTime = 2012-08-26T01:24:48-0300, SentTime = 2012-08-26T14:24:48+1000, Sender = Joao })
>signal time=1582104254.143670 sender=:1.4 -> destination=(null destination) serial=96 path=/huawei_0; interface=org.ofono.MessageManager; member=IncomingMessage
string "Continue sending"
array [
dict entry(
string "LocalSentTime"
variant string "2020-02-19T09:24:12+0000"
)
dict entry(
string "SentTime"
variant string "2020-02-19T14:54:12+0530"
)
dict entry(
string "Sender"
variant string "+917618766390"
)
]>
run:
steps:
- "Ensure the modem is online:"
- $ /usr/share/ofono/tests/online-modem
- "Launch oFono monitor:"
- $ /usr/share/ofono/tests/monitor-ofono
- $ connmanctl enable cellular
- "Launch dbus-monitor"
- $ dbus-monitor --system "type='signal',sender='org.ofono',interface='org.ofono.MessageManager'"
- "Send a SMS from the mobile phone to the system."
......@@ -7,6 +7,7 @@ metadata:
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: functional
exec-type: manual
priority: medium
......@@ -18,7 +19,10 @@ metadata:
- "A modem plugged into the Apertis system with a SIM card (SIM card should
not have a PIN configured)."
macro_install_packages_preconditions: ofono-tests
macro_ostree_preconditions: ofono
pre-conditions:
- Connect modem with SIM card into the Apertis System.
- Do not connect more then one modem.
expected:
- "If no error appears the SMS was successfully sent."
......@@ -26,11 +30,5 @@ metadata:
run:
steps:
- "Let the modem connect to the network"
- $ /usr/share/ofono/tests/online-modem
- "Send a SMS to some phone:"
- $ /usr/share/ofono/tests/send-sms [modem] <phone number> <message> 1
- "The modem parameter is the modem which we want to use to send the SMS
through, much probably we will have only one modem in the system so in
this we don't need to specify it, it is a optional parameter. If we need
to specify /usr/share/ofono/tests/list-modems to see the available modems."
- $ ./ofono-sms-send.sh phone-number "test message"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment