From fe479ccae04e540ffd65cff3c19284c44c9e687d Mon Sep 17 00:00:00 2001 From: Daron Andrew Edie Date: Wed, 25 Jan 2012 15:09:49 +1000 Subject: added QML System Test - Slow down IR Proxy polling when close Change-Id: I9e2c2cfe6a597f72286c307be55aadbe8ef99c71 Sanity-Review: Qt Sanity Bot Reviewed-by: Natalia Shubina --- .../sys_declarative-sensor-elements.qtt | 31 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'tests') 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 + "

+ *Goal:* " + testGoal + "
+ *Pre-Requisites:* " + testPreconditions + "
+ *Tested Binary:* " + testBinary + "
+ | *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 | + ")); + }, } -- cgit v1.2.3