$autopass = "******"; } $filename = test_get_filename($test_id); # FIGURE OUT WHAT SYMBOL TO EXPORT ("M", "A", "M/A", OR "") if ($manual == "YES") { if ($automated == "YES") { $script = "M/A"; } else { $script = "M"; } } elseif ($automated == "YES") { $script = "A"; } else { $script = ""; } $file_type = util_get_filetype(test_get_filename($test_id)); print "{$test_id},{$script},{$file_type},{$autopass},{$test_name},{$ba_owner},{$qa_owner},{$tester},{$test_type},{$area_tested}\r" . NEWLINE; } exit; # --------------------------------------------------------------------- # $Log: test_csv_export.php,v $ # Revision 1.3 2007/03/14 17:45:53 gth2 # removing code that passes varables by reference - gth # # Revision 1.2 2006/08/05 22:09:13 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth # # Revision 1.1.1.1 2005/11/30 23:00:58 gth2 # importing initial version - gth # # ---------------------------------------------------------------------
$qa_owner = $row_test_detail[TEST_QA_OWNER]; $tester = $row_test_detail[TEST_TESTER]; $test_type = $row_test_detail[TEST_TESTTYPE]; $manual = $row_test_detail[TEST_MANUAL]; $automated = $row_test_detail[TEST_AUTOMATED]; $area_tested = $row_test_detail[TEST_AREA_TESTED]; $autopass = $row_test_detail[TEST_AUTO_PASS]; $test_status = $row_test_detail[TEST_STATUS]; $priority = $row_test_detail[TEST_PRIORITY]; $display_test_id = util_pad_id($test_id); if ($row_test_detail[TEST_AUTO_PASS] == "Y") { $autopass = "******"; } else { $autopass = "******"; } $filename = test_get_filename($test_id); #$row_style = html_tbl_alternate_bgcolor($row_style); #print"<tr class='$row_style'>". NEWLINE; $row_style = html_tbl_alternate_bgcolor($row_style); print "<tr class='{$row_style}'>" . NEWLINE; print "<td><input type='checkbox' name='row_test_arr[{$test_id}]'></td>" . NEWLINE; print "<td class='tbl-c'><a href='{$test_update_url}?test_id={$test_id}'><img src='" . IMG_SRC . "update.gif' title='" . lang_get('update_test') . "' border=0></a></td>" . NEWLINE; //$detail_url = $detail_page ."?test_id=". $test_id ."&test_version_id=". $test_version_id; $detail_url = $detail_page . "?test_id=" . $test_id . "&project_id=" . $project_id; print "<td class='tbl-c'><a href='{$detail_url}' title='" . lang_get('test_view_detail') . "'>{$display_test_id}</a></td>" . NEWLINE; print "<td class='tbl-c'>" . html_print_testtype_icon($manual, $automated) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . html_file_type($filename) . "</td>" . NEWLINE; print "<td class='tbl-l'>{$autopass}</td>" . NEWLINE; print "<td class='tbl-l'>{$test_name}</td>" . NEWLINE; print "<td class='tbl-l'>{$ba_owner}</td>" . NEWLINE; print "<td class='tbl-l'>{$qa_owner}</td>" . NEWLINE;