You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(14) |
Oct
(22) |
Nov
(21) |
Dec
(7) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(4) |
Feb
(26) |
Mar
(62) |
Apr
(60) |
May
(73) |
Jun
(41) |
Jul
(64) |
Aug
(39) |
Sep
(19) |
Oct
(18) |
Nov
(55) |
Dec
(24) |
| 2005 |
Jan
(35) |
Feb
(122) |
Mar
(130) |
Apr
(62) |
May
(57) |
Jun
(103) |
Jul
(71) |
Aug
(142) |
Sep
(67) |
Oct
(27) |
Nov
(49) |
Dec
(56) |
| 2006 |
Jan
(42) |
Feb
(65) |
Mar
(30) |
Apr
(43) |
May
(13) |
Jun
(25) |
Jul
(5) |
Aug
(14) |
Sep
(18) |
Oct
(55) |
Nov
(126) |
Dec
(82) |
| 2007 |
Jan
(83) |
Feb
(83) |
Mar
(173) |
Apr
(30) |
May
(64) |
Jun
(156) |
Jul
(50) |
Aug
(29) |
Sep
(25) |
Oct
(26) |
Nov
(51) |
Dec
(9) |
| 2008 |
Jan
(36) |
Feb
(71) |
Mar
(93) |
Apr
(123) |
May
(34) |
Jun
(14) |
Jul
(21) |
Aug
(26) |
Sep
(49) |
Oct
(38) |
Nov
(19) |
Dec
(46) |
| 2009 |
Jan
(18) |
Feb
(16) |
Mar
(46) |
Apr
(4) |
May
(18) |
Jun
(9) |
Jul
(11) |
Aug
(4) |
Sep
(31) |
Oct
(19) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(15) |
Feb
(9) |
Mar
|
Apr
(20) |
May
(5) |
Jun
(8) |
Jul
(2) |
Aug
(9) |
Sep
(6) |
Oct
(21) |
Nov
(20) |
Dec
(11) |
| 2011 |
Jan
(11) |
Feb
(5) |
Mar
(6) |
Apr
(1) |
May
(12) |
Jun
(4) |
Jul
(1) |
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
| 2012 |
Jan
(28) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(5) |
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Pete S. <cab...@gm...> - 2009-05-22 19:17:20
|
Hi yeah I saw this in jan when trying the same thing inside resin quercus I worked out that it was quercus lacking support for multiple interface implementation I asked them and they said they knew but didn't know when it would get fixed so we decided not to use resin or quercus Hope that helps Pete Irc: cabbiepete Sent from my iPod On 22 May 2009, at 19:29, Larry <lle...@xc...> wrote: > Hi > > I'm a newcomer to both simpletest and php, but I have a lot of Java > experience. I'm trying to execute a simpletest unit test to run > inside > of Jboss using the Quercus container. The test runs just fine from > the > linux command line, but when I try to run it inside quercus, I get the > message Fail: -> Bad TestSuite [UserServiceImplTest.php] with error > [No > runnable test cases in [UserServiceImplTest.php]] > > Has anyone seen this before? > > Thanks in advance > > Larry > > > > --- > --- > --- > --------------------------------------------------------------------- > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity > professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like > Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
|
From: Larry <lle...@xc...> - 2009-05-22 18:42:13
|
Hi I'm a newcomer to both simpletest and php, but I have a lot of Java experience. I'm trying to execute a simpletest unit test to run inside of Jboss using the Quercus container. The test runs just fine from the linux command line, but when I try to run it inside quercus, I get the message Fail: -> Bad TestSuite [UserServiceImplTest.php] with error [No runnable test cases in [UserServiceImplTest.php]] Has anyone seen this before? Thanks in advance Larry |
|
From: Christoph B. <ber...@ne...> - 2009-05-12 19:09:57
|
Thanks, Marcus. With that, and after $this->setMaximumRedirects(0); since /edit-form.php redirects to /index.php I can see what's being posted, which - curiously - looked fine. More investigation revealed programmer error, feh. Grateful for the quick turnaround. simpletest is remarkably useful. Chris On Tue, May 12, 2009 at 2:35 PM, Marcus Baker <ma...@wo...>wrote: > Hi... > > Christoph Berendes wrote: > > Is there some way to see the contents of the POST as Simpletest submits > it? > > Just after the page fetch, just issue $this->showRequest(). You can > see the response headers with $this->showHeaders(). > > > Thanks. > > yours, Marcus > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Marcus B. <ma...@wo...> - 2009-05-12 18:36:31
|
Hi... Christoph Berendes wrote: > Is there some way to see the contents of the POST as Simpletest submits it? Just after the page fetch, just issue $this->showRequest(). You can see the response headers with $this->showHeaders(). > Thanks. yours, Marcus |
|
From: Christoph B. <ber...@ne...> - 2009-05-12 14:24:23
|
I'm testing a simple form with WebTestCase, and finding that values set in
text fields are sticking (making it to the backend), but that values set in
a text area and in a set of radio buttons (<input type="radio" name="rad"
value="val1"> <input type="radio" name="rad" value="val2"> etc) are not
making it to the backend. These fields work as expected when I test the
form manually.
I see all the fields with this code
> $this->assertTrue(
>
$this->setField($fieldName,$fieldValue),
>
($fieldName." could not be set to ".$fieldValue)
>
);
>
and the assertion succeeds on all fields.
Is there some way to see the contents of the POST as Simpletest submits it?
Thanks.
|
|
From: Steven B. <ste...@gm...> - 2009-05-06 20:41:00
|
On Wed, May 6, 2009 at 12:53 PM, Marcus Baker <ma...@wo...> wrote: > Hi... > Should we just stop supporting the Eclipse plug-in and remove it from the > Sourceforge downloads? > Hello... I vote for yes -- but people are still apparently using it (a bug gets reported every few months). Perhaps the best solution would be for me to document clearly how to make Simpletest work with Eclipse using the PDT (PHP development tools); then put those instructions onto the website and at the very bottom mention the plugin as being available but unsupported. I don't have any qualms about continuing to provide support (e.g. fixing bugs which get reported); I just find the other way of running the Simpletests better for me (the biggest thing for me is the ability to quickly and easily debug a test). The plugin gives you the pretty green/red bar, and gives you the ability to easily drill into the test failures (you just click the test failure in the ui), and some other features I am forgetting about. I had started working on a revamp of the plugin which made better use of some of the hooks the PDT provided, but quickly came to the realization that I could spend a month programming and only get a little more value than the "Run As PHP"/"Debug As PHP" gave me. Regards, Steven Balthazor |
|
From: Marcus B. <ma...@wo...> - 2009-05-06 20:40:39
|
Hi... Daryle Dakis wrote: > Hello. I am trying to automate our website registration and I need some > help regarding fetching the next page after submitting the form. Here's the > situation: Sorry I've not been able to help yet. Been a bit snowed under at work and with kids. yours, Marcus |
|
From: Marcus B. <ma...@wo...> - 2009-05-06 20:40:24
|
Hi...
Steven Balthazor wrote:
> This is how I run my Simpletests now; I have stopped
> using the Simpletest plugin and simply put a
> require_once('autorun.php'); at the top of the test file and then I
> can right click on the file and select "Run As PHP Script" and the
> output from the testing shows up in the eclipse console -- easier to
> configure and it runs faster than the plugin.
Should we just stop supporting the Eclipse plug-in and remove it
from the Sourceforge downloads?
> Regards,
> Steven Balthazor.
yours, Marcus
|
|
From: Steven B. <ste...@gm...> - 2009-05-06 14:11:31
|
On Wed, May 6, 2009 at 5:11 AM, Francesco Spegni
<fra...@gm...> wrote:
> Reading the Simpletest plugin code, then, i found something unclear. There
> is this piece of code:
>
> SimpletestPlugin.logMessage("Running: ");
> SimpletestPlugin.logMessage(xml);
> SimpletestPlugin.logMessage("*************");
> System.out.println(exec);
> StringBuffer err=new StringBuffer();
> StringBuffer out=new StringBuffer();
>
> (1) StreamReaderThread outThread=new
> StreamReaderThread(phpProcess.getInputStream(),out);
> StreamReaderThread errThread=new
> StreamReaderThread(phpProcess.getErrorStream(),err);
> outThread.start();
> errThread.start();
>
> The line that I've marked with (1) launch a thread which generates an
> IOException with message (Bad file descriptor). I'm wondering why are we
> reading from the phpProcess input. Shouldn't you _write_ in the STDIN of the
> process? Am I missing something?
You are misinterpreting the code. That line is opening an inputstream
in java to read from the php STDOUT. Php STDOUT is coming out of php
and into java.
Hope that helps.
On a side note, you might try just running PHPUnit tests directly from
Eclipse using the "Run As PHP Script" functionality which is embedded
with the Eclipse PDT (although I am not sure how to make that happen
for PHPUnit). This is how I run my Simpletests now; I have stopped
using the Simpletest plugin and simply put a
require_once('autorun.php'); at the top of the test file and then I
can right click on the file and select "Run As PHP Script" and the
output from the testing shows up in the eclipse console -- easier to
configure and it runs faster than the plugin. The other benefit of
running this way is that if you want to debug your test, when you
right click the test file you can click "Debug As PHP Script" instead
of "Run As".
Regards,
Steven Balthazor.
|
|
From: Francesco S. <fra...@gm...> - 2009-05-06 12:12:02
|
hello there,
i'm reading the code of the simpletest plugin for eclipse in order to see
how to let it communicate with PHPUnit. the problem is that now PHPUnit2 is
outdated (if i've well understood) and then SimpleTest plugin for eclipse +
PHPUnit does not work anymore.
Reading the Simpletest plugin code, then, i found something unclear. There
is this piece of code:
SimpletestPlugin.logMessage("Running: ");
SimpletestPlugin.logMessage(xml);
SimpletestPlugin.logMessage("*************");
System.out.println(exec);
StringBuffer err=new StringBuffer();
StringBuffer out=new StringBuffer();
(1) StreamReaderThread outThread=new
StreamReaderThread(phpProcess.getInputStream(),out);
StreamReaderThread errThread=new
StreamReaderThread(phpProcess.getErrorStream(),err);
outThread.start();
errThread.start();
The line that I've marked with (1) launch a thread which generates an
IOException with message (Bad file descriptor). I'm wondering why are we
reading from the phpProcess input. Shouldn't you _write_ in the STDIN of the
process? Am I missing something?
Thank you for the help you could give me
Francesco
---
"Ama le nuvole, le macchine, i libri, ma prima di tutto ama l'uomo" - Nazim
Hilkmet
http://www.manuefra.eu
skype: francesco.spegni
|
|
From: Daryle D. <dar...@oc...> - 2009-04-29 07:15:50
|
Hello. I am trying to automate our website registration and I need some
help regarding fetching the next page after submitting the form. Here's the
situation:
registration page: http://localhost/unit_testing/accounts/register
method=POST; action=same URL as above but with different contents if the
registration is successful.
So after filling up all the required fields (using simpletest of course)
and submitting the form, is there a way to fetch the succeeding page
automatically? I have done this but failed, and got the main registration
page, despite the fact that the registration is successful. Here's my
code:
$some_textbox_variable = 'some textbox values';
$this->get('http://localhost/unit_testing/accounts/register');
if ($this->assertText('some registration page text'))
{
$this->assertTrue($this->setFieldbyName('some_textbox_name',
$some_textbox_variable));
$this->assertTrue($this->submitFormById('RegisterForm'));
$this->getUrl();
if ($this->assertText('Registered')) //'Registered' is a text displayed
if the registration is successful.
{ echo '<br> Success <br><br>';}
else
{echo '<br> Error <br><br>';}
;
;
}
;
And when I replace $this->getUrl(); with
$this->get('http://localhost/unit_testing/accounts/register, it fetches the
main registration page and not the "registration complete" page (again,
both are under the same URL).
I hope somehow I made myself clear. Any help would be appreciated. Thank
you.
|
|
From: Marie-Sophie L. <ms...@as...> - 2009-04-22 07:54:20
|
Dear all, If you're looking for a good position in test in Paris, don't hesitate to contact me. There is a very exciting test position available for someone who knows the web test tools and would like to work on a big website in the music field. The company is looking for someone to be in charge of the qualification of the entire website including the user interface. Ideally the tester can develop (PHP) and knows Symfony. If you want more information, you can send me an email. Marie ______________________________________________________________________ As part of our diversity agenda we are a supporter of Race for Opportunity. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please return it to the sender, delete the email and destroy any copies of it. The information contained in this email are the views of the author and may not necessarily reflect those of the Aston Carter Group |
|
From: Manuel V. <man...@gm...> - 2009-04-09 14:22:58
|
On Thu, Apr 9, 2009 at 3:32 PM, Jason Sweat <jsw...@ya...> wrote: > https://twitter.com/arnaudlimbourg/status/1483133462 > > #simpletest From now on, compatibility extends from PHP 5.0.5+. why bother with < 5.2 ? Hello, Because of some popular platforms that still ship PHP 5.1.6 (RHEL5 and co) ? Manuel |
|
From: Jason S. <jsw...@ya...> - 2009-04-09 13:58:53
|
https://twitter.com/arnaudlimbourg/status/1483133462 #simpletest From now on, compatibility extends from PHP 5.0.5+. why bother with < 5.2 ? |
|
From: Marcus B. <ma...@wo...> - 2009-03-21 23:22:18
|
Hi...
Eduardo Garcia wrote:
> Because checking the test web module doesn't exist assets functions for
> this kind of answer.
Underneath the SimpleBrowser class is something called SimpleUserAgent.
This has the get/post and header methods you need for XML-RPC, etc.
If you add an assert like this...
function assertJson($url, $expected) {
$agent = new SimpleUserAgent();
$this->assertIdentical($agent->get($url), $expected);
}
...I think this is close to what you want. If not, then let me know the
difference and we can go from there.
>
> Best regards
yours, Marcus
|
|
From: tarjei <ta...@nu...> - 2009-03-21 11:37:58
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > > We have used a mix of the Web Test Cases and HTTP_Request (Pear) wrapped in > a test helper for this. We did this because we are also testing XML-RPC and > decided to use the XML-RPC lib http://scripts.incutio.com/xmlrpc/ and wrap > this in a test case helper and this worked well. Remember that JSON and XML are just representations. Webtests actually mimmic what a browser does wrt to form submission following links etc. Unless you got a client behaviour you need to emulate in spesific ways, I would just create tests that do different types of asserts on these formats. For example: function test_comandReturnsCustomerObjectInJson() { $command = new MyCMD(); $json = json_decode($command->execute()); $this->assertEquals($json['customer']->id, 3); } Regards, Tarjei > > We are trying to use the Web Test case more but it seems to be heavily > orientated to HTML. > > Hope that helps. > > Cheers, > Pete > irc: cabbiepete > > > 2009/3/20 Eduardo Garcia <edu...@av...> > >> Hello people >> >> I need to create some test unit for an specific API, but the answers are >> provided using json or xml, someone could inform me what is the best >> option to create assert for this kind of response. >> >> Because checking the test web module doesn't exist assets functions for >> this kind of answer. >> >> Best regards >> -- >> >> *Eduardo Garcia* >> >> Web Developer >> >> Phone + 506.2.562.5000 ext 5097 | VoIP + 1.877.629.3682 ext 5097 >> www.avventa.com >> >> avVenta Worldwide US | Costa Rica >> >> avVenta Worldwide >> >> The contents of this email and all attachments are intended solely for >> the identified recipients, and consist of information that may be >> confidential or legally privileged. Any unauthorized copying, >> distribution or use of the information contained herein by anyone other >> than an intended recipient is prohibited. If you are not an intended >> recipient, please notify the sender and delete this message. Your >> cooperation is greatly appreciated. Thank you. >> >> >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJxNGPYVRKCnSvzfIRAh06AKCbywx4kpSjD21vfI/vMjsx09hbzACgvLCt 2N6C3IuSq1I/MzZNkOU3lS8= =ZbLm -----END PGP SIGNATURE----- |
|
From: Peter S. <cab...@gm...> - 2009-03-21 08:52:44
|
Hi, For what it's worth. We have used a mix of the Web Test Cases and HTTP_Request (Pear) wrapped in a test helper for this. We did this because we are also testing XML-RPC and decided to use the XML-RPC lib http://scripts.incutio.com/xmlrpc/ and wrap this in a test case helper and this worked well. We are trying to use the Web Test case more but it seems to be heavily orientated to HTML. Hope that helps. Cheers, Pete irc: cabbiepete 2009/3/20 Eduardo Garcia <edu...@av...> > Hello people > > I need to create some test unit for an specific API, but the answers are > provided using json or xml, someone could inform me what is the best > option to create assert for this kind of response. > > Because checking the test web module doesn't exist assets functions for > this kind of answer. > > Best regards > -- > > *Eduardo Garcia* > > Web Developer > > Phone + 506.2.562.5000 ext 5097 | VoIP + 1.877.629.3682 ext 5097 > www.avventa.com > > avVenta Worldwide US | Costa Rica > > avVenta Worldwide > > The contents of this email and all attachments are intended solely for > the identified recipients, and consist of information that may be > confidential or legally privileged. Any unauthorized copying, > distribution or use of the information contained herein by anyone other > than an intended recipient is prohibited. If you are not an intended > recipient, please notify the sender and delete this message. Your > cooperation is greatly appreciated. Thank you. > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Eduardo G. <edu...@av...> - 2009-03-20 21:26:52
|
Hello people I need to create some test unit for an specific API, but the answers are provided using json or xml, someone could inform me what is the best option to create assert for this kind of response. Because checking the test web module doesn't exist assets functions for this kind of answer. Best regards -- *Eduardo Garcia* Web Developer Phone + 506.2.562.5000 ext 5097 | VoIP + 1.877.629.3682 ext 5097 www.avventa.com avVenta Worldwide US | Costa Rica avVenta Worldwide The contents of this email and all attachments are intended solely for the identified recipients, and consist of information that may be confidential or legally privileged. Any unauthorized copying, distribution or use of the information contained herein by anyone other than an intended recipient is prohibited. If you are not an intended recipient, please notify the sender and delete this message. Your cooperation is greatly appreciated. Thank you. |
|
From: Perrick P. <pe...@no...> - 2009-03-17 13:44:11
|
Your entries actually made it to the planet-php.fr (the french version). I don't really know how they got there but hey... the news is out. http://www.planete-php.fr/ Thanks, Perrick Noel Darlow wrote: >> BTW as I am not familiar with the PHP world, how do you >> think I could promote these articles and the >> Test Automation newsletter a bit? > > The php blog round-up http://www.planet-php.net/ will be read by many > php-ers. You should be able to have yours added to the list. > > It would be nice to see some more publicity for SimpleTest. I don't > quite feel comfortable with PhpUnit apparently being the "de facto > standard". I don't want to start some kind of petty war but learning is > important and I think, uniquely, SimpleTest has a real test-infected > culture surrounding it. There's a critical mass of knowledge which I'm > not sure exists anywhere else in the world of php (perhaps I just > missed it). This is very important for budding php programmers who want > to learn about TDD. > > Noel > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > |
|
From: Noel D. <ma...@mc...> - 2009-03-16 13:27:08
|
> BTW as I am not familiar with the PHP world, how do you > think I could promote these articles and the > Test Automation newsletter a bit? The php blog round-up http://www.planet-php.net/ will be read by many php-ers. You should be able to have yours added to the list. It would be nice to see some more publicity for SimpleTest. I don't quite feel comfortable with PhpUnit apparently being the "de facto standard". I don't want to start some kind of petty war but learning is important and I think, uniquely, SimpleTest has a real test-infected culture surrounding it. There's a critical mass of knowledge which I'm not sure exists anywhere else in the world of php (perhaps I just missed it). This is very important for budding php programmers who want to learn about TDD. Noel |
|
From: Marcus B. <ma...@wo...> - 2009-03-16 09:55:03
|
Hi... Gabor Szabo wrote: > BTW as I am not familiar with the PHP world, how do you > think I could promote these articles and the > Test Automation newsletter a bit? Sitepoint would help, as would: http://forums.devnetwork.net/viewforum.php?f=39 > regards > Gabor yours, Marcus |
|
From: Perrick P. <pe...@no...> - 2009-03-15 22:27:59
|
There used to be such a list. I'll have a look tomorrow to get it back on the web. I don't know where it's gone :-( Yours, Perrick Gabor Szabo wrote: > Hi, > > I was looking at http://simpletest.org/ but could not find a list of > projects using SimpleTest. > > It would be great if you could point me to such list - I am mostly > interested in > Open Source projects - or if there is no such list if people here > pointed out where > are they using it? > > It does not matter if the project is small, if it is open source > I'd like to see how are you using it? > > Gabor > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > |
|
From: Gabor S. <sz...@gm...> - 2009-03-15 17:06:35
|
Hi, I was looking at http://simpletest.org/ but could not find a list of projects using SimpleTest. It would be great if you could point me to such list - I am mostly interested in Open Source projects - or if there is no such list if people here pointed out where are they using it? It does not matter if the project is small, if it is open source I'd like to see how are you using it? Gabor |
|
From: Gabor S. <sz...@gm...> - 2009-03-15 17:02:17
|
On Sun, Mar 15, 2009 at 6:38 PM, Marcus Baker <ma...@wo...> wrote: > Hi... > > Gabor Szabo wrote: >> http://szabgab.com/blog/2009/03/1237128967.html >> >> Your comments are welcome! > > I'd normally write... Great advice, many new things to incorporate in the next article or just in the course material. Thanks! BTW as I am not familiar with the PHP world, how do you think I could promote these articles and the Test Automation newsletter a bit? regards Gabor |
|
From: Marcus B. <ma...@wo...> - 2009-03-15 16:37:56
|
Hi... Gabor Szabo wrote: > http://szabgab.com/blog/2009/03/1237128967.html > > Your comments are welcome! I'd normally write... class TestOfCalculator extends WebTestCase { function testBasicCalc() { $url = 'http://localhost:8081/php/calc/basic_calc.php'; $this->assertTrue($this->get($url)); $this->assertText('Basic Calculator'); $this->assertTitle('Scientific Calculator'); $this->assertField('a', ''); $this->assertField('b', ''); $this->assertNoText('Result:'); $this->clickSubmit('Add'); $this->assertTrue($this->clickSubmit('Add')); $this->assertText('Result:'); } } ...as... class TestOfCalculator extends WebTestCase { function testCalculatorCanAddTwoNumbers() { $this->get($this->home() . 'calc/basic_calc.php')); $this->setField('a', 5); $this->setField('b', 9); $this->click('Add'); $this->assertText('Result: 5+9=14'); } function home() { return 'http://localhost:8081/php/'; // Usually smarter. } } Web tests are often used as acceptance tests. Having them "tell the story" is really nice. So... 1) I moved the main domain out of the test. It also allows it to be overridden on different machines using configuration or a script name look-up. 2) The titles and stuff are really up to the graphic designer and content author. You wouldn't want them to break your tests on every writing whim. I tend to use assertTitle() to make sure things like redirects are working, but not much else. 3) I've renamed the test into something that would appear on a requirement. Anything not part of the requirement I've purged. 4) assertText() normalises whitespace into just a single space for everything. 5) I tend to use click() for everything as it's the shortest. As an aside there are some other more practical features that have a "Wow!" factor for beginners, and everyone else trying to debug things... * Any method that fetches a page - get(), post(), click*(), etc - returns the raw HTML. Just put a "print" in front of the get() and you'll see what I mean. * showSource() shows the current content, and will escape it if you are in the HtmlReporter. * showRequest() and showHeaders() shows the outgoing and incoming headers respectively. You probably know this already, but I find that these get a great response when I've been doing 1 on 1 demos. > > Gabor Anyway, thanks for the article :). yours, Marcus p.s. there is clickById() if you have labeled the buttons, and there might be assertFieldById() to. |