Nested paths

Please tell us what your think of Bromine
Ideas? Bugs? Is it good? Why? Is it poor? Why?

Nested paths

Postby Bretick » Wed Apr 20, 2011 3:33 pm

Hello,

I've recently started use Bromine and I've got some problem, yellow notices...

Code: Select all
Notice (8): Undefined variable: nested_path [APP\views\requirements\testlabview.ctp, line 170]
Notice (8): Undefined variable: nested_consolePath [APP\views\requirements\testlabview.ctp, line 170]


Could someone help me to fix it, please? I don't know how... Thank you
Bretick
 
Posts: 9
Joined: Sun Apr 10, 2011 1:01 pm

Re: Nested paths

Postby pdavid » Wed Apr 20, 2011 6:05 pm

First time seeing that warning. Are you using the last version of Bromine (RC2) ?
TECHNOMEDIA – La clé des talents

Philippe David
Developer

Montréal
Tél. : +1 514 287-1561 poste 483
Paris
Tél. : +33 (0)1 48 01 03 53


http://www.technomedia.com
MONTRÉAL - PARIS - TORONTO - CHICAGO
pdavid
Site Admin
 
Posts: 13
Joined: Fri Jan 14, 2011 10:33 pm
Location: Montreal, Qc, Canada

Re: Nested paths

Postby Bretick » Wed Apr 20, 2011 8:11 pm

Yes, I am. And zipupdate plugin confirms it too.
There is the code from the .tcp file:
Code: Select all
$nested_path = "http://$servername:$port/runrctests/runAndViewNestedRequirement/".$requirement['Requirement']['id']."/user:".$session->read('Auth.User.name').'/password:'.$user_password.'/project:'.$session->read('project_id').'/site_id:'.$session->read('site_id');

$nested_consolePath = "http://$servername:$port/runrctests/runNoViewNestedRequirement/".$requirement['Requirement']['id']."/user:".$session->read('Auth.User.name').'/password:'.$user_password.'/project:'.$session->read('project_id').'/site_id:'.$session->read('site_id');


At State of the system is everything OK, tests are evaluated correctly, ...
Bretick
 
Posts: 9
Joined: Sun Apr 10, 2011 1:01 pm

Re: Nested paths

Postby jpp » Sat Apr 23, 2011 9:41 pm

More info please.

When and how does it happen. Does it always happen, if not can you recreate it.

Configuration / setup info can also be helpful.
jpp
Site Admin
 
Posts: 325
Joined: Tue Jan 12, 2010 1:46 pm
Location: Denmark

Re: Nested paths

Postby Bretick » Thu Apr 28, 2011 4:38 pm

I'm sorry, here it is...
Bromine 3 RC 2 (edited previously wrong Bromine 3 RC 1) on Win Vista, WampServer 2.0 (Apache 2.0.x, PHP 5.2.8, MySQL 5.1.30), Firefox 3.6.16

I get notices immediately when I install Bromine. I get this when I'm in the sample project and newly created projects with requirements and testcases, too.
But when I create for example this structure:
[MyProject]
- FirstRequirement
--- FirstNestedRequirement
----- TestCase01
----- TestCase02
- SecondRequirement

Then in FirstRequirement view there is nested_path and nested_consolePath correct, but in FirstNestedRequirement view and SecondRequirement view there are yellow notices "Undefined variable...".


Some additional information:

nested_path
Code: Select all
include - APP\views\requirements\testlabview.ctp, line 165
View::_render() - CORE\cake\libs\view\view.php, line 666
View::render() - CORE\cake\libs\view\view.php, line 376
Controller::render() - CORE\cake\libs\controller\controller.php, line 803
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 230
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

link CODE
Code: Select all
<dd>            <a onclick="Effect.toggle('directlink','blind');" style='cursor: pointer;'>Show</a>

            <div id='directlink' style='display: none;'><?php echo 'With viewer: '.$path.'<br />'.'Without viewer: '.$consolePath . '<br /> With viewer (nested):' .$nested_path . '<br />' . 'Without viewer(nested): '. $nested_consolePath; ?></div>



nested_consolePath
Code: Select all
include - APP\views\requirements\testlabview.ctp, line 165
View::_render() - CORE\cake\libs\view\view.php, line 666
View::render() - CORE\cake\libs\view\view.php, line 376
Controller::render() - CORE\cake\libs\controller\controller.php, line 803
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 230
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

link CODE
Code: Select all
<dd>
            <a onclick="Effect.toggle('directlink','blind');" style='cursor: pointer;'>Show</a>

            <div id='directlink' style='display: none;'><?php echo 'With viewer: '.$path.'<br />'.'Without viewer: '.$consolePath . '<br /> With viewer (nested):' .$nested_path . '<br />' . 'Without viewer(nested): '. $nested_consolePath; ?></div>
Last edited by Bretick on Fri Apr 29, 2011 9:47 am, edited 2 times in total.
Bretick
 
Posts: 9
Joined: Sun Apr 10, 2011 1:01 pm

Re: Nested paths

Postby jpp » Thu Apr 28, 2011 11:18 pm

You should think about upgrading unless you need something specifically that was omitted in RC 2 (I recall only that email part was omitted in RC 2). Most likely those notices was fixed along with a range of other things.

Of cause do take backup of your bromine installation first and database (better safe than sorry), you can use the zipupdate plugin to upgrade to RC 2 directly from within Bromine.

In case you don't want to upgrade you can always lower the warning levels in php / cakephp, from the looks it happens because there are no nested paths but we still try to use the variable even though it doesn't exist, hence the notice. I don't think it has any real impact on the functionality of Bromine so you could just live with the notices or lower the warning level.
jpp
Site Admin
 
Posts: 325
Joined: Tue Jan 12, 2010 1:46 pm
Location: Denmark

Re: Nested paths

Postby Bretick » Fri Apr 29, 2011 12:03 am

Of course, I know that and I've actually started with RC 2, but I really need the email report part... When I can compare RC 1 and RC 2, the second is definitely better but unfortunately missing included email reporting function which is now important for me. I need to have automatic and scheduled tests (this I can achieve with both) and also to notificate admins about results first only by emails and after that, if there are some issues, the admins will check test views.
Bretick
 
Posts: 9
Joined: Sun Apr 10, 2011 1:01 pm

Re: Nested paths

Postby jpp » Fri Apr 29, 2011 9:41 am

Unfortunately you are stuck with RC 1 then and must wait for it to be fixed. I know it's been quite awhile since we released RC 2 and next iteration is still far away due to personal matters within the team, however we did get a new man onboard the Bromine team who has been looking to fix alot of bugs, perhaps he will eventually get to the email feature though a time estimate is not available.
jpp
Site Admin
 
Posts: 325
Joined: Tue Jan 12, 2010 1:46 pm
Location: Denmark

Re: Nested paths

Postby Bretick » Fri Apr 29, 2011 9:47 am

Bretick wrote:Bromine 3 RC 2 (edited previously wrong Bromine 3 RC 1) on Win Vista...


I'm sorry again for confusing information. I'm experimenting with both versions (RC 1 and RC 2) and the notices which I get are within Bromine 3 RC 2 last update (not Bromine 3 RC 1 which I write wrong previously)
Bretick
 
Posts: 9
Joined: Sun Apr 10, 2011 1:01 pm


Return to Evaluation

Who is online

Users browsing this forum: No registered users and 1 guest

cron