How to add css and js to a views-view-table--viewname.tpl.php I am theming a  particular view "test" so my theme file is "views-view-table--test.tpl.php".
Its working fine.

I want to add css and javascript to the "views-view-table--test.tpl.php" file
Used the below code to add css and javascript. but its not working:

drupal_add_css("themes/bartik/style-test.css", $type = 'file', $media = 'all', $preprocess = FALSE);
drupal_add_js("jquery.min.js", $type = 'file', $media = 'all', $preprocess = FALSE); 


How to add css and js to views-view-table--viewname.tpl.php file.
You could do this by using a process function at theme level...

function YOURTHEME_preprocess_views_view(&amp;$vars) {
    if (isset($vars['view']-&gt;name) &amp;&amp; $vars['view']-&gt;name == 'YOURVIEW') {
        drupal_add_css("themes/bartik/style-test.css", $type = 'file', $media = 'all', $preprocess = FALSE);
        drupal_add_js("jquery.min.js", $type = 'file', $media = 'all', $preprocess = FALSE); 
    }
}



Change 'YOURTHEME' to the theme you are using so if 'bartik' then
you want bartik_preprocess_views_view().
Change 'YOURVIEW' to the name of your view. You can get this by
printing $vars['view']->name from the function.
Clear caches after adding function.