There’s no browse button in v6.8, seems they simply forgot it. ^^
Luckily that’s not much of a problem.
I’ve read the post about the problems with firefox, that’s why I also tried with chromium. Of course it’s possible that both browsers have the same problem, so at least I’m willing to upgrade the selenium server. The problem is, that I’ve no idea where those netbeans plugins get installed. And ekerazha mentioned, that one has to use the filename of the original file, which sounds to me as if it was something different that ‘selenium-server.jar’, so I have no clue what to search for.
No specific reason, I simply installed it using synaptic. Now I updated to 6.9.1, and at least, there is the button that let’s me select the folder for unit tests in the settings dialog. But no luck with the functional tests till now.
Thanks for your replies! If anyone has more suggestions, please let me know.
0.- Rename your selenium-server.jar to selenium-server-1.0.1.jar and place it in your userdir by default it is in my widowsxp pc under C:\Documents and Settings\Bajja.ISSP_00\.netbeans\6.9\modules\ext\selenium
1.- Right click your project. Select PHPunit. Activate Use Bootstarp (and browse to you bootstarp file) and Use Bootstarp for creating New unit Tests.
2.- In WebTestCase.php change setUp:
protected function setUp()
{
parent::setUp();
[b]$this->setBrowser('*chrome');[/b]
$this->setBrowserUrl(TEST_BASE_URL);
}
3.- In WebTestCase.php change
define('TEST_BASE_URL','http://localhost/[b]testdrive[/b]/index-test.php/'); //testdrive => must be your application.
The problem was the outdated selenium-server (1.0.1). I found it in ~/.netbeans/6.9/modules/ext/selenium (don’t know why my search didn’t show it, maybe it doesn’t search hidden folder by default? Have to check that…), replaced it with version 1.0.3 (named as ‘selenium-server-1.0.1.jar’), restarted netbeans (just in case) and voilà!
Thanks a lot!
By the way, has anyone of you run the SiteTest generated by yiic? To me, it reports one error:
Warning: require_once(D:\xampp\htdocs\trackstar\protected\tests../../framework/yiit.php): failed to open stream: No such file or directory in D:\xampp\htdocs\trackstar\protected\tests\bootstrap.php on line 7
Fatal error: require_once(): Failed opening required ‘D:\xampp\htdocs\trackstar\protected\tests../../framework/yiit.php’ (include_path=’.:\xampp\php\PEAR’) in D:\xampp\htdocs\trackstar\protected\tests\bootstrap.php on line 7
my bootstrap file:
<?php
// change the following paths if necessary
$yiit=dirname(__FILE__).'../../framework/yiit.php';
$config=dirname(__FILE__).'/../config/test.php';
require_once($yiit);
require_once(dirname(__FILE__).'/WebTestCase.php');
Yii::createWebApplication($config);
One common thing that pops to mind - your naming conventions.
How are your files and test named? Are they "PostTest.php" for files and "testReadNewCommemnt(){…}, having these conventions is how phpunit distinguishes a test file.
I had following everything in this thread, but PHPUnit still doesn’t work in my netbeans… it always return error “More than two positional arguments provided.”
So for now i used my shell for testing, can anyone provide best possible configuration for nunit to work with yii in netbeans?