summaryrefslogtreecommitdiffstats
path: root/tests/systemtests/sys_organizer/sys_organizer.qtt
blob: 1ec3bef8f8012174b5ec1e07d4094dae38342117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** 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, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
**
** $QT_END_LICENSE$
**
****************************************************************************/

//TESTED_COMPONENT=src/organizer

// Note: for test casess relating to functions such as import iCalendar entries see src/versitorganiser tests

testcase = {

    initTestCase: function()
    {
      prompt(twiki('---++ Preconditions to the Organizer tests

    1. Verify that the devices system time is correct
    1. Verify that the appropriate backend is listed in the backend list for given device
        '));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    select_backends : function()
    {
        // Test meta data
        testTitle = "Organizer - select backends";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that backends can be selected";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>
            

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Choose each item as the backend | Verify that the backend can be selected without any error or crash |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    add_event_data : {
        valid_data : ['There are no events list in calendar', 'Event 1', 'today\'s date, 08:00 AM', 'today\'s date, 01:00 PM', '30 minutes before', 'None', 'Verify that events \'Event 1\' is listed against today\'s date', 'click *view month* button', 'Verify that date of today is underlined in the Month View'],
        invalid_data : ['None', 'Invalid Event', 'today\'s date, 08:00 AM', 'yesterday\'s date, 01:00 PM', '30 minutes before', 'None', 'Verify that an error message is pop-up: \'Start date is not before end date\'', 'click *done(or ok)* then click *cancel* button', 'Verify that \'Event Invalid\' is not listed in neither Today\'s, nor Yesterday\'s date'],
        valid_data_later_today : ['None', 'Event 2', 'today\'s date at 02:00 PM', 'today\'s date at 03:00 PM', '15 minutes before', 'None', 'Verify that events \'Event 1\' and \'Event 2\' are listed against today\'s date', 'click *view month*', 'Verify that events \'Event 1\' and \'Event 2\' are listed for today\'s date'],
        valid_data_2days : ['None', 'Event 3', 'future date, 06:00 PM', 'future date, 07:00 PM', '05 minutes before', 'None', 'Verify that today\'s date has events \'Event 1\' and \'Event 2\' listed with correct details and future date has the event \'Event 3\'', 'Delete events  \'Event 1\', \'Event 2\', \'Event 3\' (using native calendar application if neccessary)', ''],
    },

    add_event: function(precondition, subject, start_time, end_time, alarm, repeat, comment, last_step, verification)
    {
        // Test meta data
        testTitle = "Organizer - add event";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that event can be added";
        testPreconditions = precondition;
        testGroups = "BAT_MOBILITY";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Verify the layout and UI of the application is appropriate for device |
            | | Verify the correct day and month is shown |
            | | Verify that todays date is highlighted |
            | | Verify that the current backend is the best to suit device |
            | Select *Add Event* menu entry (maybe listed under *Options* menu) | |
            | Enter '" + subject + "' into Subject field | |
            | Enter '" + start_time + "' into Start time field | |
            | Enter '" + end_time + "' into End time field | |
            | Enter '" + alarm + "' into Alarm field | |
            | Select '" + repeat + "' into Repeat field | |
            | Click *Save* button | " + comment + " |
            | " + last_step + " | " + verification + " |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    delete_event : function()
    {
        // Test meta data
        testTitle = "Organizer - delete event";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that event can be deleted";
        testPreconditions = "There are no events list in calendar";
        testGroups = "BAT_MOBILITY";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select appropriate as backend | Verify there is no events are listed |
            | Add Event1 Subject: 'Event 1' |  |
            | Add Event2 Subject: 'Event 2' | Verify that 'Event 1' and 'Event 2' are listed |
            | Without selecting any events (no events highlighted), click *Remove* button | Verify that no event has been removed from list |
            | Return back to Month View, and reselect todays date | Verify that no event has been removed from list |
            | Select *Event 1* | |
            | Click *Remove* button | Verify that 'Event 1' has been removed from list of events |
            | If 'Memory' backend is not being used, close " + testBinary + " then launch it | 'Event 1' is not listed in the list of today\'s events |
            | Delete events  'Event 1'and 'Event 2' (using native calendar application if neccessary) | |
            | Close " + testBinary + " | Test application closed successfully | 
        "));
    },

    edit_event:function()
    {
        // Test meta data
        testTitle = "Organizer - edit event";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that event can be edited";
        testPreconditions = "There are no events list in calendar";
        testGroups = "BAT_MOBILITY";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select appropriate backend | |
            | Select today\'s date | |
            | Select *Add Event* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject:'Event 1' | |
            | Enter Start time:today\'s date, 08:00 AM | |
            | Enter End time:today\'s date, 01:00 PM | |
            | Select Alarm:'30 minutes before' | |
            | Select Repeat:'None' | |
            | Click *Save* button | |
            | Select *Add Event* menu entry | |
            | Enter Subject:'Event 2' | |
            | Enter Start time:today\'s date, 08:00 AM | |
            | Enter End time:today\'s date, 01:00 PM | |
            | Select Alarm:'30 minutes before' | |
            | Select Repeat:'None' | |
            | Click *Save* button | Verify that 'Event 1' and 'Event 2' are listed |  
            | Select 'Event 1' and click *Edit* button | |
            | Enter Subject:'Event 1 Edited' | |
            | Enter Start time:tomorrow\'s date, 08:00 AM | |
            | Enter End time:tomorrow\'s date, 01:00 PM | |
            | Select Alarm:'30 minutes before' | |
            | Select Repeat 'None' | |
            | Click *Save* button | Verify that 'Event 1 Edited' is now listed under tomorrow\'s date |
            | Select 'Event 1 Edited' and click the *Edit* button | |
            | Change 'End time' of event to today\'s date, leaving 'Start time' to refer to tomorrow\'s date | Verify that an error message is pop-up: 'Start date is not before end date' | 
            | Click *Done* (or *OK* button) | |
            | Click *Cancel* button | Verify that 'Event 1 Edited' has not been edited |
            | Select 'Event 1 Edited' and click the *Edit* button | |
            | Change both 'Start time' and 'End time' to today\'s date with a valid range | |
            | Select in Calendar view today\'s date | Verify that 'Event 1 Edited' and 'Event2' are now listed | |
            | Delete events 'Event 1 Edited'and 'Event 2' | |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    add_recurring_event: function()
    {
        // Test meta data
        testTitle = "Organizer - add recurring event";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that recurment events can be added";
        testPreconditions = "There are no events list in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2 .MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select appropriate backend | Verify that no events are listed |
            | Add events without no re-occurance | |
            | Select *Add Event* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Event 1' | |
            | Enter Repeat: 'None' | |
            | Click *Save* button | |
            | Select *Add Event* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Event 2' | |
            | Enter Repeat: 'None' | |
            | Click *Save* button | |
            | Add events without an re-occurance | |
            | Select *Add Event* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Recurring Event' | |
            | Enter Start time: today's date, 30 min in the future | |
            | Enter End time: toda's date, 60 min in the future | |
            | Enter Repeat : 'Weekly' | |
            | Enter Repeat period : 'For a number of occurances' | |
            | Enter Repeat count : '5' | |
            | Click *Save* button | Verify that the 'Recurring Event' is listed in event list |
            | Click *View Month* button | |
            | Select in Calendar View a date 7 days from today | Verify that *Recurring Event* is listed on that day |
            |  | Verify that  *Event 1* and *Event 2* are *not* listed on that day | 
            | Select in Calendar View  a date a futher 21 days in the future | Verify that *Recurring Event* is listed on that day |
            | Select in Calendar View  a date a futher 14 days in the future | Verify that *Reacurring Event* is ont present on that day |
            | Select in Calendar View a date 1 year in the future on the given day of the week for *Reacurring Event* | Verify that *Recurring Event* is not listed on that day |
            | Delete events 'Event 1 ', 'Event 2' and 'Recurring Event' (using native calendar application if neccessary) | |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    add_todo: function()
    {
        // Test meta data
        testTitle = "Organizer - add todo";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that todo can be added";
        testPreconditions = "There are no todos list in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select appropriate backend | Verify that no todos are listed |
            | Select: *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo 1' | |
            | Enter Start time: 'tomorrow\'s date 08:00 AM' | |
            | Enter End time: 'tomorrow\'s date 04:00 PM' | |
            | Enter Priority: 'High' | |
            | Enter Status: 'default' | |
            | Select Alarm option: '30 minutes before' | |
            | Click *Save* button | Verify that you are presented with the day view for tomorrow and that \'Todo 1\' is listed with start time shown |
            | Click *View Month* button | Verify that you are in the Month View with today\'s date underlined, and that tomorrow\'s date is highlighted in green |
            | Select: *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo Invalid' | |
            | Enter Start time: 'today\'s date 08:00 AM' | |
            | Enter End time: 'yesterday\'s date 04:00 PM' | |
            | Enter Priority: 'High' | |
            | Enter Status: 'In progress' | |
            | Select Alarm option: '5 minutes before' | |
            | Click *Save* button | Verify that you are presented with an error: 'Start date is not before end date' |
            | Click *Done* (or *OK*) button | |
            | Click  *Cancel* button | Verify that 'Todo Invalid' is not listed in either today\'s, nor yesterday\'s date |
            | Select *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo 2' | |
            | Enter Start time: 'tomorrow\'s date 05:00 PM' | |
            | Enter End time: 'tomorrow\'s date 06:00 PM' | |
            | Enter Priority: 'Low' | |
            | Enter Status: 'default' | |
            | Select Alarm option: '15 minutes before' | |
            | Click *Save* button | Verify that 'Todo 1' and 'Todo 2' are listed for today\'s date in Day View |
            | Click *View Month* button | |
            | Click the day after tommorrow in the Calendar View | |
            | Select *Add Todo* menu entry (maybe listed under *Optionsa* menu) | |
            | Enter Subject: 'Todo 3' | |
            | Click *Save* button | |
            | If 'Memory' backend is not being used, close " + testBinary + " then launch it | |
            | Select the above mentioned backend again | Verify that today's date has 'Todo 1' and 'Todo 2' listed with correct details |
            | | Verify that 'Todo 3' is listed on the day after tommorrow |
            | Delete 'Todo 1', 'Todo 2' and 'Todo 3' (using native calendar application if neccessary) | |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    edit_todo: function()
    {
         // Test meta data
        testTitle = "Organizer - edit todo";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that todo can be edited";
        testPreconditions = "There are no todos list in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select: *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo 1' | |
            | Enter Start time: tomorrow\'s date 08:00 AM  and End time: tomorrow\'s date 04:00 PM | |
            | Select Priority: 'High', Status: default and Alarm option : '30 minutes before' | |
            | Click *Save* button | |
            | Select: *Add Todo* menu entry to add a todo with later start time | |
            | Enter Subject: 'Todo 2' | |
            | Enter Start time: tomorrow\'s date 05:00 PM and End time: tomorrow\'s date 06:00 PM | |
            | Select Priority: 'Low', Status: 'default' and Alarm option: '15 minutes before' | |
            | Click *Save* button | |
            | Select: *Add Todo* menu entry with today's date | |
            | Enter Subject: 'Todo 3' | |
            | Enter Start time: today\'s date 05:00 PM and End time: today\'s date 06:00 PM | |
            | Select Priority: 'Medium', Status: 'default' and Alarm option: '5 minutes before' | |
            | Click *Save* button | |
            | Click *View Month* button  and todo entry 'Todo 2' | |
            | Click 'Edit' menu entry | |
            | Enter Subject: 'Todo 2 Edited' | |
            | Enter Start time: tomorrow\'s date 02:00 PM  and End time: tomorrow\'s date 03:00 PM | |
            | Select Priority: 'Medium', Status: default and Alarm option: '30 minutes before' | |
            | Click *Save* button | Verify that todo 'Todo 2 Edited' changed |
            | | Verify that 'Todo 1' and 'Todo3' are unchanged |
            | Delete events  'Todo 1', 'Todo 2 Edited' and 'Todo 3' (using native calendar application if neccessary) | |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },
    
    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    delete_todo: function()
    {
        // Test meta data
        testTitle = "Organizer - delete todo";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that todo can be deleted";
        testPreconditions = "There are no todos list in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Add a Todo Subject: 'todo1' | |
            | Add a Todo Subject: 'todo2' | |
            | Add a Todo Subject: 'todo3' | |
            | Select *todo1* | |
            | Click *Remove* button | Verify that 'todo1' has been deleted |
            | Press *Options* button then select *delete All items* | Verify that all todos were deleted |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    add_journal: function()
    {
        // Test meta data
        testTitle = "Organizer - add journal";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that journal can be added";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select *Organize items* | |
            | Press *Create item* button | |
            | Select Type : 'Journal' | |
            | Enter 'Journal1' in 'Subject' and select 'disabled' in 'Reminder' | |
            | Press *Save* button and save to default collection | Verify that Journal1 appears in the items tabel |
        "));
    },            

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    edit_journal: function()
    {
        // Test meta data
        testTitle = "Organizer - edit journal";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that journal can be edited";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select 'Organize items', then press 'Create item' button | |
            | Enter Display label: 'Journal1' | |
            | Select Type : 'Journal' and disable the Reminder | |
            | Press *Save* button and save to default collection | |
            | Select 'Journal1' and press *Edit...* button | |
            | Modify label to Journal2 and press *Save* button | Verify that there is Journal2 record without Journal1 |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    
    },
    
    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
   delete_journal: function()
    {
        // Test meta data
        testTitle = "Organizer - delete journal";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that journal can be deleted";
        testPreconditions = "There are no journal in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select *Organize* item |  |
            | Press *Create item* button |  |
            | Add Journal entry: with Subject: 'Journal1', Type : 'Journal' and Reminder : 'disabled' |  |
            | Press *Save* button and save to default collection |  |
            | Add a Journal entry with Subject: 'Journal2' | Verify that 'Journal1' and 'Journal2' are listed |
            | Select *Journal1* and press *Remove* button | Verify that 'Journal1' disappear in the tabel record only 'Journal2' in it |

        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    search_items_by_time: function()
    {
        // Test meta data
        testTitle = "Organizer - search items by time";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that all items can be searched by time";
        testPreconditions = "There is no item in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"


        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select *Search items* item | |
            | Add a entry with these info: Type: event, Name: event1, Start time: 06/10/11 1:00 PM, End time: 06/10/11 1:00 PM |  |
            | Press *Add New Entry* | |
            | Add a new entry with these info: Type: event, Name: event2, Start time: 06/11/11 1:00 PM, End time: 06/11/11 1:00 PM |  |
            | Press *Add New Entry* | |
            | Add a new entry with these info: Type: Todo, Name: Todo 1 | |
            | Press *Add New Entry* | |
            | Add a new entry with these info: Type: Journal, Name: Journal 1, Start time: 06/10/11 1:00 PM | |
            | Press *Add New Entry* | |
            | Add a new entry with these info: Type: Note, Name: Note 1, Start time: 06/10/11 1:00 PM | |
            | Press *Search* button | |
            | Fill in 6/10/11 1:00 PM into *Start time* | |
            | Fill in 6/10/11 2:00 PM into *End time* | |
            | Press *Search* button | Verify that only 'Event 1', 'Note 1' and 'Journal 1' are in the list |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    search_items_any_attribute: function()
    {
        // Test meta data
        testTitle = "Organizer - search items by any attribute";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that all items can be searched by attribute";
        testPreconditions = "There is no any item in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2 .MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select *Search items* item |  |
            | Add an entry with these info: *Type*:event, *Name*:event 1, *Start time*:06/10/11 1:00 PM, *End time*:06/10/11 1:00 PM |  |
            | Press *Add New Entry* |  |
            | Add a new entry with these info: *Type*:event, *Name*:event 2, *Start time*:06/11/11 1:00 PM, *End time*:06/11/11 1:00 PM |  |
            | Press *Add New Entry* |  |
            | Add a new entry with these info: *Type*:Todo, *Name*:Todo 1 |  |
            | Press *Add New Entry* |  |
            | Add a new entry with these info: *Type*:Journal, *Name*:Journal 1, *Start time*:06/10/11 1:00 PM |  |
            | Press *Add New Entry* |  |
            | Add a new entry with these info: *Type*:Note, *Name*:Note 1, *Start time*:06/10/11 1:00 PM |  |
            | Press *Search* button |  |
            | Select *Detail* in drop-down list |  | 
            | Fill in 'Event 1' into Name field |  | 
            | Press *Search* button | Verify that only 'Event 1' is in the list |
            | Fill in 6/10/11 1:00 PM into *Start time* |  |
            | Fill in 6/10/11 2:00 PM into *End time* |  |
            | Press *Search* button | Verify that only 'Event 1', 'Note 1', 'Journal 1' are in the list |
        "));
    },

// \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    custom_detail: function()
    {
        // Test meta data
        testTitle = "Organizer - check custom detail";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify that custom details can be added";
        testPreconditions = "There is no any item in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2 .MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>    

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select 'Organize items' | |
            | Press *Create item...* button | |
            | Fill 'event1' in 'Display label field' | |
            | Press *Details...* button | |
            | Fill in 'Custom detail label' field with some informaion | |
            | Press *Save* button | |
            | Press *Close* button | |
            | Press *Save* button | Verify that event is saved with custom details (press *Edit* button to check all field) |
            | Create Todo element with custom details | Verify that Todo is saved with custom details |
            | Create Journal element with custom details | Verify that Journal is saved with custom details |
            | Create Note element with custom details | Verify that Note is saved with custom details |
        "));
    },

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    multiple_stores: function()
    {
        // Test meta data
        testTitle = "Organizer - multiple stores";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that calendar items can be multiple stored";
        testPreconditions = "There is no any item in calendar";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2 .MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Create 2 calendars in *regular calendar* application (Calendar1 and Calendar2) | |
            | Launch " + testBinary + " | Test application started successfully |
            | Create an event 'Event1' in Calendar1 calendar | Verify that 'Event1' belongs Calendar1 only |
            | Create an event 'Event2' in Calendar2 calendar | Verify that  'Event1' belongs Calendar1 only and 'Event2' belongs Calendar2 only |
            | Edit 'Event1' | Verify that 'Event1' is updated correctly and did not affect 'Event2' |
            | Delete 'Event2' | verify that 'Event2' is removed and did not affect 'Event1' |
        "));
    },

// Candidate for future fully described tests, disable for the moment.
/*
    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    change_notification: function()
    {
        prompt(twiki('---++ Notifications of Changes in Data
    '));
    },
*/

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    import_vcal: function()
    {
        // Test meta data
        testTitle = "Organizer - import vCal";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that vCal can be imported";
        testPreconditions = "There are empty and nonempty vCal files";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Launch " + testBinary + " | Test application started successfully |
            | Select 'Delete all items' in *Options* menu | Verify that pristine calendar can been deleted |
            | Select 'Import items' in *Options* menu | |
            | Navigate to a exported instance of an empty vCal file and click on file | Verify that error message appears on the screen |
            | Press Ok button to close the message | Verify that calendar has no new items |
            | Select 'Import items' in *Options* menu | |
            | Navigate to a saved instance of an nonempty vCal file and click on file | Verify that calendar items have populated the dates in the calendar |
        "));
    },            

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    export_vcal: function()
    {
        // Test meta data
        testTitle = "Organizer - export vCal";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that vCal can be exported";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = "<br>1. MOBILITY-421: Qt Mobility Calendar API<br>2. MOBILITY-280: Organizer API (previously called Calendar)"

        // Test Steps
        prompt(twiki("---+++ " + testTitle + "<br><br>
            *Goal:* " + testGoal + "<br>
            *Pre-Requisites:* " + testPreconditions + "<br>
            *Tested Binary:* " + testBinary + "<br>
            *Requirements:* " + testRequirements + "<br>

            | *Step* | *Verification* |
            | Create several items (events or todo) | |
            | Select 'Export items' in *Options* menu | |
            | Navigate to a folder for export | |
            | Press Save button | |
            | Enter file name and press Ok button | Verify that file is present in phone file system |
        "));
    },

// Candidate for future fully described tests, disable for the moment.
/*
    // \groups BAT,MOBILITY-421
    online_calendar: function()
    {
        prompt(twiki('---++ Access Control

    1. Launch the *calendardemo* application
    1. Work with entries in an online organizer item store such as Google Calendar.
        '));
    },
    */

// Candidate for future fully described tests, disable for the moment.

    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    edit_recurring_event: function()
    {
        prompt(twiki('---++ Edit recursive event
        | *Step* | *Verification* |
        | Launch the application |  |
        | Create recursive event | |
        | Select any event from this seria | |
        | Press Edit button | Verify that user has choice to edit selected event or entire seria |
        | Edit seria | Verify that all event from the serias are updated correctly |
        | Select any event from this seria | |
        | Press Edit button and edit the event occurrence | Verify that only selected event from the seria is updated |
        '));
    },



// Candidate for future fully described tests, disable for the moment.
/*
    // \groups BAT,1.1,MOBILITY-421,MOBILITY-280
    delete_recurring_event: function()
    {
        prompt(twiki('---++ Edit recursive event
        | *Step* | *Verification* |
        | Launch the ? application | |
        | Create recursive event | |
        | Select any event from this seria | |
        | Press Remove button | Verify that user has choice to edit selected event or entire seria |
        | Remove the entire seria | Verify that all event from the seria was removed |
        | Create recursive event | |
        | Select any event from this seria | |
        | Press Remove button | |
        | Remove the event occurrence | Verify that only selected event from the seria is removed |
        '));
    },
    */

// Candidate for future fully described tests, disable for the moment.
/*
    // \groups BAT,MOBILITY-408
    access_control: function()
    {
        prompt(twiki('---++ Access Control

    1. Launch the *calendardemo* application
    1. Control who can and who cannot view organizer items.
    1. Close the *calendardemo* application
        '));
    }
    */
}