videofeeds/server/tsrc/VCXServiceTest/conf/VCXServiceTest.cfg
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:21:12 +0200
changeset 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201001 Kit: 201003

#***********************************************************************************
#
# STIF test script file for testing services.
#
#***********************************************************************************

#
# ******************************
# **** CIptvServices BLOCKS ****
# ******************************
#
# CreateServices
#
# DestroyServices
#
# ServicesAdd
# Adds the current instance of CIptvService service into instance of CIptvServices
# and adds a backup copy into member array
# Returns system wide error code
#
# ServicesCount a
# a = expected count
# Compares the count of services to the expected count
# Returns system wide error code
#
# ServicesInternalize
# Internalizes CIptvServices and stores result binary data into a member pointer
# Returns system wide error code
#
# ServicesExternalize
# Externalizes CIptvServices from a member pointer
# Returns system wide error code
#
# ServicesGetService a
# a = index
# Gets a service from CIptvServices and compares it to a backup copy
# Returns system wide error code
#
# ServicesGetServiceByRef a
# a = index
# Gets a service from CIptvServices and compares it to a backup copy
# Returns system wide error code
#
# ******************************
# **** CIptvService BLOCKS *****
# ******************************
#
# CreateService
#
# DestroyService
#
# SetId a
# a = id
# returns 0 or error code
#
# SetName a
# a = name, can contain spaces
# returns 0 or error code
#
# SetAddress a
# a = url address
# returns 0 or error code
#
# SetIconPath a
# a = path
# returns 0 or error code
#
# SetEpgPluginUid a
# a = uid
# returns 0 or error code
#
# SetVodPluginUid a
# a = uid
# returns 0 or error code
#
# SetIptvPluginUid a
# a = uid
# returns 0 or error code
#
# SetType a
# a = service type
# returns 0 or error code
#
# CreateIapList a
# a = count of iaps to add in the list
# returns 0 or error code
#
# CheckIapList a
# a = expected count of iaps in the list
# returns 0 or error code
#
# SetUserName a
# a = user name, can contain spaces
# returns 0 or error code
#
# SetPassword a
# a = password
# returns 0 or error code
#
# SetDesc a
# a = desc, can contain spaces
# returns 0 or error code
#
# SetFlags a
# a = flags separated by spaces
# returns 0 or error code
#
# SetApplicationUid a
# a = uid
# returns 0 or error code
#
# SetDisplayOrder a
# a = display order
# returns 0 or error code
#
# SetProviderId a
# a = provider id
# returns 0 or error code
#
# SetAccountManagementUrl a
# a = url
# returns 0 or error code
#
# DoExternalize a
# a = BUFFER_SIZE1 (optional), buffer of size 1 will be used to to test error handling
#	Externalizes data to class member buffer
# returns 0 or error code
#
# DoInternalize a
# a = BUFFER_SIZE1 (optional), buffer of size 1 will be used to to test error handling
#	Internalizes data from class member buffer, deletes the buffer afterwards
# Assumes that IptvService has not been changed between this call and DoExternalize
# returns 0 or error code
#
# SetL a
# a = INVALIDBUFFER (optional), to test error handling
# returns 0 or error code
#
# ******************************************************
# ****************** DEFINATIONS: **********************
# ******************************************************

[StifSettings]
CapsModifier= IptvTestClientApiCapsMod.exe
[EndStifSettings]

[Define]

MAX_UID 2147483647
BUFFER_SIZE1 1
INVALIDBUFFER 1
BAD_DATA 1

# Service types
EVod 0
ELiveTv 1
EVodCast 2
EBrowser 3
EVideoRemote 4
EApplication 5
EOther 6

# Service flags
NOFLAGS 0
ESelected 1
EReadOnly 2
EMainService 4
EConnectionApproved 8
EReadOnlyIaps 16

KERRNONE 0
KERRNOTFOUND -1
KERRGENERAL -2
KERRNOMEMORY -4
KERRARGUMENT -6
KERRBADHANDLE -8
KERROVERFLOW -9
KERRUNDERFLOW -10
KERRNOTREADY -18
KERRUNKNOWN -19
KERRCORRUPT -20
KERRTIMEDOUT -33
KERRTOOBIG -40
[Enddefine]

# ******************************************************
# ****************** TEST CASES: ***********************
# ******************************************************

