[Seaside] Albatross: Seaside scenario testing

stephane ducasse stephane.ducasse at free.fr
Tue Oct 10 07:05:28 UTC 2006


cool andrea
Tx for sharing that with us.

stef
On 7 oct. 06, at 17:44, Andrea Brühlmann wrote:

> Hi,
>
> I have developed a framework to quickly write scenario tests for  
> Seaside applications. Albatross lets you write SUnit tests that run  
> a Seaside component in an external web browser and simulate user  
> interactions. It provides access to the running and rendered  
> component and at the same time to the model of your application.  
> You do not need to think about html tags or ids and names, because  
> Albatross has cleverer ways to find out what you want to do. It  
> finds form fields just by the corresponding label text or clicks on  
> links by the displayed link text. It supports Javascript/Ajax  
> testing because it really runs the application in the default web  
> browser of your computer. You can write tests like the following:
>
> browser enter: 'Jack' for: 'Username';
>    enter:'grml78sh' for 'Password';
>    click:'Login'.
> self assert: (
>    browser textExists: 'Successfully logged in').
>
> Download Albatross as a monticello package from http:// 
> www.squeaksource.com/Albatross.
> Required:
>
>    * Seaside
>    * FFI (from SqueakMap. Required for Squeak >=3.9)
>    * AppleScript (required for MacOS. From http:// 
> abrue.ab.funpic.de/albatross/Mac-Applescript.st (SM version with  
> bugfix))
>    * ExternalWebBrowser (from SqueakMap)
>    * Albatross (from http://squeaksource.com/Albatross)
>
> There is a demo test for Pier in the Albatross package that will  
> show you how to write tests. You can run the demo test (APierTest)  
> if you have downloaded Pier.
>
> Regards
> Andrea
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



More information about the Seaside mailing list