|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-5F35ED29-18A0-4764-B84D-B43BF23BF44F" xml:lang="en"><title>Time Testing Guide</title><shortdesc>Describes how to test a Time SHAI implementation.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
13 <p>There is no conformance testing suite for the Time platform service. |
|
14 So, this is a list of tests that have to be conducted to check that |
|
15 the Time platform service is working correctly:</p> |
|
16 <section id="GUID-7CF6788A-D44E-456C-AF6D-2B3A93E89539"><title>Time |
|
17 Tests</title><p>The following table is a list of the tests that need |
|
18 to be carried out in order to test the Time SHAI implementation.</p><table id="GUID-541A8B76-7008-4E81-8AFD-C2955996E79B"> |
|
19 <tgroup cols="4"><colspec colname="COLSPEC0" colwidth="0.41*"/><colspec colname="col1" colwidth="0.79*"/><colspec colname="col2" colwidth="1.40*"/> |
|
20 <colspec colname="col3" colwidth="1.41*"/> |
|
21 <thead> |
|
22 <row> |
|
23 <entry align="center" valign="top"><p><b>No.</b></p></entry> |
|
24 <entry align="center" valign="top"><p><b>Functionality To Test</b></p></entry> |
|
25 <entry align="center" valign="top"><p><b>Description</b></p></entry> |
|
26 <entry align="center" valign="top"><p><b>Correct Result</b></p></entry> |
|
27 </row> |
|
28 </thead> |
|
29 <tbody> |
|
30 <row> |
|
31 <entry><p>1</p></entry> |
|
32 <entry><p>The Real Time Clock (RTC) works correctly.</p></entry> |
|
33 <entry><p>Check the output from the RTC with a reliable clock.</p></entry> |
|
34 <entry><p>The date and time should be identical.</p></entry> |
|
35 </row> |
|
36 <row> |
|
37 <entry><p>2</p></entry> |
|
38 <entry><p>Validating the RTC.</p></entry> |
|
39 <entry><p>The function <xref href="GUID-CC79A63E-15DF-3437-983B-9A90966B3004.dita#GUID-CC79A63E-15DF-3437-983B-9A90966B3004/GUID-AC7C2EFB-BE71-301A-9C03-A15BDC0EF310"><apiname>MRtcAdaptation::ValidateRtc()</apiname></xref> is called.</p></entry> |
|
40 <entry><p>The <codeph>KErrorNone</codeph> should be returned in the |
|
41 variable passed in the second argument.</p></entry> |
|
42 </row> |
|
43 <row> |
|
44 <entry><p>3</p></entry> |
|
45 <entry><p>Setting the wake-up alarm.</p></entry> |
|
46 <entry><p>The function <xref href="GUID-CC79A63E-15DF-3437-983B-9A90966B3004.dita#GUID-CC79A63E-15DF-3437-983B-9A90966B3004/GUID-208F81E5-E9F0-3152-9BCF-04A5147922A2"><apiname>MRtcAdaptation::SetWakeupAlarm()</apiname></xref></p></entry> |
|
47 <entry><p>The wake-up alarm should start at the set time.</p></entry> |
|
48 </row> |
|
49 <row> |
|
50 <entry><p>4</p></entry> |
|
51 <entry><p>Un-set the wake-up alarm.</p></entry> |
|
52 <entry><ol> |
|
53 <li id="GUID-7E749595-4BC7-4D28-8292-45C11D4160DB"><p>Set the wake-up |
|
54 alarm to a known date and time.</p></li> |
|
55 <li id="GUID-26183817-BD96-4DFD-B898-285546F9B318"><p>Execute the |
|
56 function <xref href="GUID-CC79A63E-15DF-3437-983B-9A90966B3004.dita#GUID-CC79A63E-15DF-3437-983B-9A90966B3004/GUID-13192CC5-661C-3696-BEFC-198C45C38B8C"><apiname>MRtcAdaptation::UnsetWakeupAlarm()</apiname></xref> to |
|
57 cancel the wake-up alarm.</p></li> |
|
58 </ol></entry> |
|
59 <entry><p>The wake-up alarm will not go off at the original preset |
|
60 time.</p></entry> |
|
61 </row> |
|
62 <row> |
|
63 <entry><p>5</p></entry> |
|
64 <entry><p>Cancel a request.</p></entry> |
|
65 <entry><p>As for the above, except that the function <xref href="GUID-CC79A63E-15DF-3437-983B-9A90966B3004.dita#GUID-CC79A63E-15DF-3437-983B-9A90966B3004/GUID-ADC7041A-23F0-319F-A163-29E8BB261D0B"><apiname>MRtcAdaptation::Cancel()</apiname></xref> is called instead of<xref href="GUID-CC79A63E-15DF-3437-983B-9A90966B3004.dita#GUID-CC79A63E-15DF-3437-983B-9A90966B3004/GUID-13192CC5-661C-3696-BEFC-198C45C38B8C"><apiname>MRtcAdaptation::UnsetWakeupAlarm()</apiname></xref>.</p></entry> |
|
66 <entry><p>The wake-up alarm will not go off at the original preset |
|
67 time.</p></entry> |
|
68 </row> |
|
69 </tbody> |
|
70 </tgroup> |
|
71 </table></section> |
|
72 </conbody></concept> |