It turns out this exposed an assumption in the way the UI test suite (tools/cats/framework/ChandlerTestLib.py) works. This assumes that having the calendar button pressed in the app bar means that the calendar is displayed (see the CalendarVisible() method @ line 196). This is no longer the case when you're viewing the Dashboard collection.

Running the entire functional test suite works, because at some point we create a new collection and don't get into the above situation. However, individual tests fail, like:

./tools/do_tests.sh -t TestNewEvent

as do some performance tests. You get tracebacks like:

<DBRepositoryView: MainThread (2)> committed 60 items (39 kbytes) in 0:00:00.336198, 178 items/s (116 kbytes/s)
Traceback (most recent call last):
File "/Users/grant/work/chandler/tools/cats/framework/ runTests.py", line 58, in run_tests
    test.runTest()
File "/Users/grant/work/chandler/tools/cats/framework/ ChandlerTestCase.py", line 68, in runTest
    self.startTest()
File "/Users/grant/work/chandler/tools/cats/Functional/ TestNewEvent.py", line 57, in startTest
    body=uw("This is a birthday party invitation"))
File "/Users/grant/work/chandler/tools/cats/framework/ ChandlerTestLib.py", line 163, in SetAttr
    method(args[param], timeInfo=False)
File "/Users/grant/work/chandler/tools/cats/framework/ ChandlerTestLib.py", line 303, in SetDisplayName self.SetEditableBlock("HeadlineBlock", "display name", displayName, timeInfo=timeInfo) File "/Users/grant/work/chandler/tools/cats/framework/ ChandlerTestLib.py", line 248, in SetEditableBlock
    self.SelectItem()
File "/Users/grant/work/chandler/tools/cats/framework/ ChandlerTestLib.py", line 212, in SelectItem
    timedCanvas = App_ns.TimedEvents
File "/Users/grant/work/chandler/parcels/osaf/framework/scripting/ proxy.py", line 191, in __getattr__
    return getattr(self.app_ns, attr)
File "/Users/grant/work/chandler/application/schema.py", line 1169, in __getattr__
    raise AttributeError(
AttributeError: TimedEvents is not in <module 'osaf.app' from '/Users/ grant/work/chandler/parcels/osaf/app/__init__.pyo'> or <Parcel: app 4ea56b84-3d11-11db-d77c-fddf31eabb1e>


Part of the issue is that the test framework expects UITestItem.SelectItem() to work, but no-one wrote any code to handle the case when the summary table (i.e. not the calendar) is visible. Probably that needs to happen soon, since the summary table is now more commonly visible.

--Grant


On 4 Sep, 2006, at 15:33, [email protected] wrote:

Revision: 11621
Author: john
Date: 2006-09-04 15:33:33 -0700 (Mon, 04 Sep 2006)
Log Message

Display all of the OOTB collections as table view across all App areas
Disallow overlays for the OOTB collections (no rollover check-box icons at all) in the Calendar app Disallow overlays for all collections in the All, Mail and Tasks app areas
Update functional tests for new sidebar behavior

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to