From ddc2311a80440cfe2a04788a0dfe5c958d8fced1 Mon Sep 17 00:00:00 2001 From: Daron Andrew Edie Date: Thu, 22 Dec 2011 10:00:28 +1000 Subject: added test MTMW-426 Handle service errors gracefully Change-Id: I2a11edc78dc14802eb06a00b49da7cc96966af75 Sanity-Review: Qt Sanity Bot Reviewed-by: Daniel Kovacic --- .../sys_declarative-sensor-elements.qtt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/systemtests') diff --git a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt index eb427ec5..2d6791fa 100644 --- a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt +++ b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt @@ -259,4 +259,30 @@ cleanup: function() { | Move your hand away from the proximity sensor | Verify that the Proximity now reads *false* | ")); }, + +// MTMW-426 Handle service errors gracefully + Service_Errors: function() + { + // Test meta data + testApplication = "Grue Sensor"; + testBinary = "Grue Sensor"; + testGoal = "Verify that service errors are handled so as to prevent baldr crashes if the sensor daemon stops unexpectedly"; + testPreconditions = "Nil."; + testGroups = "BAT"; + + // Test steps + mouseClick(findByProperty("label", testBinary)); wait(500); + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Bring your hand to within 1 cm of the proximity sensor | Verify that the Proximity sensor is operating | + | Log into the device using a console and enter the following commands: ps -A | grep sensorq | Verify that the process ID number for sensorq is displayed | + | Using the process ID from the previous step stop sensorq by typing kill processID at the console | | + | View the baldr log | Verify that sensorq is killed and restarted by baldr | + | Repeat the previous steps to find the process ID and kill sensorq a second time | View the baldr logs again to verify that sensorq has started again | + ")); + }, } -- cgit v1.2.3