List Info

Thread: Problem with autorun.php




Problem with autorun.php
country flaguser name
France
2007-06-01 15:21:42
Hello all,

I have a problem with autorun.php 

My script :
[code]
<?php
require_once('/home/david/www/outils/simpletestCVS/simpletes
t/autorun.php');
require_once('/home/david/www/outils/simpletestCVS/simpletes
t/extensions/dom_tester.php');

class TestOfLiveCssSelectors extends DomTestCase {
  function testGet() {
    $url = 'http://simpletest.org/';
    $this->assertTrue($this->get($url));
    $this->assertEqual($this->getUrl(), $url);
    $this->assertElementsBySelector(
      'h2',
      array('Screenshots', 'Documentation', 'Contributing')
    );
  }
}
?>  
[/code]

My error :
[message]
Exécuter : Php

Warning: file_get_contents(/home/david/www/mesTests/-):
failed to open
stream: No such file or directory
in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on line
52

Fatal error: Class 'SimpleFileLoader' not found
in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on line
23

Terminé: 65280
[/message]

I don't use autorun because with me is not run. 
Autorun simplify the code of the test, but i'm writing
all_test.php
with old method.

Where is Class 'SimpleFileLoader'? Where is my error ?

David,
 	
relector of the French translation of simpletest 


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Simpletest-support mailing list
Simpletest-supportlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support
Re: Problem with autorun.php
user name
2007-06-04 14:52:14
>
> Warning: file_get_contents(/home/david/www/mesTests/-):
failed to open
> stream: No such file or directory
> in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on line
> 52

That's quite strange... Could you please show how you
actually run your tests?

>
> Fatal error: Class 'SimpleFileLoader' not found
> in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on line
> 23

Seems like autorun.php uses new SimpleFileLoader which is
located in
test_case.php which in its turn is simply not included. I'm
currently
away from my dev. box but if none commits the fix I'll do it
myself
tomorrow.

-- 
Best regards, Pavel

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Simpletest-support mailing list
Simpletest-supportlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support

Re: Problem with autorun.php
country flaguser name
France
2007-06-05 05:24:20
Hello David & Pavel,

I found it strange as well.

Pavel Shevaev wrote:
>> Fatal error: Class 'SimpleFileLoader' not found
>> in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on line
>> 23
> 
> Seems like autorun.php uses new SimpleFileLoader which
is located in
> test_case.php which in its turn is simply not included.
I'm currently
> away from my dev. box but if none commits the fix I'll
do it myself
> tomorrow.

In 'autorun.php', there is :
     require_once dirname(__FILE__) . '/unit_tester.php';

Then in 'unit_tester.php', there is :
     require_once(dirname(__FILE__) . '/test_case.php');

And finally in 'test_case.php', there is :
     class SimpleFileLoader {

This is really weird... Could it be some permissions problem
?

	Perrick

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Simpletest-support mailing list
Simpletest-supportlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support

Re: Problem with autorun.php
country flaguser name
France
2007-06-05 15:42:37
Le Tue, 05 Jun 2007 08:02:42 -0700,
Travis Swicegood <developmentdomain51.com> a écrit :

> Perrick Penet wrote:
> > Hello David & Pavel,
> >
> > I found it strange as well.
> >
> > Pavel Shevaev wrote:
> >   
> >>> Fatal error: Class 'SimpleFileLoader' not
found
> >>> in
/home/david/www/outils/simpletestCVS/simpletest/autorun.php
on
> >>> line 23
> >>>       
> >> Seems like autorun.php uses new
SimpleFileLoader which is located
> >> in test_case.php which in its turn is simply
not included. I'm
> >> currently away from my dev. box but if none
commits the fix I'll
> >> do it myself tomorrow.
> >>     
> >
> > In 'autorun.php', there is :
> >      require_once dirname(__FILE__) .
'/unit_tester.php';
> >
> > Then in 'unit_tester.php', there is :
> >      require_once(dirname(__FILE__) .
'/test_case.php');
> >
> > And finally in 'test_case.php', there is :
> >      class SimpleFileLoader {
> >
> > This is really weird... Could it be some
permissions problem ?
> 
> Maybe, but require should die if it can't read a file. 
I'm not sure 
> what's up though, as all of my tests have been using
autorun.php
> since it came out and the only error I occasionally get
is when
> there's no valid test case to run (i.e., I goofed).
> 

Sorry, it's not a problem with a permission but my version	$Id:
test_case.php,v 1.35 2006/11/27 18:38:48 jsweat Exp $ 

David.
 
> -T
> 
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Simpletest-support mailing list
> Simpletest-supportlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/simp
letest-support
> 

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Simpletest-support mailing list
Simpletest-supportlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support
Re: Problem with autorun.php
country flaguser name
France
2007-06-06 12:24:26
Le Tue, 05 Jun 2007 14:38:19 -0700,
Travis Swicegood <developmentdomain51.com> a écrit :

> David wrote:
> > Sorry, it's not a problem with a permission but my
version
> > $Id: test_case.php,v 1.35 2006/11/27 18:38:48
jsweat Exp $ 
> >   
> 
> It looks like your copy is out of date, here's mine:
> 
>     $ grep version autorun.php
>          *  version        $Id: autorun.php,v 1.8
2007/05/08 22:08:06
>     lastcraft Exp $
> 
> Make sure you're running the latest copy and see if it
still has
> issues.
> 
Thanks, for you tips but my problem depends a lot of file to
autorun.php.
I'm delete all files of my CVS check out and import a new  
cvs
-d:pserver:anonymoussimpletest.cvs.sourceforge.net:/cvsroot/simpletest
co -P simpletest

That all, finally.
> -Travis
> 
David.
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Simpletest-support mailing list
> Simpletest-supportlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/simp
letest-support
> 

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Simpletest-support mailing list
Simpletest-supportlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simp
letest-support
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )