[Newbies] Making requests to an HTML server

DUFOUR, Stephan (ext.) stephan.dufour.prestataire at sfr.com
Wed Jan 6 13:16:33 UTC 2010


I had little time to look at the stuff but I have a global idea of what does what.

Albatross is running via SUnit on localhost.
SUnit creates a component, this component is registered as a Seaside application which makes http calls to _localhost_.

What I want is simpler and different, I want to call external URLs.
I wonder if I can replace SUnit by a simple object and run ABrower with external URLs.
Some functions seems to require Seaside and may be not usable if I try them on external URLs.

The two other tools:
-          Selenium / Squelenium / WebTester: The firefox module allows you to easily write some tests but it cannot export code to Smalltalk. It also seems to be limited at finding predefined text, maybe the API allows you to search for variable content or you have to use something else. i.e. for example you have a customer account, you enter login/password, enter the customer account, it can check that you have NAME and SURNAME in the resultpage for exemple, but it won't give you what the name and the surname are (maybe I simply didn't dig enough).
-          Beautiful Soup can parse the result of a page and be a good complement for Selenium.

At the moment, I'd like to focus on Albatross because if I can use all the functions, it'll be easy to code.


De : Cédrick Béler [mailto:cdrick65 at gmail.com]
Envoyé : lundi 4 janvier 2010 14:52
À : DUFOUR, Stephan (ext.); beginners at lists.squeakfoundation.org
Objet : Re: [Newbies] Making requests to an HTML server

you can also have a look at squeak soup [1] which is a tolerant HTML/XML parser (Squeak port of Beautiful Soup). The code repository is on squeaksource [2].

[1] http://n4.nabble.com/squeak-dev-ANN-Soup-0-1-tt80191.html#a80191
[2] http://www.squeaksource.com/Soup.html

2009/12/22 David Mitchell <david.mitchell at gmail.com<mailto:david.mitchell at gmail.com>>
> Start here:
> Good intro to Squeak Networking is the Networking Squeak chapter from
> the Squeak NuBlue
> book:
> http://stephane.ducasse.free.fr/FreeBooks/CollectiveNBlueBook/parsia%202.pdf
> And then I would check out Albatross, which is a Squeak framework for
> testing websites (including exercising Javascript). Here is a PDF
> intro:
> scg.unibe.ch/archive/projects/Brue06a.pdf<http://scg.unibe.ch/archive/projects/Brue06a.pdf>
> Google Squeak Albatross for more info.
> --David Mitchell
> blog: http://www.withaguide.com
> On Tue, Dec 22, 2009 at 8:04 AM, DUFOUR, Stephan (ext.)
> <stephan.dufour.prestataire at sfr.com<mailto:stephan.dufour.prestataire at sfr.com>> wrote:
> > Hi,
> >
> > I have several Urls, each giving me a piece of information.
> > I want to write some code that gathers these pieces of information and make
> > a display of the whole situation.
> >
> > The principle is: I send a request to one URL then parse the result and make
> > a new request to another URL using the parsed result.
> >
> > I need some code that somehow mimic a human behaviour: it should
> >         1) go to a URL and get the content (easy part)
> >         2) go to a URL and retrieve some session ID then make a more
> > elaborated request (POST, GET, or even trigger some Javascript)
> >
> > Stephan
> >
> >
> >
> > _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org<mailto:Beginners at lists.squeakfoundation.org>
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >
> >
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org<mailto:Beginners at lists.squeakfoundation.org>
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20100106/a4927d59/attachment.htm

More information about the Beginners mailing list