Seaside + TDD

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside + TDD

Mariano Abel Coca
Hi everyone,

I'm trying to develop using TDD with seaside 3.0, but honestly, I couldn't find any framework or package that works fine with it. I've tried Albatross and Seaside Testing, both of them work great with Seaside 2.8, but fails to run or even to load in seaside 3.0.

Any other suggestions?

Thanks in advance.

Mariano.


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Chris Cunnington
I may be wrong, but I think you're asking the wrong people. And I don't know if you're aware, but your stepping into the widening gap between Pharo and Squeak. 

I think the answer to your question is either/or. Either you use 2.8 and the existing tools, or go to the Seaside and Pharo boards and ask about what the best set of tools are TDD in 3.0, which works in Pharo, but not in Squeak (at the moment). 

Chris 


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Andreas.Raab
Chris Cunnington wrote:
> I may be wrong, but I think you're asking the wrong people. And I don't
> know if you're aware, but your stepping into the widening gap between
> Pharo and Squeak.
>
> I think the answer to your question is either/or. Either you use 2.8 and
> the existing tools, or go to the Seaside and Pharo boards and ask about
> what the best set of tools are TDD in 3.0, which works in Pharo, but not
> in Squeak (at the moment).

I'm pretty sure you're wrong, but in case you'd found stuff that doesn't
work in Squeak, a heads-up on the issues you've encountered would be
appreciated.

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Chris Cunnington
In reply to this post by Mariano Abel Coca
On 20 Nov. I wrote these instructions for installing Seaside. It's clear from the last paragraph that Seaside 3.0 did not work in my attempts to install it in a current version of Squeak. 

http://lists.squeakfoundation.org/pipermail/squeak-dev/2009-November/141226.html

I have seen no evidence from anybody in the past two months that either my approach was wrong or that somebody has successfully installed Seaside 3.0 in a current version of Squeak.

Chris 


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Jeroen van Hilst
Hello Chris (and fellow squeakers),

It so happens i tried this yesterday and succeeded loading seaside 3.0
into an updated squeak trunk image by:

Loading loading ConfigurationOfSeaside30 from:

MCHttpRepository
        location: 'http://www.squeaksource.com/MetacelloRepository'
        user: ''
        password: ''
       
and doing

ConfigurationOfSeaside30 load.
       
       
And after that (reloading) DynamicBindings-ul.12 from:

MCHttpRepository
        location: 'http://www.squeaksource.com/KomHttpServer'
        user: ''
        password: ''
       
I cant make guarantees to 100% working, but i tried the jQuery tests,
and they appeared to work fine.

HTH

(PS you will get more then only seaside ... it loads a lot of (amongst
other pharo labeled) stuff - i assume is needed for SS or sub-parts)

        - Jeroen




Chris Cunnington wrote:

> On 20 Nov. I wrote these instructions for installing Seaside. It's clear
> from the last paragraph that Seaside 3.0 did not work in my attempts to
> install it in a current version of Squeak.
>
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2009-November/141226.html
>
> I have seen no evidence from anybody in the past two months that either
> my approach was wrong or that somebody has successfully installed
> Seaside 3.0 in a current version of Squeak.
>
> Chris
>
>
> ------------------------------------------------------------------------
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Andreas.Raab
In reply to this post by Chris Cunnington
Chris Cunnington wrote:
> On 20 Nov. I wrote these instructions for installing Seaside. It's clear
> from the last paragraph that Seaside 3.0 did not work in my attempts to
> install it in a current version of Squeak.
>
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2009-November/141226.html
>
> I have seen no evidence from anybody in the past two months that either
> my approach was wrong or that somebody has successfully installed
> Seaside 3.0 in a current version of Squeak.

Thanks, I had assumed you had resolved the issues listed in the above
post. When I follow your Seaside 3 instructions on a 3.10.2 image
everything works up until the last step where going to
http://localhost:8080/seaside ends up with a response that says
"/seaside not found". Is that the problem you were referring to? If so,
it looks like a missing configuration step. Or are you seeing something
else?

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Chris Cunnington
In reply to this post by Mariano Abel Coca

Hi Jeroen,

Thank you very much. I am very happy to be wrong.

I followed your instructions and there were no problems. I tried the jQuery suite. It all looks great.

I have squeak.org admin access now thanks to Randal and Janko. I intend to create a Seaside download page in the near future. I also plan to implement the change Bert requested in a recent post.

