summaryrefslogtreecommitdiffstats
path: root/tests/systemtests/sys_versitorganizer/sys_versitorganizer.qtt
blob: 810a1613e3ea9afe72aafea64074dd586401cda9 (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
/****************************************************************************
**
** 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/versitorganizer

function startTestApp()
{
    prompt('Start application \'calendardemo\'
    Verify test application started and closed without issue');
}


// Note for test cases relating to  functionality such as add event see test relating to src/organizer
testcase = {
    /* commented as it doesn't use at the moment.
        // prove that the test application starts before anything else is tested.
        runTestApplication: 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());
            }
        },
    */

    import_ical : function()
    {
        // Test meta data
        testTitle = "versitorganizer - Import ical";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify that ical file can be imported";
        testPreconditions = "There is an exampleEvents.ics onto a location on the target";
        testGroups = " ";
        testRequirements = " "


        // 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 |
            | On app menu, select *Delete all items* | Verify there is no item in calendar | 
            | On app menu, select *Import items* menu entry | |
            | In file dialog that presents select the exampleEvents.ics that was transfer to the target | |
            | Click *Open* and import exampleEvents.ics | Verify there is now the following event:<br>*Subject*:Bastille Day Party<br>*Start time*:July 14, 1997 17:00 (UTC)<br>*End time*:July 15, 1997 03:59:59 (UTC) |
            |  | Verify there is the following Todo:<br>*Subject*:Submit Income Taxes<br>*Time*:April 15, 1998 |
            | If the platform(backend) supports journal entries: | Verify there is the following entries<br>*Subject*:Project xyz Review Meeting Minutes<br>*Time*:March 24, 1997 |
            | On app menu, select *Delete all items* | All items are deleted |
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    export_ical : function()
    {
        // Test meta data
        testTitle = "Versitorganizer - Export ical";
        testBinary = "calendardemo";
        testSource = "$MOBILITYDIR/examples/calendardemo";
        testGoal = "Verify ical file can be exported";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " "


        // 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 |
            | On app menu, select *Delete all items* | Verify there is no item in calendar | 
            | | Verify that the current backend is the best to suit device |
            | Select *Add Event* menu entry (maybe list 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 *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo 1' | |
            | Enter Start time: today's date 08:00 AM  and End time: today's date 04:00 PM | |
            | Select Priority: 'High', Status: default and Alarm option : '30 minutes before' | |
            | Click *Save* button | |
            | Select *Add Todo* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Todo 2' | |
            | Enter Start time: tomorrow's date 03:00 PM and End time: tomorrow's date 04:00 PM | |
            | Select Priority: 'Low', Status: 'default' and Alarm option: '15 minutes before' | |
            | Click *Save* button | Verify that 'Todo 1' and 'Todo 2' are listed |
            | If platform(backend) supports Journal entries then add a Journal entry: | |
            | Select *Add Journal* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Journal 1' | |
            | Enter Start time: today\'s date 08:00 AM | |
            | Alarm : '30 minutes before' | |
            | Click *Save* button | |
            | Select *Add Journal* menu entry (maybe listed under *Options* menu) | |
            | Enter Subject: 'Journal 2' | |
            | Enter Start time: today's date 02:00 PM | |
            | Alarm : '15 minutes before' | |
            | Click *Save* button | Verify that 'Journal 1' and 'Journal 2' are listed |
            | On app menu, select *Export items* menu entry | |
            | Select suitable location saving as testcalendar.ics | |
            | Click *Save* | Ideally the testcalendar.ics be opened on a separate system and its contents validated |
            | On app menu, select *Delete all items* | Verify there is no item in calendar | 
            | Close " + testBinary + " | Test application closed successfully |
            | Launch " + testBinary + " | Test application started successfully |
            | Select location for testcalendar.ics entered earlier | | 
            | Click *Select* button | Verify that calendar items 'Event 1', 'Event 2', 'Todo 1' and 'Todo 2' are present and have expected details |
            | If platform(backend) supports Journal entries then Verify that calendar items | Verify that calendar items 'Journal 1' and 'Journal 2' are present and have expected details | 
            | Delete events 'Event 1', 'Event 2', 'Todo 1', 'Todo 2', 'Journal 1' and 'Journal 2'(using native calendar application if neccessary) | | 
            | Close " + testBinary + " | Test application closed successfully |
        "));
    },

    import_ical_data_format: function()
    {
        // Test meta data
        testTitle = "Versitorganizer - Export ical";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify ical data can be imported";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " "


        // 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 *Import and export organizer data* button | |
            | Click *Create template* button and press *Import item* | Verify that the type, name, start time and end time in the screen right are the same as the ical data template |
        "));
    },

    import_vcal_data_format: function()
    {
        // Test meta data
        testTitle = "Versitorganizer - Export ical";
        testBinary = "testQtOrganizer";
        testSource = "$MOBILITYDIR/tests/applications/organizer";
        testGoal = "Verify vcal data can be imported";
        testPreconditions = "None";
        testGroups = " ";
        testRequirements = " "


        // 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 *Import and export organizer data* button | |
            | Click *Create template* button | |
            | Modify the calendar data as vcal format | |
            | Press *Import item* | Verify that the type, name, start time and end time in the screen right are the same as the vcal data |
        "));
    },
}