From 16e6e1896b40cbe498fc10ebca213d6b5e06cc41 Mon Sep 17 00:00:00 2001 From: Daron Andrew Edie Date: Mon, 12 Dec 2011 15:15:24 +1000 Subject: updated system test for changes to API Change-Id: I8a41a0c2a31ccbd256b4d7a84ab0fe27d0ca618b Sanity-Review: Qt Sanity Bot Reviewed-by: Daniel Kovacic --- .../sys_declarative-sensor-elements.qtt | 44 +++++++++++++++++++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt index 1594fbf0..eb427ec5 100644 --- a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt +++ b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt @@ -114,15 +114,47 @@ cleanup: function() { | *Step* | *Verification* | | Launch " + testBinary + " | App launches normally | | Press the *Start* button for the accelerometer | The button now displays *running* and numeric values are displayed for X and Y Rotation | - | Select the *Facing Up* radio button | Verify that when the device is orientated with the screen facing up the x, y rotation shows approximatly 0,0 | - | Select the *Left Up* radio button | Verify that when the device is orientated with the left up up (starting from portrait) the x, y rotation shows approximatly 0,0 | - | Select the *Top Down* radio button | Verify that when the device is orientated with the top edge down (starting from portrait) the x, y rotation shows approximatly 0,0 | - | Select the *Face Down* radio button | Verify that when the device is orientated with the face down the x, y rotation shows approximatly 0,0 | - | Select the *Right Up* radio button | Verify that when the device is orientated with the right edge up (starting from portrait) the x, y rotation shows approximatly 0,0 | - | Select the *Top Up* radio button | Verify that when the device is orientated with the top edge up (starting from portrait) the x, y rotation shows approximatly 0,0 | + | Hold the device with the screen facing up in portrait | Verfy the x, y rotation values are approximatly 0,0 | + | Rotate the device toward you along the x axis until the device is at 90 degrees| Verify that the x rotation values show approximatly 90 degrees and the y values remain at approximatly 0 | + | While holding the device in this position select the calibrate button | Verify that the x, y values now show approximatly 0,0 | + | Return the device to the face up position | Verify that the accelerometer x, y rotation shows approximatly -90,0 | + | While holding the device in this position select the calibrate button | Verify that the x, y values now show approximatly 0,0 | + | Rotate the device toward the right along the y axis until the device is at 90 degrees| Verify that the x rotation values remain at approximatly 0 degrees and the y value show approximatly 90 degrees | + | While holding the device in this position select the calibrate button | Verify that the x, y values now show approximatly 0,0 | + | Return the device to the face up position | Verify that the accelerometer x, y rotation shows approximatly 0,-90 | + | Select the calibrate button | Verify that the x, y values now show approximatly 0,0 | ")); }, + // As a QML Application developer I want to calibrate the current device position + Calibrate_Current_Device_Position: function() + { + // Test meta data + testApplication = "qmlsensors2"; + testBinary = "QtSensor..."; + testGoal = "Verify that the application can be set to read an X and Y value of zero for the current phone position"; + 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 | + | Press the *Start* button for the accelerometer | The button now displays *running* and numeric values are displayed for X and Y Rotation | + | Select the *Facing Up* radio button | Verify that when the device is orientated with the screen facing up the x, y rotation shows approximatly 0,0 | + | Select the *Left Up* radio button | Verify that when the device is orientated with the left up up (starting from portrait) the x, y rotation shows approximatly 0,0 | + | Select the *Top Down* radio button | Verify that when the device is orientated with the top edge down (starting from portrait) the x, y rotation shows approximatly 0,0 | + | Select the *Face Down* radio button | Verify that when the device is orientated with the face down the x, y rotation shows approximatly 0,0 | + | Select the *Right Up* radio button | Verify that when the device is orientated with the right edge up (starting from portrait) the x, y rotation shows approximatly 0,0 | + | Select the *Top Up* radio button | Verify that when the device is orientated with the top edge up (starting from portrait) the x, y rotation shows approximatly 0,0 | + ")); + }, + // As a QML Application developer I would like to have one QML element per sensor type Display_All_Sensor_Types: function() { -- cgit v1.2.3