Thanks again, Jeroen,

Chris


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Chris Cunnington
In reply to this post by Mariano Abel Coca
"When I follow your Seaside 3 instructions on a 3.10.2 image 
everything works up until the last step where going to 
http://localhost:8080/seaside ends up with a response that says 
"/seaside not found". Is that the problem you were referring to? If so, 
it looks like a missing configuration step. Or are you seeing something 
else?"

Yea, that's it exactly. I looked at that and threw up my hands. 
Seaside configuration is not something I understand, frankly. And it would not have occurred to me that that was the problem. 
We have a working solution for The Trunk. If we can resolve this configuration issue, then we'll have one for 3.10 as well. 
All problems will be solved at that point, and I'll put all these instructions on squeak.org. 

Chris 




Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Yanni Chiu
Chris Cunnington wrote:
> "When I follow your Seaside 3 instructions on a 3.10.2 image
> everything works up until the last step where going to
> http://localhost:8080/seaside ends up with a response that says
> "/seaside not found". ..."
>
>
> Yea, that's it exactly. I looked at that and threw up my hands.

The "/seaside not found" is the response from Seaside - which means the
server is running. If it was not running, the browser would have
responded that it could not connect.

It's a problem with the 'default entry point' setting. You can fix it by
going to the config app at http://localhost:8080/seaside/config, and set
the default entry point to 'browse'. Then you'll get the behaviour
you're expecting.

There's probably a way to do this with code, but I don't know it off hand.

--
Yanni


Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Yanni Chiu
Yanni Chiu wrote:
> ... set the default entry point to 'browse'.

For Seaside-2.8:

     WADispatcher default defaultName: 'browse'.


Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-project] Seaside + TDD

Bart Gauquie
In reply to this post by Mariano Abel Coca
Hi,

I'm creating http://www.squeaksource.com/WebTester. This is a general purpose tool which tests websites; using selenium rc. 
So it does not directly works on Selenium, but tests any web site.

You can try it. Its unfinished, but the parts already developed are working.

Kind Regards,

Bart

2010/1/19 Mariano Abel Coca <[hidden email]>
Hi everyone,

I'm trying to develop using TDD with seaside 3.0, but honestly, I couldn't find any framework or package that works fine with it. I've tried Albatross and Seaside Testing, both of them work great with Seaside 2.8, but fails to run or even to load in seaside 3.0.

Any other suggestions?

Thanks in advance.

Mariano.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



--
imagination is more important than knowledge - Albert Einstein
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein
The true sign of intelligence is not knowledge but imagination. - Albert Einstein
However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill
It's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill


Reply | Threaded
Open this post in threaded view
|

Re: [Seaside] Re: [Pharo-project] Seaside + TDD

Mariano Abel Coca
Thanks Bart, i'll take a look at it.

Kind Regards,

Mariano.


On Wed, Jan 20, 2010 at 8:30 AM, Bart Gauquie <[hidden email]> wrote:
Hi,

I'm creating http://www.squeaksource.com/WebTester. This is a general purpose tool which tests websites; using selenium rc. 
So it does not directly works on Selenium, but tests any web site.

You can try it. Its unfinished, but the parts already developed are working.

Kind Regards,

Bart

2010/1/19 Mariano Abel Coca <[hidden email]>
Hi everyone,

I'm trying to develop using TDD with seaside 3.0, but honestly, I couldn't find any framework or package that works fine with it. I've tried Albatross and Seaside Testing, both of them work great with Seaside 2.8, but fails to run or even to load in seaside 3.0.

Any other suggestions?

Thanks in advance.

Mariano.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



--
imagination is more important than knowledge - Albert Einstein
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein
The true sign of intelligence is not knowledge but imagination. - Albert Einstein
However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill
It's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




Reply | Threaded
Open this post in threaded view
|

How to load and use Seaside 3 (was: Re: [squeak-dev] Re: Seaside + TDD)

Levente Uzonyi-2
In reply to this post by Chris Cunnington
On Tue, 19 Jan 2010, Chris Cunnington wrote:

> On 20 Nov. I wrote these instructions for installing Seaside. It's clear
> from the last paragraph that Seaside 3.0 did not work in my attempts to
> install it in a current version of Squeak.
>
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2009-November/141226.html
>
> I have seen no evidence from anybody in the past two months that either my
> approach was wrong or that somebody has successfully installed Seaside 3.0
> in a current version of Squeak.

