installationservices/swcomponentregistry/test/tscr/scripts/tscrapparc.script
branchRCL_3
changeset 66 8b7f4e561641
parent 65 7333d7932ef7
child 70 e8965914fac7
equal deleted inserted replaced
65:7333d7932ef7 66:8b7f4e561641
     1 //
       
     2 // Copyright (c) 2009-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 the License "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 // This script tests SCR Application Registration APIs which can only be accessed by apparc.
       
    16 // 
       
    17 //
       
    18 
       
    19 PRINT Run SCR Application Registration API Tests for Apparc Subsession
       
    20 
       
    21 // Load Suite
       
    22 LOAD_SUITE tscr -SharedData
       
    23 LOAD_SUITE tscrapparc
       
    24 LOAD_SUITE tSisRegistryTest
       
    25 SHARED_DATA z:\tusif\tscr\tscr_appreginfo.ini shared_data
       
    26 
       
    27 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0001
       
    28 //! @SYMTestCaseDesc 		Complete appregistration data for nearest locale, subsession opened without locale
       
    29 START_TESTCASE APPINS-SCR-APPARC-API-0001
       
    30 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_nearestlanguage
       
    31 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_french
       
    32 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_complete_for_nearestlanguage
       
    33 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_english
       
    34 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    35 END_TESTCASE APPINS-SCR-APPARC-API-0001
       
    36 
       
    37 
       
    38 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0002
       
    39 //! @SYMTestCaseDesc 		Complete appregistration data for current locale(english), subsession opened without locale
       
    40 START_TESTCASE APPINS-SCR-APPARC-API-0002
       
    41 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
    42 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_complete_for_english
       
    43 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    44 END_TESTCASE APPINS-SCR-APPARC-API-0002
       
    45 
       
    46 
       
    47 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0003
       
    48 //! @SYMTestCaseDesc 		No view data exist for the nearest locale (subsession opened without locale)
       
    49 START_TESTCASE APPINS-SCR-APPARC-API-0003
       
    50 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage
       
    51 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_french
       
    52 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_noviewdatafornearestlanguage
       
    53 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_english
       
    54 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    55 END_TESTCASE APPINS-SCR-APPARC-API-0003
       
    56 
       
    57 
       
    58 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0004
       
    59 //! @SYMTestCaseDesc 		No app owned files exist for an appliction info (subsession opened without locale)
       
    60 START_TESTCASE APPINS-SCR-APPARC-API-0004
       
    61 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_onlylocalizedinfo
       
    62 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_noappownedfiles
       
    63 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    64 END_TESTCASE APPINS-SCR-APPARC-API-0004
       
    65 
       
    66 
       
    67 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0005
       
    68 //! @SYMTestCaseDesc 		multiple appliction registration info exist for the locale(subsession opened without locale).
       
    69 START_TESTCASE APPINS-SCR-APPARC-API-0005
       
    70 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_21
       
    71 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
    72 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage_english
       
    73 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_MultipleApp_NoLocale
       
    74 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    75 END_TESTCASE APPINS-SCR-APPARC-API-0005
       
    76 
       
    77 
       
    78 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0006
       
    79 //! @SYMTestCaseDesc 		multiple appliction registration info exist for the locale(subsession opened with locale).
       
    80 START_TESTCASE APPINS-SCR-APPARC-API-0006
       
    81 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info
       
    82 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
    83 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage_english
       
    84 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_MultipleApp_for_english
       
    85 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    86 END_TESTCASE APPINS-SCR-APPARC-API-0006
       
    87 
       
    88 
       
    89 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0007
       
    90 //! @SYMTestCaseDesc 		no corrosponding app reg info exist for the locale(subsession opened without locale).
       
    91 START_TESTCASE APPINS-SCR-APPARC-API-0007
       
    92 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_nolocalizedinfoforenglish
       
    93 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_NotExist
       
    94 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
    95 END_TESTCASE APPINS-SCR-APPARC-API-0007
       
    96 
       
    97 
       
    98 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0008
       
    99 //! @SYMTestCaseDesc 		Number of entries to be opened is negative(subsession opened with locale).
       
   100 START_TESTCASE APPINS-SCR-APPARC-API-0008
       
   101 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info
       
   102 RUN_TEST_STEP_RESULT -6 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_Negative_NoOfEntries
       
   103 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   104 END_TESTCASE APPINS-SCR-APPARC-API-0008
       
   105 
       
   106 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0009
       
   107 //! @SYMTestCaseDesc 		Compare app opaque data
       
   108 START_TESTCASE APPINS-SCR-APPARC-API-0009
       
   109 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_array_of_opaque_data_new
       
   110 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini test_app_opaque_data_1
       
   111 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini test_app_opaque_data_2
       
   112 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini test_app_opaque_data_3
       
   113 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini test_app_opaque_data_4
       
   114 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   115 END_TESTCASE APPINS-SCR-APPARC-API-0009
       
   116 
       
   117 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0014
       
   118 //! @SYMTestCaseDesc 		Appregistration data of current locale(english) for user defined AppUids.
       
   119 //! @SYMTestActions 		Add One(1) Appregistration data. Fetch Appregistration data for Three(3) user defined AppUids.
       
   120 //					 		[1 AppUid is present in DB, 2 AppUid not present].
       
   121 START_TESTCASE APPINS-SCR-APPARC-API-0014
       
   122 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
   123 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_complete_for_english_Test09
       
   124 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   125 END_TESTCASE APPINS-SCR-APPARC-API-0014
       
   126 
       
   127 
       
   128 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0010
       
   129 //! @SYMTestCaseDesc 		Appregistration data of current locale(english) for user defined AppUids. [No AppUid present in DB]
       
   130 //! @SYMTestActions 		Add no Appregistration data. Fetch Appregistration data for One(1) user defined AppUids.
       
   131 START_TESTCASE APPINS-SCR-APPARC-API-0010
       
   132 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_complete_for_english_Test10
       
   133 END_TESTCASE APPINS-SCR-APPARC-API-0010
       
   134 
       
   135 
       
   136 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0011
       
   137 //! @SYMTestCaseDesc 		multiple appliction registration info exist for user defined AppUid.
       
   138 //! @SYMTestActions 		Add Three(3) Appregistration data. Fetch Appregistration data for Two(2) user defined AppUids.
       
   139 //					 		[All 3 AppUid is present in DB].
       
   140 START_TESTCASE APPINS-SCR-APPARC-API-0011
       
   141 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info
       
   142 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
   143 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage_english
       
   144 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_MultipleApp_for_english_test11
       
   145 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   146 END_TESTCASE APPINS-SCR-APPARC-API-0011
       
   147 
       
   148 
       
   149 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0012
       
   150 //! @SYMTestCaseDesc 		Fetch AppRegistration data corresponding to user defined AppUids.
       
   151 //! @SYMTestActions 		Add Two(2) Appregistration data. Fetch Appregistration data for One(1) user
       
   152 //					 		defined AppUids which is not present in DB. [2 AppUid is present in DB, Requested AppUid not present].
       
   153 START_TESTCASE APPINS-SCR-APPARC-API-0012
       
   154 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info
       
   155 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage_english
       
   156 RUN_TEST_STEP 100 tscrapparc ScrGetApplicationRegistrationView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_MultipleApp_for_english_test12
       
   157 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   158 END_TESTCASE APPINS-SCR-APPARC-API-0012
       
   159 
       
   160 
       
   161 //! @SYMTestCaseID		APPINS-SCR-APPARC-API-0013
       
   162 //! @SYMTestCaseDesc 		Test for Concurrent Application Registration View Entry API
       
   163 //! @SYMTestActions 		Add Four(4) Appregistration data. Fetch Appregistration data for Two(2) Entries using 
       
   164 //					 		ApplicationRegistrationViewEntry API. Then fetch user defined AppUids.
       
   165 START_TESTCASE APPINS-SCR-APPARC-API-0013
       
   166 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_complete_for_english
       
   167 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_noviewdatafornearestlanguage_english
       
   168 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_4
       
   169 RUN_TEST_STEP 100 tscr SCRAddApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini add_app_reg_info_5
       
   170 RUN_TEST_STEP 100 tscrapparc ScrMultipleSubsessionsForAppRegistryView z:\tusif\tscr\tscr_appreginfo.ini ApplicationRegistrationData_MultipleApp_for_english_test13
       
   171 RUN_TEST_STEP 100 tscr SCRDeleteApplicationEntry z:\tusif\tscr\tscr_appreginfo.ini del_app_entry
       
   172 END_TESTCASE APPINS-SCR-APPARC-API-0013
       
   173 
       
   174