Tests known to fail

Coordinator
Aug 18, 2008 at 11:14 PM
Edited Aug 18, 2008 at 11:15 PM
As part of the release for 2.0, we also release a suite of unit tests.  Since the new facebook api is known to have issues, some tests will understandibly fail.  The following unit tests are known to fail as of 8/18/2008. 

...Peter
Subject Area Test Method Error Message
Events createEditDeleteTest Test method facebook.tests.eventsTest.createEditDeleteTest threw exception:  facebook.Utility.FacebookException: Creating and modifying events required the extended permission create_event.
Events getMembersTest Test method facebook.tests.eventsTest.getMembersTest threw exception:  facebook.Utility.FacebookException: Invalid parameter.
Feed publishTemplatizedActionTest Test method facebook.tests.feedTest.publishTemplatizedActionTest threw exception:  System.Exception: Error: Parameter 'title_template' is required..
Feed publishTemplatizedActionTest1 Assert.AreEqual failed. Expected:<True>. Actual:<False>. 
Feed uploadNativeStringsTest Assert.AreEqual failed. Expected:<True>. Actual:<False>. 
Data setUserPreferencesTest Assert.AreEqual failed. Expected:<>. Actual:<test_string_two>. 
Data updateObjectTest Test method facebook.tests.dataTest.updateObjectTest threw exception:  facebook.Utility.FacebookException: Invalid parameter: bad integer: test_new_object_property_name.
Data setCookieTest Test method facebook.tests.dataTest.setCookieTest threw exception:  facebook.Utility.FacebookException: An unknown error occurred.
Data setAssociationsTest Test method facebook.tests.dataTest.setAssociationsTest threw exception:  facebook.Utility.FacebookException: Invalid parameter: associations.
Data renameAssociationTest Test method facebook.tests.dataTest.renameAssociationTest threw exception:  System.Exception: Error: Parameter 'name' is required..
Data removeHashKeysTest Test method facebook.tests.dataTest.removeHashKeysTest threw exception:  facebook.Utility.FacebookException: A database error occurred. Please try again: unable to lookup hash keys.
Data removeAssociationsTest Test method facebook.tests.dataTest.removeAssociationsTest threw exception:  System.Exception: Error: Parameter 'name' is required..
Data getObjectTypeTest Assert.AreEqual failed. Expected:<2>. Actual:<1>. 
Data getObjectsTest Test method facebook.tests.dataTest.getObjectsTest threw exception:  facebook.Utility.FacebookException: A database error occurred. Please try again: unable to fetch all objects.
Data getCookiesTest2 Test method facebook.tests.dataTest.getCookiesTest2 threw exception:  facebook.Utility.FacebookException: An unknown error occurred.
Data getCookiesTest1 Test method facebook.tests.dataTest.getCookiesTest1 threw exception:  facebook.Utility.FacebookException: An unknown error occurred.
Data getCookiesTest Test method facebook.tests.dataTest.getCookiesTest threw exception:  facebook.Utility.FacebookException: An unknown error occurred.
Data getAssociationsTest Assert.AreEqual failed. Expected:<2>. Actual:<0>. 
Data getAssociationDefinitionsTest Assert.AreEqual failed. Expected:<(null)>. Actual:<test_association_def_alias_one>. 
Data getAssociationDefinitionTest Assert.AreEqual failed. Expected:<(null)>. Actual:<test_association_def_alias_one>. 
Data getAssociatedObjectCountsTest Test method facebook.tests.dataTest.getAssociatedObjectCountsTest threw exception:  System.NullReferenceException: Object reference not set to an instance of an object..
Data getAssociatedObjectCountTest Assert.AreEqual failed. Expected:<1>. Actual:<0>. 
Data deleteObjectsTest Test method facebook.tests.dataTest.deleteObjectsTest threw exception:  facebook.Utility.FacebookException: A database error occurred. Please try again: unable to fetch objects.
Coordinator
Aug 19, 2008 at 4:57 AM
I am looking into the event and feed issues.  I think these are correctable on our side.
Apr 6, 2009 at 7:32 PM
I'm new to FB development. I just ran the unit tests and 69 passed. 51 failed. Many with "unknown method" error coming back from:
            try
            {
                result = processResponse(postRequest(requestUrl, parameters));
            }

Are all these failures known problems?