Index: tst_serviceshutdown/test.py =================================================================== diff -u -r788873f840aecda5508a2479839e1beb2e0cc75b -r3a14d012ad33c25e386fa1df6f08613764ac8ae9 --- tst_serviceshutdown/test.py (.../test.py) (revision 788873f840aecda5508a2479839e1beb2e0cc75b) +++ tst_serviceshutdown/test.py (.../test.py) (revision 3a14d012ad33c25e386fa1df6f08613764ac8ae9) @@ -3,7 +3,6 @@ import names import time import subprocess -import shlex ################################################################################ # This test need to be changed when the Service screen has been implemented # @@ -26,7 +25,7 @@ # Click on shutdown button mouseClick (waitForObjectExists(names.o_poweroffButton)) # Sending can message to show Power off dialog - subprocess.call(shlex.split('cansend can0 020#A5.01.00.01.00.6F.00.00')) + subprocess.call(['cansend', 'can0', '020#A5.01.00.01.00.6F.00.00']) # The PowerOff screen shall have a shutdown button test.compare(waitForObjectExists(names.o_poweroff_shutdown).visible, True) # Click on the PowerOff Dialog's shutdown button @@ -39,7 +38,7 @@ # Click on shutdown button mouseClick (waitForObjectExists(names.o_poweroffButton)) # Sending can message to show Power off dialog - subprocess.call(shlex.split('cansend can0 020#A5.01.00.01.00.6F.00.00')) + subprocess.call(['cansend', 'can0', '020#A5.01.00.01.00.6F.00.00']) # The PowerOff screen shall have a Cancel button test.compare(waitForObjectExists(names.o_poweroff_cancel).visible, True) # Click on the PowerOff Dialog's Cancel button @@ -49,18 +48,17 @@ #SRSUI 556 test.compare(waitForObjectExists(names.o_poweroffButton).visible, True) # Sending can message to show Power off dialog - subprocess.call(shlex.split('cansend can0 020#A5.01.00.01.00.6F.00.00')) + subprocess.call(['cansend', 'can0', '020#A5.01.00.01.00.6F.00.00']) # Test the Power Off dialog is visible upon HD Request test.compare(waitForObjectExists(names.o_powerOffDialog).visible, True) # wait for user reaction and if there is no reaction timeout time.sleep(1) # Sending can message to Hide Power off dialog - subprocess.call(shlex.split('cansend can0 020#A5.01.00.01.01.5E.00.00')) + subprocess.call(['cansend', 'can0', '020#A5.01.00.01.01.5E.00.00']) # Wait for the animation time.sleep(1) - # Test the Power Off dialog is hidden upon HD Request after timeout - #so the entry screen with power off button is visible again. + # Test the Power Off dialog is hidden upon HD Request after timeout, so the entry screen with power off button is visible again. test.compare(waitForObjectExists(names.o_poweroffButton).visible, True , "SRSUI 556") # Go back to Home Screen