videofeeds/server/tsrc/VCXVodContentApiTest/conf/VCXVodContentApiTestParental.cfg
branchRCL_3
changeset 57 befca0ec475f
equal deleted inserted replaced
56:839377eedc2b 57:befca0ec475f
       
     1 #***********************************************************************************
       
     2 #
       
     3 # STIF test script file for testing VOD content client API.
       
     4 #
       
     5 #***********************************************************************************
       
     6 
       
     7 [StifSettings]
       
     8 CapsModifier= IptvTestClientApiCapsMod.exe
       
     9 [EndStifSettings]
       
    10 
       
    11 [Define]
       
    12 INCLUDE c:\testframework\VCXConsts.inc
       
    13 INCLUDE c:\testframework\VCXErrors.inc
       
    14 INCLUDE c:\testframework\VCXVodContentApiTest.inc
       
    15 INCLUDE c:\testframework\VCXServiceNames.inc
       
    16 INCLUDE c:\testframework\VCXServiceUpdating.inc
       
    17 [Enddefine]
       
    18 
       
    19 #------------------------------------------------------------------------------------
       
    20 #
       
    21 # Setup services in service database and delete the EPG db.
       
    22 #
       
    23 #------------------------------------------------------------------------------------
       
    24 [Test]
       
    25 title ET11899 <not a test> Setup parental control test services
       
    26 
       
    27 create VCXTestUtilModule Util
       
    28 // Copies some known 3G AP to "Internet" destination with "Internet" name for the AP.
       
    29 Util CopyMethod "Internet" "Internet" "Internet"
       
    30 Util SetMethodPriority DEFAULT_DEST 3G_AP 0
       
    31 Util SetUsedDestination DEFAULT_DEST
       
    32 // Disable connection dialog for "Internet" destination.
       
    33 Util SetConnectionMethodIntAttribute "Internet" "Internet" 507 2 // 507 is ECmSeamlessnessLevel
       
    34 Util SetDefaultIapCenrep
       
    35 delete Util
       
    36 
       
    37 pause PAUSE
       
    38 create VCXServiceManagementApiTest ServUtil
       
    39 ServUtil Create
       
    40 ServUtil DeleteAllServices SYNC
       
    41 
       
    42 ServUtil AddHardCodedService 	ASYNC SERVICE_9	 	3G_AP 1 10
       
    43 ServUtil UpdateServiceField		ASYNC SERVICE_9 	EAddress 	"http:\/\/193.65.182.78/ecg_parental_control.xml"
       
    44 ServUtil UpdateServiceField 	ASYNC	SERVICE_9		ESetIapList WLAN_AP 1 3G_AP 1
       
    45 //ServUtil UpdateServiceField		ASYNC SERVICE_9 	EAddress 	"http:\/\/193.65.182.78/EpgRatingTst.xml"
       
    46 
       
    47 ServUtil UpdateServiceField		ASYNC SERVICE_9 	EName 	EXTRA_SERVICE_4
       
    48 
       
    49 ServUtil GetServices SYNC 0 250
       
    50 
       
    51 ServUtil Destroy
       
    52 delete ServUtil
       
    53 pause 3000
       
    54 [Endtest]
       
    55 
       
    56 #------------------------------------------------------------------------------------
       
    57 #
       
    58 # Test parental control.
       
    59 #
       
    60 #------------------------------------------------------------------------------------
       
    61 [Test]
       
    62 title ET11801 UpdateEcg, service with media rating
       
    63 pause PAUSE
       
    64 create VCXTestUtilModule Util
       
    65 Util CreateMobilecrashWatcher
       
    66 create VCXVodContentApiTest test
       
    67 test SetParentalControlAge 0
       
    68 test Create EXTRA_SERVICE_4
       
    69 test SelectIap DEFAULT_AP
       
    70 test UpdateEcg
       
    71 waittestclass test
       
    72 test Destroy
       
    73 delete test
       
    74 Util CheckMobilecrashes
       
    75 delete Util
       
    76 [Endtest]
       
    77 
       
    78 #------------------------------------------------------------------------------------
       
    79 #
       
    80 # Test parental control.
       
    81 #
       
    82 #------------------------------------------------------------------------------------
       
    83 [Test]
       
    84 title ET11802 Parental control age 0, get content
       
    85 create VCXTestUtilModule Util
       
    86 Util CreateMobilecrashWatcher
       
    87 pause PAUSE
       
    88 create VCXVodContentApiTest test
       
    89 test SetParentalControlAge 0
       
    90 test Create EXTRA_SERVICE_4
       
    91 test EnableVerifying ET11802
       
    92 test EcgEcgAllList "" 0 120
       
    93 test ContentCount 35
       
    94 //test Verify ET11802
       
    95 test Destroy
       
    96 delete test
       
    97 Util CheckMobilecrashes
       
    98 delete Util
       
    99 [Endtest]
       
   100 
       
   101 #------------------------------------------------------------------------------------
       
   102 #
       
   103 # Test parental control.
       
   104 #
       
   105 #------------------------------------------------------------------------------------
       
   106 [Test]
       
   107 title ET11803 Parental control age -2, get content
       
   108 create VCXTestUtilModule Util
       
   109 Util CreateMobilecrashWatcher
       
   110 pause PAUSE
       
   111 create VCXVodContentApiTest test
       
   112 test SetParentalControlAge -2
       
   113 test Create EXTRA_SERVICE_4
       
   114 test EnableVerifying ET11803
       
   115 test EcgEcgAllList "" 0 120
       
   116 test ContentCount 35
       
   117 //test Verify ET11803
       
   118 test Destroy
       
   119 delete test
       
   120 Util CheckMobilecrashes
       
   121 delete Util
       
   122 [Endtest]
       
   123 
       
   124 #------------------------------------------------------------------------------------
       
   125 #
       
   126 # Test parental control.
       
   127 #
       
   128 #------------------------------------------------------------------------------------
       
   129 [Test]
       
   130 title ET11804 Parental control age 18, get content
       
   131 create VCXTestUtilModule Util
       
   132 Util CreateMobilecrashWatcher
       
   133 pause PAUSE
       
   134 create VCXVodContentApiTest test
       
   135 test SetParentalControlAge 18
       
   136 test Create EXTRA_SERVICE_4
       
   137 test EnableVerifying ET11804
       
   138 test EcgEcgAllList "" 0 120
       
   139 test ContentCount 28
       
   140 //test Verify ET11804
       
   141 test Destroy
       
   142 delete test
       
   143 Util CheckMobilecrashes
       
   144 delete Util
       
   145 [Endtest]
       
   146 
       
   147 #------------------------------------------------------------------------------------
       
   148 #
       
   149 # Test parental control.
       
   150 #
       
   151 #------------------------------------------------------------------------------------
       
   152 [Test]
       
   153 title ET11805 Parental control age 30, get content
       
   154 create VCXTestUtilModule Util
       
   155 Util CreateMobilecrashWatcher
       
   156 pause PAUSE
       
   157 create VCXVodContentApiTest test
       
   158 test SetParentalControlAge 30
       
   159 test Create EXTRA_SERVICE_4
       
   160 test EnableVerifying ET11805
       
   161 test EcgEcgAllList "" 0 120
       
   162 test ContentCount 35
       
   163 //test Verify ET11805
       
   164 test Destroy
       
   165 delete test
       
   166 Util CheckMobilecrashes
       
   167 delete Util
       
   168 [Endtest]
       
   169 
       
   170 #------------------------------------------------------------------------------------
       
   171 #
       
   172 # Test parental control.
       
   173 #
       
   174 #------------------------------------------------------------------------------------
       
   175 [Test]
       
   176 title ET11806 Parental control age 999999, get content
       
   177 create VCXTestUtilModule Util
       
   178 Util CreateMobilecrashWatcher
       
   179 pause PAUSE
       
   180 create VCXVodContentApiTest test
       
   181 test SetParentalControlAge 30
       
   182 test Create EXTRA_SERVICE_4
       
   183 test EnableVerifying ET11806
       
   184 test EcgEcgAllList "" 0 120
       
   185 test ContentCount 35
       
   186 //test Verify ET11806
       
   187 test Destroy
       
   188 delete test
       
   189 Util CheckMobilecrashes
       
   190 delete Util
       
   191 [Endtest]
       
   192 
       
   193 #------------------------------------------------------------------------------------
       
   194 #
       
   195 # Test parental control.
       
   196 # see IPTV_Engine\internal\docs\AutomaticDataVerifying.txt how to verify is automated with the log.
       
   197 #
       
   198 #------------------------------------------------------------------------------------
       
   199 [Test]
       
   200 title ET11807 Parental control age 16, get content
       
   201 create VCXTestUtilModule Util
       
   202 Util CreateMobilecrashWatcher
       
   203 pause PAUSE
       
   204 create VCXVodContentApiTest test
       
   205 test SetParentalControlAge 16
       
   206 test Create EXTRA_SERVICE_4
       
   207 test EnableVerifying ET11807
       
   208 test EcgEcgAllList "" 0 120
       
   209 test ContentCount 26
       
   210 //test Verify ET11807
       
   211 test SetParentalControlAge 0
       
   212 test Destroy
       
   213 delete test
       
   214 Util CheckMobilecrashes
       
   215 delete Util
       
   216 [Endtest]
       
   217 
       
   218 #------------------------------------------------------------------------------------
       
   219 #
       
   220 # Test parental control.
       
   221 #
       
   222 #------------------------------------------------------------------------------------
       
   223 [Test]
       
   224 title ET11808 Parental control age 14, get content
       
   225 pause PAUSE
       
   226 create VCXVodContentApiTest test
       
   227 test SetParentalControlAge 14
       
   228 test Create EXTRA_SERVICE_4
       
   229 test EnableVerifying ET11808
       
   230 test EcgEcgAllList "" 0 120
       
   231 test ContentCount 24
       
   232 //test Verify ET11808
       
   233 test SetParentalControlAge 0
       
   234 test Destroy
       
   235 delete test
       
   236 [Endtest]
       
   237 
       
   238 #------------------------------------------------------------------------------------
       
   239 #
       
   240 # Test parental control.
       
   241 #
       
   242 #------------------------------------------------------------------------------------
       
   243 [Test]
       
   244 title ET11809 Change parental control during ECG update
       
   245 pause PAUSE
       
   246 create VCXTestUtilModule Util
       
   247 Util CreateMobilecrashWatcher
       
   248 create VCXVodContentApiTest test
       
   249 test SetParentalControlAge 0
       
   250 test Create EXTRA_SERVICE_4
       
   251 test SelectIap DEFAULT_AP
       
   252 test UpdateEcg
       
   253 pause 1000
       
   254 test SetParentalControlAge 30
       
   255 pause 1000
       
   256 test SetParentalControlAge 0
       
   257 waittestclass test
       
   258 test Destroy
       
   259 delete test
       
   260 Util CheckMobilecrashes
       
   261 delete Util
       
   262 [Endtest]