Your approach is wrong.

0. Install OmniBrowser (this will let you have Seaside Control Panel)
   Installer installUrl: 'http://www.wiresong.ca/static/releases/OmniBrowser-2.0.3.sar'.

1. Go to http://builder.seaside.st .

2. Select the Advanced tab.

3. Make sure you select Seaside-Tools-OmniBrowser in the Developement
section. Check everything else you may need. If you don't know what you
need, select everything (you only one server adaptor though).

4. Download the Load Script.

5. Install the changeset (just drag and drop it, or with the File List)

6. Open the Seaside Control Panel (from the World menu/open...)

7. Right (yellow) click in the upper panel and select Add adaptor...,
select WAComancheAdaptor (or the one you selected before), pick a port
(let's say 8080 is available on your machine), click accept.

8. Right (yellow) click on the adaptor in the panel and select
Encoding..., pick utf-8.

9. Press the Start button.

10. Open http://127.0.0.1:8080/ in your browser.


Note that the Seaside Control Panel knows a lot of other tricks, but if
you don't like it (or don't want to load OB), check out the WAAdmin class
which helps you with the configuration of Seaside.


Levente

>
> Chris
>

Reply | Threaded
Open this post in threaded view
|

Re: Seaside + TDD

Levente Uzonyi-2
In reply to this post by Andreas.Raab
On Tue, 19 Jan 2010, Andreas Raab wrote:

> Chris Cunnington wrote:
>> I may be wrong, but I think you're asking the wrong people. And I don't
>> know if you're aware, but your stepping into the widening gap between Pharo
>> and Squeak.
>> I think the answer to your question is either/or. Either you use 2.8 and
>> the existing tools, or go to the Seaside and Pharo boards and ask about
>> what the best set of tools are TDD in 3.0, which works in Pharo, but not in
>> Squeak (at the moment).
>
> I'm pretty sure you're wrong, but in case you'd found stuff that doesn't work
> in Squeak, a heads-up on the issues you've encountered would be appreciated.

Sooner or later we will have to create our own Grease-Squeak-Core, because
Dictionary is not a subclass of Set. So two extension methods
(#restoreFromSnapshot: and #snapshotCopy) will have to be moved from Set
to HashedCollection.
Or we may use another package which just adds these methods, this way we
don't have to fork the whole Grease-Pharo-Core package for two methods.


Levente

>
> Cheers,
>  - Andreas
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [Seaside] Seaside + TDD

Johan Brichau
In reply to this post by Mariano Abel Coca
Hi Mariano,

I'm currently also looking at using Seaside Testing with Seaside 3.0.

I have succeeded last weekend to make the R2.9 version work with Seaside 3.0.
At least: all demo tests seem to be working properly.

I uploaded the changes to squeaksource a couple of minutes ago.

Cheers,
Johan

On 19 Jan 2010, at 20:52, Mariano Abel Coca wrote:

> Hi everyone,
>
> I'm trying to develop using TDD with seaside 3.0, but honestly, I couldn't find any framework or package that works fine with it. I've tried Albatross and Seaside Testing, both of them work great with Seaside 2.8, but fails to run or even to load in seaside 3.0.
>
> Any other suggestions?
>
> Thanks in advance.
>
> Mariano.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

----------------------------
Johan Brichau
[hidden email]





Reply | Threaded
Open this post in threaded view
|

Re: [Seaside] Seaside + TDD

Mariano Abel Coca
Excelent!

I'll try it as soon as I can.

Kind Regards,

Mariano.


On Wed, Jan 20, 2010 at 3:17 PM, Johan Brichau <[hidden email]> wrote:
Hi Mariano,

I'm currently also looking at using Seaside Testing with Seaside 3.0.

I have succeeded last weekend to make the R2.9 version work with Seaside 3.0.
At least: all demo tests seem to be working properly.

I uploaded the changes to squeaksource a couple of minutes ago.

Cheers,
Johan

On 19 Jan 2010, at 20:52, Mariano Abel Coca wrote:

> Hi everyone,
>
> I'm trying to develop using TDD with seaside 3.0, but honestly, I couldn't find any framework or package that works fine with it. I've tried Albatross and Seaside Testing, both of them work great with Seaside 2.8, but fails to run or even to load in seaside 3.0.
>
> Any other suggestions?
>
> Thanks in advance.
>
> Mariano.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

----------------------------
Johan Brichau
[hidden email]




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside