telephonyserverplugins/common_tsy/test/component/scripts/te_ctsycomponent_phoneidentity_individual.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:41:59 +0200
changeset 0 3553901f7fa8
child 6 fc69e1e37771
permissions -rw-r--r--
Revision: 201005 Kit: 201005

//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

LOAD_SUITE te_ctsy_component

RUN_UTILS MkDir c:\versions\
RUN_UTILS CopyFile \testdata\configs\standard.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::GetPhoneId
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::GetPhoneId
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001L
END_TESTCASE BA-CTSY-PID-MGPI-0001

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001b.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001b
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001b
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test missing ManufacturerName in deviceattributes.ini
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini is missing data.
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001bL
END_TESTCASE BA-CTSY-PID-MGPI-0001b
RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001c.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001c
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001c
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test missing ModelName in deviceattributes.ini
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini is missing data.
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001cL
END_TESTCASE BA-CTSY-PID-MGPI-0001c

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001d.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001d
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001d
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test missing RevisionID in deviceattributes.ini
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini is missing data.
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001dL
END_TESTCASE BA-CTSY-PID-MGPI-0001d

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001e.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001e
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001e
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test missing all data in deviceattributes.ini
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini is missing data.
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001eL
END_TESTCASE BA-CTSY-PID-MGPI-0001e

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001f.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001f
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001f
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test reading from deviceattributes.ini not encoded as UNICODE Little Endian
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini not using the right encoding.
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001fL
END_TESTCASE BA-CTSY-PID-MGPI-0001f

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001g.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001g
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001g
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test reading from deviceattributes.ini with corrupt data format
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini has corrupt data format
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001gL
END_TESTCASE BA-CTSY-PID-MGPI-0001g

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001h.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001h
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001h
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test reading from deviceattributes.ini with too long data strings
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini has too long data
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001hL
END_TESTCASE BA-CTSY-PID-MGPI-0001h

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS CopyFile \testdata\configs\TestGetPhoneId0001i.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0001i
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001i
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test reading from deviceattributes.ini with correct tags that are empty
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini has empty data tags
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001iL
END_TESTCASE BA-CTSY-PID-MGPI-0001i

RUN_UTILS MakeReadWrite c:\versions\deviceattributes.ini
RUN_UTILS DeleteFile c:\versions\deviceattributes.ini 

START_TESTCASE BA-CTSY-PID-MGPI-0001j
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0001j
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc test reading from deviceattributes.ini with correct tags that are empty
//!@SYMTestPriority High
//!@SYMTestActions Calls GetPhoneId when deviceattributes.ini has empty data tags
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0001jL
END_TESTCASE BA-CTSY-PID-MGPI-0001j

RUN_UTILS CopyFile \testdata\configs\standard.ini c:\versions\deviceattributes.ini

START_TESTCASE BA-CTSY-PID-MGPI-0002
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0002
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for cancelling of RMobilePhone::GetPhoneId
//!@SYMTestPriority High
//!@SYMTestActions Invokes cancelling of RMobilePhone::GetPhoneId
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0002L
END_TESTCASE BA-CTSY-PID-MGPI-0002

START_TESTCASE BA-CTSY-PID-MGPI-0004
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0004
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::GetPhoneId
//!@SYMTestPriority High
//!@SYMTestActions Invokes multiple client requests to RMobilePhone::GetPhoneId
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0004L
END_TESTCASE BA-CTSY-PID-MGPI-0004

START_TESTCASE BA-CTSY-PID-MGPI-0004b
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0004b
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::GetPhoneId combined with cancelling a request
//!@SYMTestPriority High
//!@SYMTestActions Invokes multiple client requests to RMobilePhone::GetPhoneId, cancels the first request
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0004bL
END_TESTCASE BA-CTSY-PID-MGPI-0004b

START_TESTCASE BA-CTSY-PID-MGPI-0004c
//!@SYMTestCaseID BA-CTSY-PID-MGPI-0004c
//!@SYMComponent  telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::GetPhoneId combined with cancelling a request
//!@SYMTestPriority High
//!@SYMTestActions Invokes multiple client requests to RMobilePhone::GetPhoneId, cancels the second request
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetPhoneId0004cL
END_TESTCASE BA-CTSY-PID-MGPI-0004c

START_TESTCASE BA-CTSY-PID-MGIC-0001
//!@SYMTestCaseID BA-CTSY-PID-MGIC-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::GetIdentityCaps
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::GetIdentityCaps
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetIdentityCaps0001L
END_TESTCASE BA-CTSY-PID-MGIC-0001

START_TESTCASE BA-CTSY-PID-MGISS-0001
//!@SYMTestCaseID BA-CTSY-PID-MGISS-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::GetIdentityServiceStatus
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::GetIdentityServiceStatus
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetIdentityServiceStatus0001L
END_TESTCASE BA-CTSY-PID-MGISS-0001

START_TESTCASE BA-CTSY-PID-MGISS-0002
//!@SYMTestCaseID BA-CTSY-PID-MGISS-0002
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for cancelling of RMobilePhone::GetIdentityServiceStatus
//!@SYMTestPriority High
//!@SYMTestActions Invokes cancelling of RMobilePhone::GetIdentityServiceStatus
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetIdentityServiceStatus0002L
END_TESTCASE BA-CTSY-PID-MGISS-0002

START_TESTCASE BA-CTSY-PID-MGISS-0004
//!@SYMTestCaseID BA-CTSY-PID-MGISS-0004
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::GetIdentityServiceStatus
//!@SYMTestPriority High
//!@SYMTestActions Invokes multiple client requests to RMobilePhone::GetIdentityServiceStatus
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestGetIdentityServiceStatus0004L
END_TESTCASE BA-CTSY-PID-MGISS-0004

START_TESTCASE BA-CTSY-PID-MSISS-0001
//!@SYMTestCaseID BA-CTSY-PID-MSISS-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::SetIdentityServiceStatus
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::SetIdentityServiceStatus
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestSetIdentityServiceStatus0001L
END_TESTCASE BA-CTSY-PID-MSISS-0001

START_TESTCASE BA-CTSY-PID-MNISS-0001
//!@SYMTestCaseID BA-CTSY-PID-MNISS-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyIdentityServiceStatus
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::NotifyIdentityServiceStatus
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestNotifyIdentityServiceStatus0001L
END_TESTCASE BA-CTSY-PID-MNISS-0001

START_TESTCASE BA-CTSY-PID-MNISR-0001
//!@SYMTestCaseID BA-CTSY-PID-MNISR-0001
//!@SYMComponent telephony_ctsy
//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyIdentitySuppressionRejected
//!@SYMTestPriority High
//!@SYMTestActions Invokes RMobilePhone::NotifyIdentitySuppressionRejected
//!@SYMTestExpectedResults Pass
//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyPhoneIdentityFU.TestNotifyIdentitySuppressionRejected0001L
END_TESTCASE BA-CTSY-PID-MNISR-0001