|
1 // |
|
2 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.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 // |
|
14 // Description: |
|
15 // |
|
16 // Sample TestFileServer_TEF.script |
|
17 // Your copyright notice |
|
18 |
|
19 LOAD_SUITE TestFileServer_TEF |
|
20 |
|
21 START_TESTCASE TEST-CASE1 |
|
22 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
23 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
24 COMMAND !Error=-11 fileserver CreateFile MyParamsSection |
|
25 END_TEST_BLOCK |
|
26 END_TESTCASE TEST-CASE1 |
|
27 |
|
28 START_TESTCASE TEST-CASE2 |
|
29 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
30 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
31 //START_REPEAT c:\data\TestFileServer_TEF.ini RepeatSection repeatParam |
|
32 //PRINT Loop test |
|
33 COMMAND fileserver ReadFile MyParamsSection |
|
34 //END_REPEAT |
|
35 END_TEST_BLOCK |
|
36 END_TESTCASE TEST-CASE2 |
|
37 |
|
38 START_TESTCASE TEST-CASE3 |
|
39 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
40 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
41 DELAY 2000 |
|
42 COMMAND fileserver ReadFile MyParamsSection |
|
43 END_TEST_BLOCK |
|
44 END_TESTCASE TEST-CASE3 |
|
45 |
|
46 |
|
47 START_TESTCASE TEST-CASE4 |
|
48 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
49 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
50 COMMAND fileserver PanicExample PanicSection |
|
51 END_TEST_BLOCK !PanicString=USER !PanicCode=5 |
|
52 END_TESTCASE TEST-CASE4 |
|
53 |
|
54 |
|
55 |
|
56 CONCURRENT |
|
57 |
|
58 START_TESTCASE TEST-SAMPLE-CONCURRENT |
|
59 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
60 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
61 COMMAND fileserver ReadFile MyParamsSection |
|
62 END_TEST_BLOCK |
|
63 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
64 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
65 COMMAND !Error=-14 fileserver ReadFile MyParamsSection |
|
66 END_TEST_BLOCK |
|
67 START_TEST_BLOCK 100 TestFileServer_TEF c:\data\TestFileServer_TEF.ini |
|
68 CREATE_OBJECT CTestFileServerWrapper fileserver |
|
69 COMMAND !Error=-14 fileserver ReadFile MyParamsSection |
|
70 END_TEST_BLOCK |
|
71 END_TESTCASE TEST-SAMPLE-CONCURRENT |