+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | 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 | Verify that the x rotation values increase from zero as the device is rotated and the y values remain at approximatly 0 | + | Return the device to the screen facing up in portrait position | Verfy the x, y rotation values are approximatly 0,0 | + | Rotate the device away from you along the x axis | Verify that the x rotation values decrease from zero (become negitive) as the device is rotated and the y values remain at approximatly 0 | + | Return the device to the screen facing up in portrait position | Verfy the x, y rotation values are approximatly 0,0 | + | Rotate the device to the right along the y axis | Verify that the y rotation values increase from zero as the device is rotated and the x values remain at approximatly 0 | + | Return the device to the screen facing up in portrait position | Verfy the x, y rotation values are approximatly 0,0 | + | Rotate the device to the left along the y axis | Verify that the y rotation values decrease from zero (become negitive) as the device is rotated and the x values remain at approximatly 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 = ""; + 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 + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | 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() + { + // Test meta data + testApplication = "qmlsensors2"; + testBinary = ""; + testGoal = "Verify that all sensor types are shown by the application"; + testPreconditions = "Nil."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *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* | + ")); + }, + +// As a QML Application developer I would like to receive the rotation angles in Radian or Degree + Display_Angles_Radian_Degrees: function() + { + // Test meta data + testApplication = "qmlsensors2"; + testBinary = ""; + testGoal = "Verify that the read values for the X and Y axis can be displayed in radians and degrees"; + testPreconditions = "Nil."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Hold the device in portrait face up horizontal | Verify the x, y rotation values display 0,0 | + | While holding the device in this position press the button marked *degree* | Verify the button now reads *radian* and the x, y rotation values display approximatly 0,0 | + | Still holding the device in portrait tilt the device at right angles toward you (screen facing you) | Verify the x, y rotation values display approximatly 1.57,0| + | While holding the device in this position press the button marked *radian* | Verify the button now reads *radian* and the x, y rotation values display approximatly 90,0 | + ")); + }, + +// As a QML Application developer I would like to change my UI dependent of the ambient light + Ambient_Light_Detection: function() + { + // Test meta data + testApplication = "qmlsensors2"; + testBinary = ""; + testGoal = "Verify that the ambient light values can be read"; + testPreconditions = "Nil."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Confirm that the operational status of the Ambient Light display on the program is *Running* | | + | Place the device under normal room lighting | Verify that the Ambient Light is reported as *Bright* | + | Place the light sensor element under a partial shadow, i.e. by holding your hand above the device | Verify that the Ambient Light is reported as *Light*, note that the amount of shadow may need to be adjusted by moving your hand to achieve this | + | Make the shadow darker by moving your hand closer to the sensor | Verify that the Ambient Light now reads *Twilight* | + | Place your finger over the sensor element | Verify that the Ambient Light now reads as *Dark* | + ")); + }, + +// As a QML Application developer I would like to deactivate the touchscreen as soon the proximity of the user is close +// Note: no need for test app to lock screen, testing that the proximity is detected is sufficient + Proximity_Detection: function() + { + // Test meta data + testApplication = "qmlsensors2"; + testBinary = ""; + testGoal = "Verify that the touch screen deactivates when the proximity of the user is less than a predefined value"; + testPreconditions = "Nil."; + testGroups = "BAT"; + + // Test steps + prompt(twiki("---+++ " + testApplication + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ + | *Step* | *Verification* | + | Launch " + testBinary + " | App launches normally | + | Confirm that the operational status of the Proximity sensor display on the program is *Running* | | + | Confirm that nothing is close to the proximity detector | Verify that the Proximity reads *false* | + | Bring your hand to within 1 cm of the proximity sensor | Verify that the Proximity now reads *true* | + | Move your hand away from the proximity sensor | Verify that the Proximity now reads *false* | + ")); + }, + +} -- cgit v1.2.1