uiservicetab/vimpststorage/tsrc/vimpststorage_ut/conf/CVIMPSTStorageContact_UT.cfg
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 [Define]
       
     2 
       
     3 USERID nokia@nokia.com
       
     4 USERID1 sonyericsson@sony.com
       
     5 DISPLAYNAME connectingpeople
       
     6 DISPLAYNAME1 Lordaeron
       
     7 AVATARCONTENT jejamma jejamma
       
     8 NULL null
       
     9 
       
    10 UNKNOWN	EUnknown
       
    11 OFFLINE EOffline
       
    12 ONLINE  EOnline
       
    13 INVISIBLE EInvisible
       
    14 AWAY EAway
       
    15 BUSY EBusy
       
    16 ONPHONE EOnPhone
       
    17 DND EDoNotDisturb
       
    18 PENDING EPending
       
    19 BLOCKED EBlocked
       
    20 
       
    21 STATUSTEXT TheAngelFallsForMe
       
    22 
       
    23 POSITIVEINDEX 3
       
    24 NEGATIVEINDEX -3
       
    25 ZEROINDEX 0
       
    26 NULLINDEX 0
       
    27 
       
    28 [Enddefine]
       
    29 
       
    30  // Test Cases 1-8 , Test for the NewL function.
       
    31 
       
    32 [Test]
       
    33 title 1.CreateStorageContact-Valid Userid Valid DisplayName
       
    34 create CVIMPSTStorageContact_UT obj
       
    35 obj CreateStorageContact USERID DISPLAYNAME NULL
       
    36 delete obj
       
    37 [Endtest] 
       
    38 
       
    39 [Test]
       
    40 title 2.CreateStorageContact-Valid Userid Null DisplayName
       
    41 create CVIMPSTStorageContact_UT obj
       
    42 obj CreateStorageContact USERID NULL NULL
       
    43 delete obj
       
    44 [Endtest] 
       
    45 
       
    46 [Test]
       
    47 title 3.CreateStorageContact-Null Userid Valid DisplayName
       
    48 create CVIMPSTStorageContact_UT obj
       
    49 obj CreateStorageContact NULL DISPLAYNAME NULL
       
    50 delete obj
       
    51 [Endtest] 
       
    52 
       
    53 [Test]
       
    54 title 4.CreateStorageContact-Null Userid Null DisplayName
       
    55 create CVIMPSTStorageContact_UT obj
       
    56 obj CreateStorageContact NULL NULL NULL
       
    57 delete obj
       
    58 [Endtest] 
       
    59 
       
    60 [Test]
       
    61 title 5.CreateStorageContact-Valid Userid Valid DisplayName Null ContactLink
       
    62 create CVIMPSTStorageContact_UT obj
       
    63 obj CreateStorageContact USERID DISPLAYNAME CLINK
       
    64 delete obj
       
    65 [Endtest] 
       
    66 
       
    67 [Test]
       
    68 title 6.CreateStorageContact-Valid Userid Null DisplayName Null ContactLink
       
    69 create CVIMPSTStorageContact_UT obj
       
    70 obj CreateStorageContact USERID NULL CLINK
       
    71 delete obj
       
    72 [Endtest] 
       
    73 
       
    74 [Test]
       
    75 title 7.CreateStorageContact-Null Userid Valid DisplayName Null ContactLink
       
    76 create CVIMPSTStorageContact_UT obj
       
    77 obj CreateStorageContact NULL DISPLAYNAME CLINK
       
    78 delete obj
       
    79 [Endtest] 
       
    80 
       
    81 [Test]
       
    82 title 8.CreateStorageContact-Null Userid Null DisplayName Null ContactLink
       
    83 create CVIMPSTStorageContact_UT obj
       
    84 obj CreateStorageContact NULL NULL CLINK
       
    85 delete obj
       
    86 [Endtest] 
       
    87 
       
    88 // Test Cases 9-10, Test for UserId() and SetUserId () 
       
    89 
       
    90 [Test]
       
    91 title 9.SetGetUserId-ValidId
       
    92 create CVIMPSTStorageContact_UT obj
       
    93 obj SetGetUserId USERID1
       
    94 delete obj
       
    95 [Endtest]
       
    96 
       
    97 [Test]
       
    98 title 10.SetGetUserId-NullId
       
    99 create CVIMPSTStorageContact_UT obj
       
   100 obj SetGetUserId NULL
       
   101 delete obj
       
   102 [Endtest]
       
   103 
       
   104 // Test Cases 11-12, Test for Avatar() and SetAvatarContentL()
       
   105 
       
   106 [Test]
       
   107 title 11.SetAvatarContent-ValidContent
       
   108 create CVIMPSTStorageContact_UT obj
       
   109 obj SetAvatarContent AVATARCONTENT
       
   110 delete obj
       
   111 [Endtest]
       
   112 
       
   113 [Test]
       
   114 title 12.SetAvatarContent-NullContent
       
   115 create CVIMPSTStorageContact_UT obj
       
   116 obj SetAvatarContent NULL
       
   117 delete obj
       
   118 [Endtest]
       
   119 
       
   120 // Test Cases 13-14, Test for DisplayName() and SetDisplayName()
       
   121 
       
   122 [Test]
       
   123 title 13.SetGetDisplayName-ValidName
       
   124 create CVIMPSTStorageContact_UT obj
       
   125 obj SetGetDisplayName DISPLAYNAME1
       
   126 delete obj
       
   127 [Endtest]
       
   128 
       
   129 [Test]
       
   130 title 14.SetGetDisplayName-NullId
       
   131 create CVIMPSTStorageContact_UT obj
       
   132 obj SetGetDisplayName NULL
       
   133 delete obj
       
   134 [Endtest]
       
   135 
       
   136 // Test Cases 15-16, Test for OnlineStatus() and SetOnlineStatus()
       
   137 
       
   138 [Test]
       
   139 title 15.SetGetPresenceStatus-ValidState
       
   140 create CVIMPSTStorageContact_UT obj
       
   141 obj SetGetPresenceStatus ONPHONE
       
   142 delete obj
       
   143 [Endtest]
       
   144 
       
   145 [Test]
       
   146 title 16.SetGetPresenceStatus-InValidState
       
   147 create CVIMPSTStorageContact_UT obj
       
   148 obj SetGetPresenceStatus NULL
       
   149 delete obj
       
   150 [Endtest]
       
   151 
       
   152 // Test Cases 17-18, Test for StatusText() and SetStatusText()
       
   153 
       
   154 [Test]
       
   155 title 17.SetGetStatusText-ValidText
       
   156 create CVIMPSTStorageContact_UT obj
       
   157 obj SetGetStatusText STATUSTEXT
       
   158 delete obj
       
   159 [Endtest]
       
   160 
       
   161 [Test]
       
   162 title 18.SetGetStatusText-NullText
       
   163 create CVIMPSTStorageContact_UT obj
       
   164 obj SetGetStatusText NULL
       
   165 delete obj
       
   166 [Endtest]
       
   167 
       
   168 // Test Cases 19-22, Test for AvatarIndex() and SetAvatarIndex()
       
   169 
       
   170 [Test]
       
   171 title 19.SetGetAvatarIndex-PositiveIndex
       
   172 create CVIMPSTStorageContact_UT obj
       
   173 obj SetGetAvatarIndex POSITIVEINDEX
       
   174 delete obj
       
   175 [Endtest]
       
   176 
       
   177 [Test]
       
   178 title 20.SetGetAvatarIndex-NegativeIndex
       
   179 create CVIMPSTStorageContact_UT obj
       
   180 obj SetGetAvatarIndex NEGATIVEINDEX
       
   181 delete obj
       
   182 [Endtest]
       
   183 
       
   184 [Test]
       
   185 title 21.SetGetAvatarIndex-ZeroIndex
       
   186 create CVIMPSTStorageContact_UT obj
       
   187 obj SetGetAvatarIndex ZEROINDEX
       
   188 delete obj
       
   189 [Endtest]
       
   190 
       
   191 [Test]
       
   192 title 22.SetGetAvatarIndex-NullIndex
       
   193 create CVIMPSTStorageContact_UT obj
       
   194 obj SetGetAvatarIndex NULLINDEX
       
   195 delete obj
       
   196 [Endtest]
       
   197 
       
   198 // Test case 23, Test for ContactLink()
       
   199 
       
   200 [Test]
       
   201 title 23.ContactLink
       
   202 create CVIMPSTStorageContact_UT obj
       
   203 obj ContactLink 
       
   204 delete obj
       
   205 [Endtest]