From e7327856733bd4e88c1f4895dce667c1044a2e60 Mon Sep 17 00:00:00 2001 From: Daron Andrew Edie Date: Thu, 19 Jan 2012 14:48:13 +1000 Subject: comment out auto and added default sensor rate tests Change-Id: Id2b2713902ece7264e9b17de341d8e4da85d9eb5 Sanity-Review: Qt Sanity Bot Reviewed-by: Daniel Kovacic --- .../sys_declarative-sensor-elements.qtt | 106 ++++++++++++++++++--- 1 file changed, 94 insertions(+), 12 deletions(-) diff --git a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt index e0939d1d..04b8c5f3 100644 --- a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt +++ b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** @@ -38,14 +38,14 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -include("Device.qtx") -include("extrafunctions.qtt") +//include("Device.qtx") +//include("extrafunctions.qtt") //TESTED_COMPONENT=src/sensors testcase = { - +/* init: function() { qtuitest.checkActiveWindow = false; qtuitest.autoTerminate = false; @@ -62,6 +62,7 @@ cleanup: function() { Gesture.swipe(Screen.leftCenter(), Screen.rightCenter()); //close applicatin wait(500); }, +*/ // As a QML Application developer I need information about the position of the device (rotation angles from X and Y Axis) Device_Rotational_Position: function() @@ -74,7 +75,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -105,7 +106,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -137,7 +138,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -167,7 +168,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -197,7 +198,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -224,7 +225,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -252,7 +253,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -277,7 +278,7 @@ cleanup: function() { testGroups = "BAT"; // Test steps - mouseClick(findByProperty("label", testBinary)); wait(500); +// mouseClick(findByProperty("label", testBinary)); wait(500); prompt(twiki("---+++ " + testApplication + "

*Goal:* " + testGoal + "
*Pre-Requisites:* " + testPreconditions + "
@@ -291,4 +292,85 @@ cleanup: function() { | 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 | ")); }, + +// MTMW-423 QML System Test - Ensure sensor defaults to 10hz - accelerometer + Accelerometer_Default: function() + { + // Test meta data + testApplication = "sensortest"; + testBinary = "sensortest"; + testGoal = "Verify that the accelerometer maximum sample rate defaults to 10 hz"; + 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* | + | Connect to the console on the device via ssh and launch *" + testBinary + " accel* | App launches normally | + | A stream of data is displayed, move the device in various directions and observe the X, Y and Z data | Verify that the data varies indicating the accelerometer is operating | + | While continuing to move the device observe the sample rate data (last value on each line) | Verify that the default sample rate does not go higher than 10 Hz | + | Stop the " + testBinary + " application using ctrl c and restart using the following command *" + testBinary + " accel -r 100* | | + | Continue moving the device and observe the sample rate data | Verify the sample rate now doesn't go above 100 Hz | + | Stop the " + testBinary + " application and restart using the following command *" + testBinary + " accel* | | + | Continue moving the device and observe the sample rate data | Verify that the sample rate now doesn't go above 10 Hz | + ")); + }, + + // MTMW-438 QML System Test - Ensure sensor defaults to 10hz - IR proximity + IR_Proximity_Default: function() + { + // Test meta data + testApplication = "sensortest"; + testBinary = "sensortest"; + testGoal = "Verify that the IR proximity sensor maximum sample rate defaults to 10 hz"; + 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* | + | Connect to the console on the device via ssh and launch *" + testBinary + " irprox* | App launches normally | + | A stream of data is displayed, move your finger in front of the proximity sensor and observe the IR reflectance value | Verify that the data varies indicating the IR proximity sensor is operating | + | While continuing to move your finger in front of the proximity sensor observe the sample rate data (last value on each line) | Verify that the default sample rate does not go higher than 10 Hz | + | Stop the " + testBinary + " application using ctrl c and restart using the following command *" + testBinary + " irprox -r 100* | | + | Continue moving your finger in front of the proximity sensor and observe the sample rate data | Verify the sample rate now doesn't go above 100 Hz and does occasionly go above 10 Hz | + | Stop the " + testBinary + " application and restart using the following command *" + testBinary + " irprox* | | + | Continue moving your finger in front of the proximity sensor and observe the sample rate data | Verify that the sample rate now doesn't go above 10 Hz | + ")); + }, + + // MTMW-439 QML System Test - Ensure sensor defaults to 10hz - light sensor + Light_Sensor_Default: function() + { + // Test meta data + testApplication = "sensortest"; + testBinary = "sensortest"; + testGoal = "Verify that the light sensor maximum sample rate defaults to 10 hz"; + 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* | + | Connect to the console on the device via ssh and launch *" + testBinary + " light* | App launches normally | + | A stream of data is displayed, vary the light falling on the device and observe the lux value of the data | Verify that the data varies indicating the light sensor is operating | + | While continuing to vary the light falling on the device observe the sample rate data (last value on each line) | Verify that the default sample rate does not go higher than 10 Hz | + | Stop the " + testBinary + " application using ctrl c and restart using the following command *" + testBinary + " light -r 5* | | + | Continue to vary the light falling on the device and observe the sample rate data | Verify the sample rate now doesn't go above 5 Hz | + | Stop the " + testBinary + " application and restart using the following command *" + testBinary + " light* | | + | Continue to vary the light falling on the device and observe the sample rate data | Verify that the sample rate now doesn't go above 10 Hz | + ")); + }, } -- cgit v1.2.3