#------------------------------------------------------------------------------------
#
# Test adding instance of CIptvService into instance of CIptvServices.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9000 Services - Add and count
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 45
ServiceTest SetName Service name
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest CreateServices
ServiceTest ServicesAdd
ServiceTest SetId 3
ServiceTest SetName Toinen Service
ServiceTest ServicesAdd
ServiceTest SetId 9
ServiceTest SetName MTV KOLOME
ServiceTest ServicesAdd
ServiceTest ServicesCount 3
ServiceTest DestroyServices
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test externalizing and internalizing an instance of CIptvServices.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9001 Services - Externalize and Internalize
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 45
ServiceTest SetName Service name
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest CreateServices
ServiceTest ServicesAdd
ServiceTest SetId 3
ServiceTest SetName Toinen Service
ServiceTest ServicesAdd
ServiceTest SetId 9
ServiceTest SetName MTV KOLOME
ServiceTest ServicesAdd
ServiceTest ServicesExternalize
ServiceTest ServicesInternalize
ServiceTest DestroyServices
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test GetService method.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9002 Services - GetService
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 45
ServiceTest SetName Service name
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest CreateServices
ServiceTest ServicesAdd
ServiceTest SetId 3
ServiceTest SetName Toinen Service
ServiceTest ServicesAdd
ServiceTest SetId 9
ServiceTest SetName MTV KOLOME
ServiceTest ServicesAdd
ServiceTest ServicesGetService 0
ServiceTest DestroyServices
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test GetServiceByRef method.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9003 Services - GetServiceByRef
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 45
ServiceTest SetName Service name
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest CreateServices
ServiceTest ServicesAdd
ServiceTest SetId 3
ServiceTest SetName Toinen Service
ServiceTest ServicesAdd
ServiceTest SetId 9
ServiceTest SetName MTV KOLOME
ServiceTest ServicesAdd
ServiceTest ServicesGetServiceByRef 1
ServiceTest ServicesGetServiceByRef 2
ServiceTest DestroyServices
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test getting count of services of CIptvServices when it has no services.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9004 Services empty - Count
create VCXServiceTest ServiceTest
ServiceTest CreateServices
ServiceTest ServicesCount 0
ServiceTest DestroyServices
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test externalizing and internalizing CIptvServices when it has no services.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9005 Services empty - Externalize and Internalize
create VCXServiceTest ServiceTest
ServiceTest CreateServices
ServiceTest ServicesExternalize
ServiceTest ServicesInternalize
ServiceTest DestroyServices
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test Getting a service from CIptvServices when it has no services.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9006 Services empty - GetService
create VCXServiceTest ServiceTest
ServiceTest CreateServices
allownextresult KERRBADHANDLE
ServiceTest ServicesGetService 1
ServiceTest DestroyServices
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test getting service by reference from CIptvServices when it has no services.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9007 Services empty - GetServiceByRef
create VCXServiceTest ServiceTest
ServiceTest CreateServices
allownextresult KERRGENERAL
ServiceTest ServicesGetServiceByRef 1
ServiceTest DestroyServices
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test CIptvServices methods 50 times.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9008 Services - Stress test with 50 services
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest CreateServices
loop 50
ServiceTest SetId LOOP_COUNTER
ServiceTest SetName Service number LOOP_COUNTER
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest ServicesAdd
ServiceTest ServicesGetService LOOP_COUNTER
ServiceTest ServicesExternalize
ServiceTest ServicesInternalize
endloop
ServiceTest ServicesCount 50
ServiceTest ServicesGetService 1
ServiceTest ServicesGetService 20
ServiceTest ServicesGetService 48
ServiceTest ServicesGetServiceByRef 22
ServiceTest ServicesGetServiceByRef 45
ServiceTest DestroyServices
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting id of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9009 Set id
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 2147483647
ServiceTest SetId 0
ServiceTest SetId 5454363
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting name of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9010 Set name
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetName Service name with spaces
ServiceTest SetName Service_Name
ServiceTest SetName A_Little_Longer_Service_Name
ServiceTest SetName Even_Longer_Service_Name_Actually_this_is_the_maximum_length_of_service_name_1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting address of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9011 Set address
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetAddress http:\/\/www.nokia.fi/services
ServiceTest SetAddress http:\/\/www.nokia.fi/services/the_longest_allowed_service_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_service_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_service_address_is_very_long_we_need_some_repeat
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting icon path of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9012 Set icon path
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetIconPath c:\system\Apps
ServiceTest SetIconPath c:\system\Apps\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting EPG plugin UID of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9013 Set EPG plugin UID
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetEpgPluginUid MAX_UID
ServiceTest SetEpgPluginUid 0
ServiceTest SetEpgPluginUid 145326
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting VOD plugin UID of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9014 Set VOD plugin UID
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetVodPluginUid MAX_UID
ServiceTest SetVodPluginUid 0
ServiceTest SetVodPluginUid 145326
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting IPTV plugin UID of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9015 Set IPTV Plugin UID
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetIptvPluginUid MAX_UID
ServiceTest SetIptvPluginUid 0
ServiceTest SetIptvPluginUid 145326
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting type of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9016 Set type
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetType EVod
ServiceTest SetType EBrowser
ServiceTest SetType EOther
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test creating IAP list and adding the list to CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9017 Create Iap list
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest CreateIapList 10
ServiceTest CheckIapList 10
ServiceTest DestroyService
delete ServiceTest
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest CreateIapList 0
ServiceTest CheckIapList 0
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test creating IAP list with too many iaps and adding the list to CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9041 SetIapList with too many iaps
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRGENERAL
ServiceTest CreateIapList 20
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting user name of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9018 Set user name
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetUserName User Name
ServiceTest SetUserName User Name Maximum length test1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting password of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9019 Set password
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetPassword 1PassWorD12345a
ServiceTest SetPassword PassWordMaximumLength123451234
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting description of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9020 Set desc
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetDesc Description of the service
ServiceTest SetDesc Maximum length of description Maximum length of description Maximum length Maximum length of description Maximum length of description Maximum length of description Maximum length of description 12
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting flags of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9021 Set flags
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetFlags 0
ServiceTest SetFlags ESelected
ServiceTest SetFlags ESelected EReadOnly EMainService EConnectionApproved EReadOnlyIaps
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting application UID of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9022 Set application uid
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetApplicationUid MAX_UID
ServiceTest SetApplicationUid 0
ServiceTest SetApplicationUid 145326
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting display order of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9023 Set display order
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetDisplayOrder 0
ServiceTest SetDisplayOrder 435435
ServiceTest SetDisplayOrder 2147483647
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting provider id of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9024 Set provider id
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetProviderId providerid1234
ServiceTest SetProviderId maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_12354
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting account management URL of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9025 Set account management URL
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test SetL method id of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9026 SetL
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetL
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test internalizing and externalizing CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9027 Do externalize and internalize
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetId 45
ServiceTest SetName Service name
ServiceTest SetAddress http:\/\/www.nokia.fi/service_address
ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg
ServiceTest SetEpgPluginUid 234
ServiceTest SetVodPluginUid 67236
ServiceTest SetIptvPluginUid 1234
ServiceTest SetType EVodCast
ServiceTest CreateIapList 10
ServiceTest SetUserName Johannes
ServiceTest SetPassword SalasaNa234
ServiceTest SetDesc Service description
ServiceTest SetFlags EReadOnly EConnectionApproved
ServiceTest SetApplicationUid 43549
ServiceTest SetDisplayOrder 8
ServiceTest SetProviderId nokia1videos
ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments
ServiceTest DoExternalize
ServiceTest DoInternalize
ServiceTest CheckIapList 10
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting name of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9028 Set too long name
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetName THIS_IS_TOO_LONG_TEXT_Even_Longer_Service_Name_Actually_this_is_the_maximum_length_of_service_name_1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting address of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9029 Set too long address
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetAddress http:\/\/TOO/LONG_/URL_TESTING/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting too long icon path of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9030 Set too long icon path
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetIconPath c:\TOO\LONG\PATH\THIS\IS\CAPITAL\LETTERS\system\Apps\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting invalid type of CIptvService.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9031 Set invalid type
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRTOOBIG
ServiceTest SetType 20
allownextresult KERRTOOBIG
ServiceTest SetType -20
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting user name of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9032 Set too long user name
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetUserName THIS IS TOO LONG TEXT User Name Maximum length test1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting password of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9033 Set too long password
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetPassword THIS_IS_TOO_LONG_TEXT_PassWordMaximumLength123451234
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting description of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9034 Set too long desc
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRNOMEMORY
ServiceTest SetDesc THIS IS TOO LONG TEXT Maximum length of description Maximum length of description Maximum length Maximum length of description Maximum length of description Maximum length of description Maximum length of description 12
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting flags of CIptvService with invalid values.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9035 Set invalid flags
create VCXServiceTest ServiceTest
ServiceTest CreateService
ServiceTest SetFlags 20 21555
ServiceTest SetFlags -8
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test provider id of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9036 Set invalid provider id
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERROVERFLOW
ServiceTest SetProviderId THIS_IS_TOO_LONG_TEXT_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_12354
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test setting account management URL of CIptvService with too long text.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9037 Too long account management url
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERROVERFLOW
ServiceTest SetAccountManagementUrl http:\/\/TOO/LONG_/TEXT/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test SetL method of CIptvService with invalid data.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9038 SetL with invalid data
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRGENERAL
ServiceTest SetL INVALIDBUFFER
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test externalizing CIptvService with too small buffer.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9039 Do externalize with too small buffer
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRGENERAL
ServiceTest DoExternalize BUFFER_SIZE1
ServiceTest DestroyService
delete ServiceTest
[Endtest]

#------------------------------------------------------------------------------------
#
# Test internalizing CIptvService with invalid data.
#
# CaseClass: core
#------------------------------------------------------------------------------------
[Test]
title ET9040 Do internalize only with invalid data in buffer
create VCXServiceTest ServiceTest
ServiceTest CreateService
allownextresult KERRGENERAL
ServiceTest DoInternalize BAD_DATA
ServiceTest DestroyService
delete ServiceTest
[Endtest]