diff options
author | Daron Andrew Edie <daron.edie@nokia.com> | 2011-12-22 10:00:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-22 01:31:22 +0100 |
commit | ddc2311a80440cfe2a04788a0dfe5c958d8fced1 (patch) | |
tree | bee39bca906ac78db49634e637b8f721c4a2dd0c /tests | |
parent | 52a414bd2291dbf9b99606019ab50a914280ecb0 (diff) | |
download | qtsensors-ddc2311a80440cfe2a04788a0dfe5c958d8fced1.tar.gz |
added test MTMW-426 Handle service errors gracefully
Change-Id: I2a11edc78dc14802eb06a00b49da7cc96966af75
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt index eb427ec..2d6791f 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 + "<br><br> + *Goal:* " + testGoal + "<br> + *Pre-Requisites:* " + testPreconditions + "<br> + *Tested Binary:* " + testBinary + "<br> + | *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: <literal>ps -A | grep sensorq</literal> | 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 | + ")); + }, } |