author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 07 Jan 2010 13:38:45 +0200 | |
changeset 6 | 0173bcd7697c |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
0 | 6 |
// which accompanies this distribution, and is available |
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
// |
|
9 |
// Initial Contributors: |
|
10 |
// Nokia Corporation - initial contribution. |
|
11 |
// |
|
12 |
// Contributors: |
|
13 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Alvar Udras, Runno Sgirka |
|
20 |
//! @SYMScriptDescription The test script contains API tests for the following functions of RRawDisk class: |
|
21 |
//! TInt Open(RFs &aFs, TInt aDrive); |
|
22 |
//! void Close(); |
|
23 |
||
24 |
||
25 |
LOAD_SUITE t_sfsrv |
|
26 |
DELAY 5000 |
|
27 |
||
28 |
||
29 |
START_TESTCASE PBASE-F32-RawDisk-PublicApi-1003 |
|
30 |
//! @SYMTestCaseID PBASE-F32-RawDisk-PublicApi-1003 |
|
31 |
//! @SYMAPI RRawDisk |
|
32 |
//! @SYMTestCaseDesc Function Open() test. Open a disk channel, passing an invalid drive letter value. |
|
33 |
//! Uses API elements: Open(), Close(). |
|
34 |
//! @SYMTestActions 1. Create a RFs session. |
|
35 |
//! 2. Connect the RFs session. |
|
36 |
//! 3. call Open(RFs &aFs, TInt aDrive) method to open a direct access channel to disk, passing an fileserver session, |
|
37 |
//! -1 as parameters. |
|
38 |
//! 4. Call Close() method to close the channel. |
|
39 |
//! 5. Close the RFs session. |
|
40 |
//! @SYMTestStatus Implemented |
|
41 |
//! @SYMTestPriority Critical |
|
42 |
//! @SYMTestExpectedResults The Open() method call returns error -6 (KErrArgument). |
|
43 |
//! @SYMTestType CIT |
|
44 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-RawDisk-PublicApi.ini |
|
45 |
CREATE_OBJECT RFs rfs1 |
|
46 |
CREATE_OBJECT RRawDisk rawdisk1 |
|
47 |
COMMAND rfs1 new |
|
48 |
COMMAND rfs1 Connect |
|
49 |
COMMAND rawdisk1 new |
|
50 |
COMMAND !Error=-6 rawdisk1 Open PBASE-F32-RawDisk-PublicApi-1003-001-Open_command05 |
|
51 |
COMMAND rawdisk1 Close |
|
52 |
COMMAND rawdisk1 ~ |
|
53 |
COMMAND rfs1 Close |
|
54 |
COMMAND rfs1 ~ |
|
55 |
END_TEST_BLOCK |
|
56 |
END_TESTCASE PBASE-F32-RawDisk-PublicApi-1003 |
|
57 |
||
58 |
||
59 |
START_TESTCASE PBASE-F32-RawDisk-PublicApi-1004 |
|
60 |
//! @SYMTestCaseID PBASE-F32-RawDisk-PublicApi-1004 |
|
61 |
//! @SYMAPI RRawDisk |
|
62 |
//! @SYMTestCaseDesc Function Close() test. Call Close() without opening a disk channel first. |
|
63 |
//! Uses API elements: Close(). |
|
64 |
//! @SYMTestActions 1. Create a RFs session. |
|
65 |
//! 2. Connect the RFs session. |
|
66 |
//! 3. Call Close() method to close the channel. |
|
67 |
//! 4. Close the RFs session. |
|
68 |
//! @SYMTestStatus Implemented |
|
69 |
//! @SYMTestPriority Critical |
|
70 |
//! @SYMTestExpectedResults The Close() method call is completed without errors. |
|
71 |
//! @SYMTestType CIT |
|
72 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-RawDisk-PublicApi.ini |
|
73 |
CREATE_OBJECT RFs rfs1 |
|
74 |
CREATE_OBJECT RRawDisk rawdisk1 |
|
75 |
COMMAND rfs1 new |
|
76 |
COMMAND rfs1 Connect |
|
77 |
COMMAND rawdisk1 new |
|
78 |
COMMAND rawdisk1 Close |
|
79 |
COMMAND rawdisk1 ~ |
|
80 |
COMMAND rfs1 Close |
|
81 |
COMMAND rfs1 ~ |
|
82 |
END_TEST_BLOCK |
|
83 |
END_TESTCASE PBASE-F32-RawDisk-PublicApi-1004 |