diff options
author | Daron Andrew Edie <daron.edie@nokia.com> | 2012-01-25 15:09:49 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-29 23:38:19 +0100 |
commit | fe479ccae04e540ffd65cff3c19284c44c9e687d (patch) | |
tree | d5328dc6a7fa0d4ae4c5d64914abae776f71489a /tests/systemtests | |
parent | 9087a78db05147339b2df1e7932d31f32b97846e (diff) |
added QML System Test - Slow down IR Proxy polling when close
Change-Id: I9e2c2cfe6a597f72286c307be55aadbe8ef99c71
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
Diffstat (limited to 'tests/systemtests')
-rw-r--r-- | tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt index ffc51096..b491bbc7 100644 --- a/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt +++ b/tests/systemtests/sys_SensorElements/sys_declarative-sensor-elements.qtt @@ -2,7 +2,7 @@ ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. -** Contact: http://www.qt-project.org/ +** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** @@ -241,8 +241,7 @@ cleanup: function() { ")); }, -// 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 +// As a QML Application developer I would like to deactivate the touchscreen as soon the proximity of the user is close - no need for test app to lock screen, testing that the proximity is detected is sufficient Proximity_Detection: function() { // Test meta data @@ -373,4 +372,30 @@ cleanup: function() { | 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 | ")); }, + + // MTMW-424 - Slow down IR Proxy polling when close + Slow_Down_IR_Proxy: function() + { + // Test meta data + testApplication = "sensortest"; + testBinary = "sensortest"; + testGoal = "Verify that the IR Proxy poll rate slows down to 5 Hz when objects are close"; + 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* | + | Connect to the console on the device via ssh and launch *" + testBinary + " irprox* | Verify the App launches normally and displays *loaded the grue plugin*, *loaded the Meltemi plugin* | + | | Verify it also displays *Detected: HW35*, *Sensor 0, IR Reflectance 0.0%* | + | Move your hand to within 1 cm of the IR Proxy sensor | Verify that the IR Reflectance data increases to about 10Hz briefly and then goes down to 5Hz or less - note that the readings will not update unless your hand is moving | + | Move your hand a small amount without moving further away than 1 cm | Verify that the values update but never go above 5Hz | + | Move your hand further away than 1 cm | Verify the updating stops | + | Move your hand to within 1 cm of the IR Proxy sensor again | Verify that the IR Reflectance data increases to about 10Hz briefly and then goes down to 5Hz or less | + ")); + }, } |