|
From: arpit a. <arp...@ya...> - 2008-12-02 06:28:13
|
Hi,
I have followed all proper steps stated in Read me and all are successfully done but there are no option is coming in eclipse while creating a ner project as sample as stated in Docs.
And while i am trying to Run Test Case as Run As Simple test as option started coming
Its giving error
Running:
echo "<?php $path='C:\simpletest_1.0.1.eclipse_0.2.4\plugins';ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));ini_set('html_errors','0');$fullpath = realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts = pathinfo($fullpath);$filename = $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new GroupTest($filename);$test->addTestFile($fullpath);$test->run(new XmlReporter()); ?>" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program Files\PHP\php.ini"
*************
Process returned: 255
Process error:
PHP Warning: include_once(eclipse.php): failed to open stream: No such file or directory in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion (include_path='.;C:\php5\pear;C:\simpletest_1.0.1.eclipse_0.2.4\plugins') in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
PHP Fatal error: Class 'GroupTest' not found in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
Read error:Read error
[Ljava.lang.StackTraceElement;@1220c1b
Please find out the problem if any in Installation.Lookin forword for positive responce
Thanks
Arpit Agarwal
(+91)9899655375
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
|
|
From: Steven B. <ste...@gm...> - 2008-12-02 14:40:35
|
On Mon, Dec 1, 2008 at 11:27 PM, arpit agarwal <arp...@ya...> wrote:
> Hi,
>
> I have followed all proper steps stated in Read me and all are successfully done but there are no option is coming in eclipse while creating a ner project as sample as stated in Docs.
>
> And while i am trying to Run Test Case as Run As Simple test as option started coming
> Its giving error
>
> Running:
> echo "<?php $path='C:\simpletest_1.0.1.eclipse_0.2.4\plugins';ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));ini_set('html_errors','0');$fullpath = realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts = pathinfo($fullpath);$filename = $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new GroupTest($filename);$test->addTestFile($fullpath);$test->run(new XmlReporter()); ?>" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program Files\PHP\php.ini"
> *************
> Process returned: 255
> Process error:
> PHP Warning: include_once(eclipse.php): failed to open stream: No such file or directory in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
> PHP Stack trace:
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
> PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion (include_path='.;C:\php5\pear;C:\simpletest_1.0.1.eclipse_0.2.4\plugins') in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
The path that you have set for Simpletest is wrong. According to the
trace, Simpletest is trying to load from the path:
"C:\simpletest_1.0.1.eclipse_0.2.4\plugins". Open that directory and
verify that this directory contains the files: eclipse.php and
unit_tester.php (among many others). If the directory is incorrect
then change the directory in Eclipse by selecting "Windows" ->
"Preferences"; then selecting the Simpletest option from the left hand
column; then insert the correct path into the "Simpletest Path:"
entry.
Regards,
Steven Balthazor
|
|
From: arpit a. <arp...@ya...> - 2008-12-03 04:31:13
|
Hi,
As i extract the source file i got the eclipse.php and unit_tester.php with other files and i had placed at mention path yet it is given error on console.I am using PHP 5
unning:
echo "<?php $path='C:\simpletest_1.0.1.eclipse_0.2.4';ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));ini_set('html_errors','0');$fullpath = realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts = pathinfo($fullpath);$filename = $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new GroupTest($filename);$test->addTestFile($fullpath);$test->run(new XmlReporter()); ?>" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program Files\PHP\php.ini"
*************
PHP Warning: include_once(eclipse.php): failed to open stream: No such file or directory in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php:0
PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion (include_path='C:\PHP\workspace\AIJoabBoard2008\src;C:\simpletest_1.0.1.eclipse_0.2.4') in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php:0
PHP Fatal error: Class 'GroupTest' not found in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest54908.php:0
Process returned: 255
Thanks
Arpit
--- On Tue, 2/12/08, Steven Balthazor <ste...@gm...> wrote:
From: Steven Balthazor <ste...@gm...>
Subject: Re: [Simpletest-support] Error in PHP Unt test
To: arp...@ya..., "Help, advice, bugs and workarounds" <sim...@li...>
Date: Tuesday, 2 December, 2008, 8:10 PM
On Mon, Dec 1, 2008 at 11:27 PM, arpit agarwal <arp...@ya...>
wrote:
> Hi,
>
> I have followed all proper steps stated in Read me and all are
successfully done but there are no option is coming in eclipse while creating a
ner project as sample as stated in Docs.
>
> And while i am trying to Run Test Case as Run As Simple test as option
started coming
> Its giving error
>
> Running:
> echo "<?php
$path='C:\simpletest_1.0.1.eclipse_0.2.4\plugins';ini_set('include_path',
get_include_path().PATH_SEPARATOR .
realpath($path));ini_set('html_errors','0');$fullpath =
realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts
= pathinfo($fullpath);$filename =
$pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new
GroupTest($filename);$test->addTestFile($fullpath);$test->run(new
XmlReporter()); ?>" | "C:\Program
Files\PHP\php.exe" -q -c "C:\Program
Files\PHP\php.ini"
> *************
> Process returned: 255
> Process error:
> PHP Warning: include_once(eclipse.php): failed to open stream: No such
file or directory in C:\Documents and Settings\arpit716\Local
Settings\Temp\Simpletest14634.php on line 1
> PHP Stack trace:
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
Settings\Temp\Simpletest14634.php:0
> PHP Warning: include_once(): Failed opening 'eclipse.php' for
inclusion
(include_path='.;C:\php5\pear;C:\simpletest_1.0.1.eclipse_0.2.4\plugins')
in C:\Documents and Settings\arpit716\Local
Settings\Temp\Simpletest14634.php on line 1
The path that you have set for Simpletest is wrong. According to the
trace, Simpletest is trying to load from the path:
"C:\simpletest_1.0.1.eclipse_0.2.4\plugins". Open that
directory and
verify that this directory contains the files: eclipse.php and
unit_tester.php (among many others). If the directory is incorrect
then change the directory in Eclipse by selecting "Windows" ->
"Preferences"; then selecting the Simpletest option from the left
hand
column; then insert the correct path into the "Simpletest Path:"
entry.
Regards,
Steven Balthazor
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Simpletest-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simpletest-support
Get perfect Email ID for your Resume. Grab now http://in.promos.yahoo.com/address
|
|
From: Steven B. <ste...@gm...> - 2008-12-03 14:57:51
|
On Tue, Dec 2, 2008 at 9:29 PM, arpit agarwal <arp...@ya...> wrote:
> Hi,
>
> As i extract the source file i got the eclipse.php and unit_tester.php with
> other files and i had placed at mention path yet it is given error on
> console.I am using PHP 5
>
>
> unning:
>
> echo "<?php
> $path='C:\simpletest_1.0.1.eclipse_0.2.4';ini_set('include_path',
> get_include_path().PATH_SEPARATOR .
> realpath($path));ini_set('html_errors','0');$fullpath =
> realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.php');$pathparts
> = pathinfo($fullpath);$filename =
> $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new
> GroupTest($filename);$test->addTestFile($fullpath);$test->run(new
> XmlReporter()); ?>" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program
> Files\PHP\php.ini"
>
> *************
>
> PHP Warning: include_once(eclipse.php): failed to open stream: No such file
> or directory in C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion
> (include_path='C:\PHP\workspace\AIJoabBoard2008\src;C:\simpletest_1.0.1.eclipse_0.2.4')
> in C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> PHP Fatal error: Class 'GroupTest' not found in C:\Documents and
> Settings\arpit716\Local Settings\Temp\Simpletest54908.php on line 1
>
> PHP Stack trace:
>
> PHP 1. {main}() C:\Documents and Settings\arpit716\Local
> Settings\Temp\Simpletest54908.php:0
>
> Process returned: 255
>
> Thanks
> Arpit
I think you misunderstood my instructions from yesterday. You should
not move the files eclipse.php and unit_tester.php; you should change
the path in the eclipse preferences to point to the correct directory.
The directory that you select in the preferences needs to have
eclipse.php and unit_tester.php in it, but it should have the rest of
the simpletest files also. Your path is still not correct.
One way to absolutely solve this problem is:
1. download the simpletest_1.0.1 tarball from:
http://sourceforge.net/project/showfiles.php?group_id=76550
2. extract this tarball to your local machine
3. find the directory from the extracted tarball which has the files:
eclipse.php and unit_tester.php -- copy the path for this directory
into the Simpletest preferences in eclipse.
Regards,
Steven Balthazor
|