diff --git a/test-cases/ofono-sms-receive.yaml b/test-cases/ofono-sms-receive.yaml index 8a6f82a475880b53fc56a484bed7a51fec562175..d66ec2f641a0b5942e20e15bfa31cc42e18ff79e 100644 --- a/test-cases/ofono-sms-receive.yaml +++ b/test-cases/ofono-sms-receive.yaml @@ -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." diff --git a/test-cases/ofono-sms-send.yaml b/test-cases/ofono-sms-send.yaml index 50bd3803aefa375dba9e2ac1d1257250a5d73f4f..d4f1f218513b8e35ab47286722a363b49f3fb194 100644 --- a/test-cases/ofono-sms-send.yaml +++ b/test-cases/ofono-sms-send.yaml @@ -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"