# --------------------------------------------------------------------- include "./api/include_api.php"; auth_authenticate_user(); $page = basename(__FILE__); $s_test_details = session_get_properties("test"); $project_prop = session_get_project_properties(); $test_id = $s_test_details['test_id']; $project_id = $project_prop['project_id']; $redirect_page = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2"; $redirect_on_error = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2"; session_validate_form_set($_POST, $redirect_page); $project_properties = session_get_project_properties(); $upload_path = $project_properties['test_upload_path']; $s_user = session_get_user_properties(); $username = $s_user['username']; $test_name = test_get_name($test_id); $comments = session_validate_form_get_field('comments'); $doc_type = session_validate_form_get_field('doc_type'); $upload_file_name = $_FILES['uploadfile']['name']; $_FILES['uploadfile']['name'] = str_replace(" ", "_", $upload_file_name); # ------------------------------------------------ # FILE UPLOAD # ------------------------------------------------ if ($_FILES['uploadfile']['size'] != '0' && is_uploaded_file($_FILES['uploadfile']['tmp_name'])) { file_add_supporting_test_doc($_FILES['uploadfile']['tmp_name'], $_FILES['uploadfile']['name'], $test_id, $comments, $doc_type); } else { error_report_show($redirect_on_error, NO_FILE_SPECIFIED); } html_print_operation_successful('file_upload_page', $redirect_page); # --------------------------------------------------------------------- # $Log: test_detail_new_upload_action.php,v $
case "Not Started": $not_started_count++; break; case "Finished : QA Review": $finished_qa_count++; break; case "Finished : Business Review": $finished_ba_count++; break; case "WRIssue": $wr_issue_count++; break; } $table_body .= "<tr class='{$row_style}'>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "<td class=tbl-l nowrap>" . test_get_name($test_id) . "</td>" . NEWLINE; $table_body .= "<td class=tbl-r nowrap>{$test_status}</td>" . NEWLINE; $table_body .= results_verfication_status_icon($test_status); $table_body .= "<td>{$pc_req_covered_by_test}%</td>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "</tr>" . NEWLINE; } $table_body .= "<tr class='{$row_style}'>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; $table_body .= "<td></td>" . NEWLINE; if ($count_percent_cov > 100) { $count_percent_cov = "100"; }
#---------------------------------------------------------------------- # --------------------------------------------------------------------- # Test Detail Update Action Page # # $RCSfile: test_detail_update_action.php,v $ $Revision: 1.10 $ # --------------------------------------------------------------------- include "./api/include_api.php"; auth_authenticate_user(); $project_properties = session_get_project_properties(); $project_id = $project_properties['project_id']; $username = session_get_username(); $s_test_details = session_get_properties("test"); $test_id = $s_test_details['test_id']; $test_version_id = $s_test_details['test_version_id']; $redirect_page = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}"; $current_test_name = test_get_name($test_id); session_validate_form_set($_POST, "test_detail_update_page.php"); $testname = session_validate_form_get_field('testname_required'); $testpurpose = session_validate_form_get_field('testpurpose'); $testcomments = session_validate_form_get_field('testcomments'); $testpriority = session_validate_form_get_field('testpriority'); $teststatus = session_validate_form_get_field('teststatus'); $testareatested = session_validate_form_get_field('testareatested'); $testtype = session_validate_form_get_field('testtype'); $ba_owner = session_validate_form_get_field('ba_owner'); $qa_owner = session_validate_form_get_field('qa_owner'); $tester = session_validate_form_get_field('tester'); $assigned_to = session_validate_form_get_field('assigned_to'); $assigned_by = session_validate_form_get_field('assigned_by'); $dateassigned = session_validate_form_get_field('dateassigned'); $dateexpcomplete = session_validate_form_get_field('dateexpcomplete');
if ($show_memory_stats == 'Y') { print "<td class='tbl-c'>" . results_format_memory_stats($tot_phy_mem) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($free_phy_mem) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($tot_vir_mem) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($free_vir_mem) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($cur_mem_util) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($tot_page_file) . "</td>" . NEWLINE; print "<td class='tbl-c'>" . results_format_memory_stats($free_page_file) . "</td>" . NEWLINE; } print "</tr>" . NEWLINE; } print "</table>" . NEWLINE; } else { print "place no test result message here<br>" . NEWLINE; } $test_suite_name = test_get_name($test_id); print "<br>"; if (!$locked) { print "<FORM ENCTYPE=multipart/form-data ACTION='results_upload_test_run_file.php' METHOD=post onSubmit='return validatefilename()'>" . NEWLINE; print "<input type=hidden name=test_id \t\tVALUE={$test_id}>" . NEWLINE; print "<input type=hidden name=testset_id \tVALUE={$testset_id}>" . NEWLINE; print "<input type=hidden name=MAX_FILE_SIZE VALUE=5000000>" . NEWLINE; print "<input type=hidden name=test_run_id \tVALUE={$test_run_id}>" . NEWLINE; print "<table class=width70>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; # Title print "<tr><td colspan=2 align=left><h4>" . lang_get('upload_doc_test_run') . "</h4></td></tr>" . NEWLINE; # uploadfile --> print "<tr>" . NEWLINE;