os/security/authorisation/userpromptservice/policies/test/tupspolicies/scripts/tpolicyreader.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/authorisation/userpromptservice/policies/test/tupspolicies/scripts/tpolicyreader.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +//
     1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +
    1.20 +LOAD_SUITE tupspolicies
    1.21 +PRINT ----------------------------------------------------------
    1.22 +PRINT tupspolicies: 
    1.23 +PRINT User Prompt Service policy library - parsing unit test
    1.24 +PRINT ----------------------------------------------------------
    1.25 + 
    1.26 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0001
    1.27 +//! @SYMTestCaseDesc Parsing a large policy file.
    1.28 +//! @SYMTestPriority High
    1.29 +//! @SYMTestActions Parses a policy file with lots of different policies.
    1.30 +//! @SYMTestExpectedResults Every policy should be parsed correctly.
    1.31 +//! @SYMDevelopedForRelease Oghma
    1.32 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0001
    1.33 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_valid.ini
    1.34 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0001
    1.35 +
    1.36 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0002
    1.37 +//! @SYMTestCaseDesc A policy file with no policies.
    1.38 +//! @SYMTestPriority Medium
    1.39 +//! @SYMTestActions Read a policy file with no policies.
    1.40 +//! @SYMTestExpectedResults Success, this is o.k. provided the header information is correct.
    1.41 +//! @SYMDevelopedForRelease Oghma
    1.42 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0002
    1.43 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_empty.ini
    1.44 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0002
    1.45 +
    1.46 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0003
    1.47 +//! @SYMTestCaseDesc Invalid options field.
    1.48 +//! @SYMTestPriority Medium
    1.49 +//! @SYMTestActions Read a policy file that contains a policy with an invalid options field.
    1.50 +//! @SYMTestExpectedResults Should be rejected with err -5706 KErrUpsBadPolicyFile
    1.51 +//! @SYMDevelopedForRelease Oghma
    1.52 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0003
    1.53 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_invalidoptions.ini
    1.54 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0003
    1.55 +
    1.56 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0004
    1.57 +//! @SYMTestCaseDesc Invalid systemserversecurity field.
    1.58 +//! @SYMTestPriority Medium
    1.59 +//! @SYMTestActions Read a policy file that contains a policy with an invalid systemserversecurity field.
    1.60 +//! @SYMTestExpectedResults Should be rejected with err -5706 KErrUpsBadPolicyFile
    1.61 +//! @SYMDevelopedForRelease Oghma
    1.62 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0004
    1.63 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_invalidsystemserversecurity.ini
    1.64 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0004
    1.65 +
    1.66 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0005
    1.67 +//! @SYMTestCaseDesc Policy file doesn't exist
    1.68 +//! @SYMTestPriority Medium
    1.69 +//! @SYMTestActions Attempt to read a non-existent policy file
    1.70 +//! @SYMTestExpectedResults 
    1.71 +//! @SYMDevelopedForRelease Oghma
    1.72 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0005
    1.73 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_noexist.ini
    1.74 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0005
    1.75 +
    1.76 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0006
    1.77 +//! @SYMTestCaseDesc Default policy evaluator not specified in header.
    1.78 +//! @SYMTestPriority Medium
    1.79 +//! @SYMTestActions Attempts to parse policy file.
    1.80 +//! @SYMTestExpectedResults Should not error. Default policy evaluator will be used.
    1.81 +//! @SYMDevelopedForRelease Oghma
    1.82 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0006
    1.83 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_nodefaultpolicyevaluator.ini
    1.84 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0006
    1.85 +
    1.86 +//! @SYMTestCaseID SEC-UPS-POLICIES-POLICYREADER-0007
    1.87 +//! @SYMTestCaseDesc Default dialog creator not specified in header.
    1.88 +//! @SYMTestPriority Medium
    1.89 +//! @SYMTestActions Attempts to parse policy file.
    1.90 +//! @SYMTestExpectedResults Should be rejected with err -5706 KErrUpsBadPolicyFile
    1.91 +//! @SYMDevelopedForRelease Oghma
    1.92 +START_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0007
    1.93 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPolicyReader.TestPolicyReader z:\tups\tpolicies\scripts\policyreader_nodefaultdialogcreator.ini
    1.94 +END_TESTCASE SEC-UPS-POLICIES-POLICYREADER-0007
    1.95 +
    1.96 +