From fff0e399eb7b57ecd0ddce1b742da8c22968014c Mon Sep 17 00:00:00 2001 From: raghavendracharik Date: Wed, 20 Jul 2016 04:10:13 -0700 Subject: Implementation of testcase/pod declaration dashboard for adding tescases JIRA: FUNCTEST-26 Change-Id: Iceb1c54ba8c245d43cc553533fdf4fd3284c7132 Signed-off-by: raghavendracharik --- utils/test/declaration/testcases.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 utils/test/declaration/testcases.php (limited to 'utils/test/declaration/testcases.php') diff --git a/utils/test/declaration/testcases.php b/utils/test/declaration/testcases.php new file mode 100644 index 000000000..20645807e --- /dev/null +++ b/utils/test/declaration/testcases.php @@ -0,0 +1,36 @@ +projects; + $selected=$projects[0]->name; + } + $new_url="http://testresults.opnfv.org:80/test/api/v1/projects/".$selected."/cases"; + $response = file_get_contents($new_url); + $data = json_decode($response); + $testcases=$data->testcases; + $i=0; + $column_str=""; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + foreach ( $testcases as $testcase ){ + $i=$i+1; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + $column_str=$column_str.""; + + } + $column_str=$column_str."
#Test Case NameCreation DateDescription
".$i."".$testcase->name."".$testcase->creation_date."".$testcase->description."
"; + echo $column_str; + +?> + -- cgit 1.2.3-korg