summaryrefslogtreecommitdiffstats
path: root/QtMobility
diff options
context:
space:
mode:
authorKeith Isdale <keith.isdale@nokia.com>2010-10-05 15:06:24 +1000
committerKeith Isdale <keith.isdale@nokia.com>2010-10-05 15:06:24 +1000
commit9b32cb051334704e5c258ba7817dcbc4f4280258 (patch)
tree15d6bcb3e28ad48ee37be53df541846606d1f4f3 /QtMobility
parentfec1efd8e09c3f25840a340fae7c1c0063eb9dcb (diff)
Add test for change request on systeminfo module
Diffstat (limited to 'QtMobility')
-rw-r--r--QtMobility/QtMobility.pro2
-rw-r--r--QtMobility/sys_crsysteminfo/sys_crsysteminfo.pro3
-rw-r--r--QtMobility/sys_crsysteminfo/sys_crsysteminfo.qtt67
3 files changed, 71 insertions, 1 deletions
diff --git a/QtMobility/QtMobility.pro b/QtMobility/QtMobility.pro
index e0e3dec..da54208 100644
--- a/QtMobility/QtMobility.pro
+++ b/QtMobility/QtMobility.pro
@@ -13,4 +13,4 @@ SUBDIRS+= \
sys_telephony \
sys_versit \
sys_versitorganizer \
-
+ sys_crsysteminfo \
diff --git a/QtMobility/sys_crsysteminfo/sys_crsysteminfo.pro b/QtMobility/sys_crsysteminfo/sys_crsysteminfo.pro
new file mode 100644
index 0000000..733b98f
--- /dev/null
+++ b/QtMobility/sys_crsysteminfo/sys_crsysteminfo.pro
@@ -0,0 +1,3 @@
+SOURCES=sys_crsysteminfo.qtt
+CONFIG+=systemtest
+
diff --git a/QtMobility/sys_crsysteminfo/sys_crsysteminfo.qtt b/QtMobility/sys_crsysteminfo/sys_crsysteminfo.qtt
new file mode 100644
index 0000000..e7ccfe5
--- /dev/null
+++ b/QtMobility/sys_crsysteminfo/sys_crsysteminfo.qtt
@@ -0,0 +1,67 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of QtUiTest.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+//TESTED_COMPONENT=src/systeminfo
+
+testcase = {
+
+ Configurable_Signal_Strength: function()
+ {
+ skip('Configurable Signal Strength not implemented yet', SkipAll);
+ },
+
+ Storage_changed_notification: function()
+ {
+ prompt(twiki('*Storage changed notification*
+
+ 1 Verify that target supports removable storage, if not then pass this test now otherwise continue with the next steps
+ 1 Ensure that target system does not have any removable storage inserted/mounted
+ 1 Start application *examples/qsysinfo*
+ 1 Switch to the *Storage* tab
+ 1 Verify that the removable storage status is unavailable
+ 1 Insert/mount the storage
+ 1 Verify that the storage appears with correct size
+ 1 Remove/unmount the removable media
+ 1 Verify that the storage disappears or marked unavailable
+ 1 *Note:* On S60 platforms removing a media might cause qsysinfo to be closed, which is usual
+ '));
+ }
+}