From e72a930f0ad367a0fbeba5b9960094de5077aab5 Mon Sep 17 00:00:00 2001 From: Daron Andrew Edie Date: Fri, 6 Jan 2012 11:40:50 +1000 Subject: Added tests to confirm operation of sensors singly and in combination Change-Id: Ie5db85d3a4ca7d94a683ef3fe0212665e1a332fa Sanity-Review: Qt Sanity Bot Reviewed-by: Natalia Shubina --- .../sys_SensorElements/sys_declarative-sensor-elements.qtt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (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 2d6791fa..85badb1e 100644 --- a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt +++ b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt @@ -38,7 +38,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -include("product.qtx") +include("Device.qtx") include("extrafunctions.qtt") //TESTED_COMPONENT=src/sensors @@ -156,6 +156,7 @@ cleanup: function() { }, // As a QML Application developer I would like to have one QML element per sensor type +// MTMW-427 QML System Test - Using only Proximity sensor does not start the sensor hardware Display_All_Sensor_Types: function() { // Test meta data @@ -174,9 +175,14 @@ cleanup: function() { | *Step* | *Verification* | | Launch " + testBinary + " | App launches normally | - | Each sensor button will display *start*, press each of the sensor buttons | Verify that each sensor button displays *running* and operates as expected | - | Press each of the sensor buttons | Verify that each button no longer says *running* and now displays *stopped* | - | Press each sensor button again | Verify that each button now says *running* | + | Ensure that none of the sensors are in a *running* state | Press any buttons that display *Running* to place that sensor in a *Stopped* state | + | Each sensor button will display *start* or *Stopped*, press the accelerometer *Start* button | Verify that the accelerometer button displays *running* and operates as expected | + | Press the accelerometer button again to stop the accelerometer | Verify the button reads *Stopped* and the X, Y Rotation values do not repond to movement | + | Press the Ambient Light *Start* button | Verify that the Ambient Light sensor button displays *running* and operates as expected | + | Press the Ambient Light button again to stop the Ambient Light sensor | Verify the button reads *Stopped* and the Ambient Light sensor does not respond when a shadow falls on it | + | Press the Proximity sensor *Start* button | Verify that the Proximity sensor button displays *running* and operates as expected | + | Press the Proximity sensor button again to stop the Proximity sensor | Verify the button reads *Stopped* and the Proximity sensor does not respond when when your palm is brought within 1 cm of the Proximity sensor | + | Press all sensor buttons again to start all sensors | Verify all buttons read *Running* and all sensors operate as expected | ")); }, -- cgit v1.2.3