summaryrefslogtreecommitdiffstats
path: root/QtMobility
diff options
context:
space:
mode:
authorKeith Isdale <keith.isdale@nokia.com>2010-11-24 08:28:23 +1000
committerKeith Isdale <keith.isdale@nokia.com>2010-11-24 08:28:23 +1000
commit9f74566068b998e7fa6ff75077f980a3a11bc8d8 (patch)
treeecf300a9f12f00461eef3a2b552bc5dcb3caa751 /QtMobility
parentd38de3198220647b3c6c4c90321866827343a218 (diff)
Add a "Run test application" test function
Add Run_Test_Application() and make use of startTestApp() to simplify changing test application name later on Upate the test case to reflect that 'declarative-sfw-notes' is now compiled as binary
Diffstat (limited to 'QtMobility')
-rw-r--r--QtMobility/sys_declarative-sfw-notes/sys_declarative-sfw-notes.qtt28
1 files changed, 23 insertions, 5 deletions
diff --git a/QtMobility/sys_declarative-sfw-notes/sys_declarative-sfw-notes.qtt b/QtMobility/sys_declarative-sfw-notes/sys_declarative-sfw-notes.qtt
index d7ccb04..43de015 100644
--- a/QtMobility/sys_declarative-sfw-notes/sys_declarative-sfw-notes.qtt
+++ b/QtMobility/sys_declarative-sfw-notes/sys_declarative-sfw-notes.qtt
@@ -41,14 +41,32 @@
//TESTED_COMPONENT=src/serviceframework
+function startTestApp()
+{
+ prompt('Start application \'declarative-sfw-notes\'
+ Verify test application started and closed without issue');
+}
+
+
testcase = {
+ // prove that the test application starts before anything else is tested.
+ Run_Test_Application: function()
+ {
+ startTestApp();
+ if (!runAsManualTest()){
+ // ensure we have a widget to work with, dump its details
+ // TODO when run this test case 'automaticly' then enable this following code
+ //print('Focus widget is' + focusWidget());
+ }
+ },
+
Add_Note_With_Date: function()
{
prompt(twiki('*Add Note with date*
1 If not done so register the notes manager service: eg run *servicefw add xmldata/notesmanagerservice.xml*
- 1 Start declarative-sfw-notes, eg run *qmlviewer examples/declarative-sfw-notes/declarative-sfw-notes.qml*
+ 1 Start application *declarative-sfw-notes*
1 Click \"+\" button
1 Enter a note in the form *Note1#2010-10-01#10:30*
1 Click *Ok* button
@@ -61,7 +79,7 @@ testcase = {
prompt(twiki('*Add Note without date*
1 If not done so register the notes manager service: eg run *servicefw add xmldata/notesmanagerservice.xml*
- 1 Start declarative-sfw-notes, eg run *qmlviewer examples/declarative-sfw-notes/declarative-sfw-notes.qml*
+ 1 Start application *declarative-sfw-notes*
1 Click \"+\" button
1 Enter a note in the form *My Note*
1 Click *Ok* button
@@ -74,7 +92,7 @@ testcase = {
prompt(twiki('*Browse Notes*
1 If not done so register the notes manager service: eg run *servicefw add xmldata/notesmanagerservice.xml*
- 1 Start declarative-sfw-notes, eg run *qmlviewer examples/declarative-sfw-notes/declarative-sfw-notes.qml*
+ 1 Start application *declarative-sfw-notes*
1 If not done so enter at least three notes see in this System Test the functions *Add_Note_With_Date* and *Add_Note_Without_Date*
1 Verify that *right* arrow button on dialog can be used to navigate to last note
1 Verify that the *left* arrow button on dialog can be used to navigate to first note
@@ -86,7 +104,7 @@ testcase = {
prompt(twiki('*Find Note*
1 If not done so register the notes manager service: eg run *servicefw add xmldata/notesmanagerservice.xml*
- 1 Start declarative-sfw-notes, eg run *qmlviewer examples/declarative-sfw-notes/declarative-sfw-notes.qml*
+ 1 Start application *declarative-sfw-notes*
1 Click *Search* button ( looking glass )
1 Enter text from previously entered note, eg *My Note*
1 Click *OK* button
@@ -99,7 +117,7 @@ testcase = {
prompt(twiki('*Delete Note*
1 If not done so register the notes manager service: eg run *servicefw add xmldata/notesmanagerservice.xml*
- 1 Start declarative-sfw-notes, eg run *qmlviewer examples/declarative-sfw-notes/declarative-sfw-notes.qml*
+ 1 Start application *declarative-sfw-notes*
1 Click the *Delete* button ( in between Add and Search buttons )
1 Verify that the current note was deleted, ie use left and right arrow buttons to browse notes.
'));