[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  which is a tolerant HTML/XML parser (Squeak port of Beautiful Soup). The code repository is on squeaksource .
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
> And then I would check out Albatross, which is a Squeak framework for
> 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
> > 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>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners