SeasideTesting

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

SeasideTesting

JupiterJones
Hi All,

Is anyone using SeasideTesting in Pharo 3?

David’s page http://www.shaffer-consulting.com/david/Seaside/TestingComponents/TestingComponents.html does clearly state: Squeak/Pharo: No recent port is available. However, I noticed the comment in ConfigurationOfSeasideTesting-JohanBrichau.59 - added version 0.12 ( support for pharo3)

So I tried to load version 0.12 with:

Metacello new
          configuration: 'SeasideTesting';
          version: '0.12';
          load: #(‘ALL') 

…which failed to load:

1. AppleScript class>>#initialize
includes the code: Smalltalk addToStartUpList: self after: nil.
however SmalltalkImage>>add:toList:after: throws an error when nil is passed: nil cannot be found in Smalltalk dictionary.
The last item in the StartUpList was CTPusher so to keep moving forward I added it after that.

2. AppleScript class>>#startUp
includes the code: SmalltalkImage current platformName
which no longer works so to move forward I changed it to:
(SmalltalkImage current platform isKindOf: MacOSXPlatform)

3. ExternalObject class>>#initialize
includes the code: Smalltalk addToStartUpList: self after: ShortRunArray.
which isn’t in the StartUpList. The last item in the StartUpList is now Applescript so to move forward I added it after that.

4. The progress bar said “Reloading erroneous definitions” and the following window popped up:

This one stumped me :)

Is there anyone out there using SeasideTesting in Pharo? I’d much rather a complete smalltalk solution than using an external server like Selenium… which appears be be working ok with BeachParasol, but I’d like to avoid if possible :)

Any advice would be much appreciated.

Cheers,

Jupiter


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SeasideTesting

Johan Brichau-2
Hi Jupiter,

I’m no longer maintaining SeasideTesting because Parasol is a much more complete testing framework. 
I recommend you use Parasol.
imho, the only good way to test your web app is with a full stack testing solution like Selenium webdriver, for which Beach Parasol gives you a Smalltalk binding.

Version 0.12 of SeasideTesting mentions ‘support for Pharo 3’ because we still have some tests using that framework.
But we are only loading the ‘SimulatedBrowserTesting’ group and I can only say that our limited use of the framework is working in Pharo 3.

best
Johan


On 04 May 2014, at 03:04, Jupiter Jones <[hidden email]> wrote:

Hi All,

Is anyone using SeasideTesting in Pharo 3?

David’s page http://www.shaffer-consulting.com/david/Seaside/TestingComponents/TestingComponents.html does clearly state: Squeak/Pharo: No recent port is available. However, I noticed the comment in ConfigurationOfSeasideTesting-JohanBrichau.59 - added version 0.12 ( support for pharo3)

So I tried to load version 0.12 with:

Metacello new
          configuration: 'SeasideTesting';
          version: '0.12';
          load: #(‘ALL') 

…which failed to load:

1. AppleScript class>>#initialize
includes the code: Smalltalk addToStartUpList: self after: nil.
however SmalltalkImage>>add:toList:after: throws an error when nil is passed: nil cannot be found in Smalltalk dictionary.
The last item in the StartUpList was CTPusher so to keep moving forward I added it after that.

2. AppleScript class>>#startUp
includes the code: SmalltalkImage current platformName
which no longer works so to move forward I changed it to:
(SmalltalkImage current platform isKindOf: MacOSXPlatform)

3. ExternalObject class>>#initialize
includes the code: Smalltalk addToStartUpList: self after: ShortRunArray.
which isn’t in the StartUpList. The last item in the StartUpList is now Applescript so to move forward I added it after that.

4. The progress bar said “Reloading erroneous definitions” and the following window popped up:
<loadingSeasideTestingError1.png>

This one stumped me :)

Is there anyone out there using SeasideTesting in Pharo? I’d much rather a complete smalltalk solution than using an external server like Selenium… which appears be be working ok with BeachParasol, but I’d like to avoid if possible :)

Any advice would be much appreciated.

Cheers,

Jupiter

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


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