My favorites | Sign in
Google
                
Search
for
Updated Feb 04, 2010 by goosemanjack
ComplianceTestsDirectory  

Compliance Tests Directory

Detailed description of each test in the directory



Description Test if you can retrieve profile of VIEWER/OWNER.
Priority P0
Spec newFetchPersonRequest
Request newFetchPersonRequest('VIEWER', 'viewer');
newFetchPersonRequest('VIEWER', 'viewer');
Pre-requisite Run test as viewer is owner
Expected Results viewer and owner profile

Description Test if view all parameters of opensocial.Person.Field for VIEWER/OWNER profile.
Priority P0
Spec newFetchPersonRequest
PROFILE_DETAILS
Request newFetchPersonRequest('VIEWER', 'viewer');
newFetchPersonRequest('VIEWER', 'viewer');
Pre-requisite Run test as viewer is owner
Expected Results Shouldn't throw exception. Viewer and owner profile with all supported fields

Description Test if gadget has permission as VIEWER
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can call requestPermission for VIEWER for test reason
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can call requestPermission for VIEWER for test reason
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view address details of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view URLs information for VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view NAME of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view CURRENT_LOCATION of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view GENDER details of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view BODY_TYPE of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view SCHOOLS of VIEWER profile.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view address information of OWNER profile
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view BODY_TYPE of OWNER profile
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view SCHOOLS of OWNER profile
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view URLS of OWNER profile
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view GENDER information of OWNER profile
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can view profile for given ID - numeric value
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you get error while trying to fetch profile without passing any parameter.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's friends information
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's friends basic profile detail.
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's friends all details.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's top friends
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's friends who HAS_APPS
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve viewer's friends information and access it as pages, 1 per page.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve OWNER's friends information
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve OWNER's friends' profile details
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve OWNER's top friends
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve subset of owner's friends i.e. friends from entry 3 to 5 from returned list
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve more than 20 friends of OWNER
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve friends of OWNER who HAS_APP
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve upto 100 friends of OWNER who HAS_APP
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve friends of profile with given id
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve friends profiles for list of ids with HAS_APP=true
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve friends profiles for list of ids with HAS_APP=false
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve friends profiles for list of ids
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve VIEWER information using newFetchPeopleRequest()
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you can retrieve OWNER information using newFetchPeopleRequest()
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you get error for empty call to newFetchPeopleRequest()
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you get error for passing wrong params to newFetchPeopleRequest()
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you get error for trying to fetch VIEWER's friends page that's out of bounds. i.e. accessing 1000th page where only 10 pages exists
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if you get error for trying to fetch OWNER's friends page that's out of bounds. i.e. accessing 1000th page where only 10 pages exists
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if fetching OWNER_FRIENDS gives collection object and collection has no empty record
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if fetching OWNER_FRIENDS gives collection object and collection size is right
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if fetching OWNER_FRIENDS gives collection object getOffset gives the offset we assigned.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Test if fetching OWNER_FRIENDS gives collection object and preserves huge offset we have set.
Priority P2
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT



Description Test for containers that don't support fetching activities. Tries to fetch activities for a VIEWER, and tests that the dataResponse is not null and gets an error, as this is for containers that don't support it
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(VIEWER)
Expected Results Data error

Description Test for containers that don't support fetching activities. Tries to fetch activities for a VIEWER_FRIENDS, and tests that the dataResponse is not null and gets an error, as this is for containers that don't support it
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(VIEWER_FRIENDS)
Expected Results Data error

Description Test for containers that don't support fetching activities. Tries to fetch activities for a OWNER, and tests that the dataResponse is not null and gets an error, as this is for containers that don't support it
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(OWNER)
Expected Results Data error

Description Test for containers that don't support fetching activities. Tries to fetch activities for a OWNER_FRIENDS, and tests that the dataResponse is not null and gets an error, as this is for containers that don't support it
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(OWNER_FRIENDS)
Expected Results Data error

Description Test for containers that don't support fetching activities. Tries to fetch activities for a INVALID_ID, and tests that the dataResponse is not null and gets an error, as this is for containers that don't support it
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(INVALID_ID)
Expected Results Data error

Description Tries to fetch activities for a OWNERS_FRIENDS if container supports fetching activities.
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest(OWNER_FRIENDS)
Expected Results Fetches activities for OWNERS_FRIENDS.

Description Create activity using title, verify if fetching is supported.
Priority P1
Spec requestCreateActivity
opensocial.CreateActivityPriority.HIGH
Request requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH)
Expected Results Fetches an activity using title

Description Tests if you can create activity using title-id without title.
Priority P1
Spec requestCreateActivity
opensocial.CreateActivityPriority.HIGH
Request requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH)
Expected Results Creates an activity using title-id without title.

Description Tests if it's possible to create activity using template and template params. It tries to verify if fetching activities is supported.
Priority P1
Spec requestCreateActivity
opensocial.CreateActivityPriority.HIGH
Request requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH)
Expected Results Fetches activities created using template and template params

Description Tests if it's possible to create activity using template. It tries to verify if fetching activities is supported.
Priority P1
Spec requestCreateActivity
opensocial.CreateActivityPriority.HIGH
Request requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH)
Expected Results Fetches activities created using template.

Description Tests if it's possible to create activity with list of Activity attributes in the params map. Only checks those that are supported.
Priority P1
Spec newActivity
Request newActivity(params)
Expected Results $EXPECTED_RESULT

Description Tests if it's possible to create activity with stream params. STREAM_TITLE, STREAM_URL, STREAM_SOURCE_URL, STREAM_FAVICON_URL
Priority P1
Spec newActivity
Request newActivity(params)
Expected Results Creates an activity with specified fields.

Description Test that creating activity with read-only fields has no side effects. Container should ignore read only fields.
Priority P1
Spec newActivity
requestCreateActivity
Request newActivity(params)
requestCreateActivity();
Expected Results Read only fields has no side effects

Description Test that it's possible to creating activity with media items. It shouldn't fail.
Priority P1
Spec requestCreateActivity
opensocial.CreateActivityPriority.html#HIGH
Request newActivity(params);
requestCreateActivity();
Expected Results Activity created with media items.

Description Test if trying to fetch an activity without any parameter throws an error.
Priority P2
Spec newFetchActivitiesRequest
Request newFetchActivitiesRequest()
Expected Results Error expected.

Description Test if trying to create an activity without title throws an error.
Priority P2
Spec requestCreateActivity
newActivity
Request requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH);
newActivity();
Expected Results Activity created without title.

Description Test if trying to create an activity with invalid paramkeys throws an error.
Priority P2
Spec requestCreateActivity
newActivity
Request newFetchActivitiesRequest();
newActivity();
Expected Results $EXPECTED_RESULT

Description Test if trying to create an activity with empty title throws an error.
Priority P2
Spec requestCreateActivity
newActivity
Request newActivity({'title' : ''});
requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH);
Expected Results Expected error.



Description Creates an item to request app data for some id and with a key which fetches the values. Validates the returned data, if it contains the value for the specified key
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER, viwerKey')
Expected Results Fetches app data for VIEWER with specified viewerKey

Description Creates an item to request app data for some id and with as key which fetches all the values. Validates the returned data, if it contains the value for the specified key
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(ownerId,'');
Expected Results Fetches all app data for ownerId with as Key

Description Creates an item to request app data for VIEWER and with as key which fetches all the values. Validates the returned data, if it contains the value for the specified key
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(VIEWER,'');
Expected Results Fetches all app data for VIEWER with as Key

Description Tests if information is updated for the VIEWERwith the keys. Fetch for the information by passing the same keys which were used for updating.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, id + 'dataKey1',personalValue);
newFetchPersonAppDataRequest(VIEWER, + '_dataKey1',id + '_dataKey2');
Expected Results Fetch the VIEWER with the keys which were used for updating.

Description Tests if information is updated for the specified VIEWER with the i18n keys. Fetch for the information by passing the same keys which were used for updating.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, 'i18nKey_app004',data);
newFetchPersonAppDataRequest(VIEWER, i18nKey_app004);
Expected Results Fetch the VIEWER with the i18n keys which were used for updating

Description Tests if information can be retreived from OWNER_FRIENDS with the given keys.
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(OWNER_FRIENDS, '');
Expected Results Retrieves Owner friends

Description Tests if information can be retreived from VIEWER_FRIENDS with as key.
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(VIEWER_FRIENDS, '')
Expected Results Retrieves viewer friends

Description Updating data for some key, with an empty string value, should remove the key from the user app data.
Priority undefined
Spec newUpdatePersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, key, value);
Expected Results Removes the key from user app data

Description Updating data using (all keys), with an empty string value, should remove all keys from the user app data.
Priority undefined
Spec newUpdatePersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, '' , value);
Expected Results Removes the all keys from user app data

Description Tests if information is fetched from VIEWER and OWNER_FRIENDS for the specified fields. Validates the data response for every key
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest('VIEWER', fields);
newFetchPersonAppDataRequest('OWNER_FRIENDS', fields);
Expected Results Retrieves VIEWER and OWNER_FRIENDS for the specified fields.

Description Creates an item to request app data for OWNER and with some key which fetches values. Validates the returned data, if it contains the value for the specified key
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest('OWNER', ownerKey_app100);
newFetchPersonAppDataRequest('OWNER', ownerKey_app100);
Expected Results Retrieves the OWNER.

Description Tests if data can be fetched for an non-existing key. Checks that there is no data for the non-existing key in the response.
Priority undefined
Spec newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest(VIEWER, randomKey);
Expected Results No Data

Description Tests if the data updated with an invalid key can be fetched back with the same invalid key.Checks that the date response throws an error.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest(viewer, invalidKey);
newFetchPersonAppDataRequest(viewer'id', invalidKey);
Expected Results Data response throws error

Description Tests if the data updated with an invalid key (if the key contains special symbols other than these - '(A-Za-z0-9)()(.)(-)')
Priority undefined
Spec newUpdatePersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER,invalidKey, value);
Expected Results Data response error

Description Tests if a batch request with 1 success for VIEWER_FRIENDS and 1 failure for use VIEWER_OWNER_ABC results in error even for the valid update scenario.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, 'dataKey1', data);
newFetchPersonAppDataRequest('VIEWER_FRIENDS', 'dataKey1');
newFetchPersonAppDataRequest('VIEWER_FRIENDS_ABC', 'dataKey1);
Expected Results $EXPECTED_RESULT

Description Tests if a batch request can be sent with valid scenarios and verifies the fetched data.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER, 'KeyBatch2_app301', data)
newFetchPersonAppDataRequest(VIEWER, 'KeyBatch1_app301');
Expected Results Fetch back the batch requests which were done.

Description Tests if a batch request with multiple failed requests results in an error.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
Request newFetchPersonAppDataRequest();
newUpdatePersonAppDataRequest();
Expected Results Data response error

Description Tests if a batch request can be updated by the owner to the viewer's data. Checks if OWNER can check for the updated information.
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
newFetchPeopleRequest
Request newUpdatePersonAppDataRequest(VIEWER, 'AppData303','AppDataValue')
newFetchPeopleRequest(OWNER_FRIENDS);
newFetchPersonAppDataRequest(OWNER, 'AppData303');
Expected Results OWNER checks the information of VIEWER. (viewer == owner)

Description undefined
Priority undefined
Spec newUpdatePersonAppDataRequest
newFetchPersonAppDataRequest
newFetchPeopleRequest
Request newUpdatePersonAppDataRequest(OWNER, 'AppData303','AppDataValue')
newFetchPersonAppDataRequest(OWNER, 'AppData303');
newFetchPeopleRequest(OWNER_FRIENDS);
Expected Results Error as OWNER != VIEWER

Description This method returns the original data request.
Priority undefined
Spec getOriginalDataRequest
Request getOriginalDataRequest();
Expected Results The data request used to fetch this data response.

Description Creates an item to request app data for VIEWER. and checks if the value is updated.
Priority undefined
Spec newUpdatePersonAppDataRequest
Request newUpdatePersonAppDataRequest(VIEWER,'viewerKey', 'viewerValue ' + new Date().getTime())
Expected Results Checks if the value is updated for VIEWER

Description Creates an item to request app data for VIEWER. Validates the returned data, if it contains the value
Priority undefined
Spec newUpdatePersonAppDataRequest
Request newFetchPersonAppDataRequest(VIEWER, 'viewerKey')
Expected Results Validates the value returned for VIEWER



Description Checks if namespaces, objects, enums and apis of OPEN-SOCIAL SPEC 0.7 defined or not. Failures shows not defined items.
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT



Description Tests if we can encode map to an URL-encoded data string
Priority P0
Spec encodeValues
Request encodeValues({key1: 'value1', key2: 'value2'})
Expected Results 'key1=value1&key2=value2'

Description Tests if we can encode '$&+,/:;=?@' - reserved characters to URL-encoded data string
Priority P0
Spec encodeValues
Request encodeValues('$&+,/:;=?@')
Expected Results '0=%24&1=%26&2=%2B&3=%2C&4=%2F&5=%3A&6=%3B&7=%3D&8=%3F&9=%40'

Description Tests if we can encode '" <>#%{}|\^`' - unsafe characters to URL-encoded data string
Priority P0
Spec encodeValues
Request encodeValues(" <>#%{}|\\^`)
Expected Results '0=%22&1=%20&2=%3C&3=%3E&4=%23&5=%25&6=%7B&7=%7D&8=%7C&9=%5C& 10=%5E&11=%5B&12=%5D&13=%60'

Description Tests if we can encode a string object to URL-encoded data string
Priority P0
Spec encodeValues
Request encodeValues('Value')
Expected Results '0=V&1=a&2=l&3=u&4=e'

Description Tests if we can call encodeValues() without passing any parameter and it returns empty string.
Priority P2
Spec encodeValues
Request encodeValues()
Expected Results ''

Description Tests if we can pass 'null' as parameter and it returns empty string.
Priority P2
Spec encodeValues
Request encodeValues(null)
Expected Results ''

Description Tests if we can pass 'undefined' as parameter and api returns empty string.
Priority P2
Spec encodeValues
Request encodeValues(undefined)
Expected Results ''

Description Tests if we can encode an 'áéíó'i18n value to URL-encoded data string
Priority P0
Spec encodeValues
Request encodeValues({key: '\u00E1\u00E9\u00ED\u00F3'})
Expected Results 'key=%C3%A1%C3%A9%C3%AD%C3%B3'

Description Tests if we can get the proxy URL with given string as proxy
Priority P0
Spec getProxyUrl
Request getProxyUrl('Value')
Expected Results 'url=Value'

Description Tests if we can get the proxy URL with given URL as proxy
Priority P0
Spec getProxyUrl
Request getProxyUrl('http://www/~user')
Expected Results 'url=http%3A%2F%2Fwww%2F~user'



Description
<precondition>
This test depends on container. It assumes container has Language english and country as US
</precondition>
Priority P0
Spec getLang
getCountry
getModuleId
Request getLang()
getCountry()
getModuleId()
Expected Results 'en'
'US'
'not null'

Description Tests if getInt returns right value for integer preference
Priority P0
Spec getInt
Request getInt('myCounter')
Expected Results 100

Description Tests if we can get string, float, object, undefined as integer. Checks if it throws any exception doing that.
Priority P2
Spec getInt
Request getInt('myString')
getInt('myUndefined')
getInt('myBool')
getInt('myTestArray')
getInt('myObject')
getInt('myFloat')
Expected Results No Exception

Description Tests if getFloat returns right value for float preference
Priority P0
Spec getFloat
Request getFloat('myFloat')
Expected Results 3.43

Description Tests if we can get string, int, object, undefined,as Float. Checks if it throws any exception doing that.
Priority P2
Spec getFloat
Request getFloat('myString')
getFloat('myUndefined')
getFloat('myBool')
getFloat('myTestArray')
getFloat('myObject')
getFloat('myFloat')
Expected Results No Exception

Description Tests if getString returns right value for string preference
Priority P0
Spec getString
Request getString('myString')
Expected Results 'This is my string.'

Description Tests if we can get string, float, array, undefined and boolean as String. Checks if it throws any exception doing that.
Priority P2
Spec getString
Request getString('myString')
getString('myUndefined')
getString('myBool')
getString('myTestArray')
getString('myObject')
getString('myFloat')
Expected Results No Exception

Description Tests if getBool returns right value for boolean preference
Priority P0
Spec getBool
Request getBool('myBool')
Expected Results true

Description Tests if we can get float, object, undefined and int asboolean. Checks if it throws exception.
Priority P2
Spec getBool
Request getBool('myString')
getBool('myUndefined')
getBool('myBool')
getBool('myTestArray')
getBool('myObject')
getBool('myFloat')
Expected Results No Exception

Description Tests if getArray returns right value for Array preference
Priority P0
Spec getArray
Request getArray('myTestArray')
Expected Results 'pc', 'Apple Insider'

Description Tests if we can retrieve float, object, undefined and int as Array. Checks if it throws exception.
Priority P2
Spec getArray
Request getArray('myString')
getArray('myUndefined')
getArray('myBool')
getArray('myTestArray')
getArray('myObject')
getArray('myFloat')
Expected Results No Exception

Description
<precondition>
The gadget requires the feature setprefs.
</precondition>
Tests if we can set string, float, int and boolean. Try to get them as other formats i.e float as string, int, boolean and so on.
Priority P0
Spec set
Request prefs.set('myKey', 'http://www.google.com')
Expected Results The prefs value is set

Description
<precondition>
The gadget requires the feature setprefs.
</precondition>
Tests if we can set string, with | as an array and retrieve value using getArray.
Priority P0
Spec set
Request set('myArray', 'one|two|three')
Expected Results The prefs value is set

Description
<precondition>
The gadget requires the feature setprefs.
</precondition>
.Test the gadgets.Prefs set() capabilities with negative scenarios.
Priority P2
Spec set
Request set(arrayKey, 'two', 'three')
set(arrayKey, '\u597D'
set(arrayKey, )
Expected Results Exception should occur

Description
<precondition>
The gadget requires the featuresetprefs.
</precondition>
. Tests if we can set array using setArray().
Priority P2
Spec setArray
Request set(arrayKey, 'two', 'three')
set(arrayKey, '\u597D'
Expected Results No Exception

Description
<precondition>
The gadget requires the featuresetprefs.
</precondition>
. Tests if we can set string array,float, int and boolean as an input to setArray().
Priority P2
Spec setArray
setArray('myArray', true)
setArray('myArray', 5.5)
setArray('myArray', 8888)
setArray('myArray', 'test')
setArray('myArray', 'one|two')
setArray('myArray', undefined)
setArray('myArray', )
Expected Results Exception should occur

Description Tests if we can get an unformatted message from an undefined,string and empty space
Priority P0
Spec getMsg
Request getMsg('hello_world')
getMsg('undefined')
getMsg('')
Expected Results 'Hello World.'
''
''



Description Test the gadgets.util escapeString(String) capabilities with the potentially dangerous symbols '" "<>'\ "'
Priority P0
Spec escapeString
Request escapeString('"<>\'\n\r\\')
Expected Results '&#34;&#60;&#62;&#39;&#10;&#13;&#92;'

Description Test the gadgets.util unescapeString(String) capabilities String='""<>'' unescaping a String which includes escaped dangerous symbols
Priority P0
Spec unescapeString
Request unescapeString('&#34;&#60;&#62;&#39;&#10;&#13;&#92;')
Expected Results '"<>\'\n\r\\'

Description Test the gadgets.util unescapeString(String) and escapeString compatibility by escaping and then unescaping a String and comparing it again
Priority P0
Spec unescapeString
Request unescapeString(escapeString('"<>\'\n\r\\'))
Expected Results '"<>\'\n\r\\'

Description Test the gadgets hasFeature capabilities with a known and available feature.
Priority P0
Spec hasFeature
Request hasFeature('setprefs')
hasFeature('opensocial-0.7')
hasFeature('dynamic-height')
Expected Results true

Description Test gadgets.util.hasFeature returns false for feature that does not exists
Priority P0
Spec hasFeature
Request hasFeature('nonexist4ntf3atur3nog0')
Expected Results false

Description ERROR HANDLING CASE: gadgets.util.hasFeature() without parameters. Checks how the container handles a malformed invoke on a method ideally it should return false or avoid exceptions by returning null or undefined.
Priority P2
Spec hasFeature
Request util.hasFeature()
Expected Results false

Description Test the gadgets.util getFeatureParameters capabilities by setting as parameter a feature included in the app which takes no parameters in its constructor An empty object should be returned
Priority P2
Spec getFeatureParameters
Request getFeatureParameters("flash")
Expected Results '{}'

Description Test the gadgets.util getFeatureParameters capabilities by setting nothing as parameter Null should be returned
Priority P2
Spec getFeatureParameters
Request getFeatureParameters()
Expected Results null

Description Test the gadgets.util getFeatureParameters capabilities by setting a non-existing feature as parameter Null should be returned
Priority P2
Spec getFeatureParameters
Request getFeatureParameters("NonexistingFeature")
Expected Results null

Description Tests if getUrlParameters returns valid array of values
Priority P2
Spec getUrlParameters
Request getUrlParameters()
Expected Results Not null

Description Tests if getUrlParameters returns right URL
Priority P2
Spec getUrlParameters
Request getUrlParameters()
Expected Results Gets the correct URL

Description Checks if makeclosure calls closure method successfully.
Priority P0
Spec makeClosure
Request makeClosure(null, myFunction, 3, 5)
Expected Results Closure is created which can be used in a function that takes only callbacks



Description Test environment access and equality.
Priority P0
Spec getEnvironment
Request opensocial.getEnvironment()
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.PERSON and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(PERSON)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.ACTIVITY and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(ACTIVITY)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.ACTIVITY_MEDIA_ITEM and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(ACTIVITY_MEDIA_ITEM)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.BODY_TYPE and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(BODY_TYPE)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.EMAIL and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(EMAIL)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.ADDRESS and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(ADDRESS)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.FILTER_TYPE and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(FILTER_TYPE)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.MESSAGE_TYPE and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(MESSAGE_TYPE)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.NAME and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(NAME)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.ORGANIZATION and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(ORGANIZATION)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.PHONE and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(PHONE)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.SORT_ORDER and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(SORT_ORDER)
Expected Results $EXPECTED_RESULT

Description Test if environment supports opensocial.Environment.ObjectType.URL and its fields.
Priority P0
Spec supportsField
Request opensocial.Environment.supportsField(URL)
Expected Results $EXPECTED_RESULT

Description ERROR HANDLING CASE: Enviroment.hasCapability() without parameters. Checks how the framework handles a malformed invoke on a method ideally it should return false or avoid exceptions by returning null or undefined.
Priority undefined
Spec supportsField
Request opensocial. Environment.supportsField(PERSON)
Expected Results $EXPECTED_RESULT



Description Tests if the makeRequest() can fetch an html file from remote content .
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if the makeRequest() can fetch an xml file from remote content and check the data content.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if the makeRequest() can fetch an html file with DOM as content type and check if the returned datacontent is DOM.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an xml file with content type as DOM. Also checks for the returnedcontent type to be DOM
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an txt file with content type as JSON. Also checks for the returned datacontent type to be JSON
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a feed with format as atom. Also checks for the returned data content type to be FEED
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a feed with rss format. Also checks for the returned data content type to be FEED
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an html file by using POST method with some data to be posted. Checks for the returned data content type to be text file.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a feed using POST methodwith some data to be posted and to fetch data with number of entries and summary. Checks for the returned data content type to be a FEED.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an xml file using POST method with some data to be posted.Checks for the returned data content type to be a DOM.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an xml file using POST method without any data to be posted.Checks for the returned data content type to be a DOM.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an html file using POST method with some data to be posted. Checks for the returned data content type to be a TEXT.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a txt file using GET method. Checks for the returned data content type to be a TEXT.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a txt file with csv extnand using GET method. Checks for the returned data content type to be a TEXT.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a feed using POST without any post data and with 4 entries and without the summary. Checks for the returned data content type to be a FEED.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch an html file with non existing URL. Checks if the method returns 404 error.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description Tests if makeRequest() can fetch a php file with a signed request.
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT



Description undefined
Priority P0
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description undefined
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description undefined
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description undefined
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT

Description undefined
Priority undefined
Spec $SPEC
Request $REQUEST
Expected Results $EXPECTED_RESULT



Comment by private.damen, Nov 06, 2008

NICE


Sign in to add a comment
Powered by Google Project Hosting