summaryrefslogtreecommitdiffstats
path: root/declaration/testcases.php
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-01-17 15:10:55 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2017-01-17 15:10:55 +0100
commitdd56ad8dac327e256051a651eaf48c66293b4c95 (patch)
tree40402503f8f2439f0897a4c6024129571f8144b4 /declaration/testcases.php
parent3fd5f309b332bbfc045d06c617316dff7d65175c (diff)
Clean case declaration prototype
not used in Colorado angular framework (landing page) could be used for Danube Change-Id: I86ded631b4c5b78260bd03b376bf6264dabc2f89 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'declaration/testcases.php')
-rw-r--r--declaration/testcases.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/declaration/testcases.php b/declaration/testcases.php
deleted file mode 100644
index 2064580..0000000
--- a/declaration/testcases.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
- if(isset($_REQUEST['project'])){
- $selected=$_REQUEST['project'];
- }
- else{
- $url = "http://testresults.opnfv.org:80/test/api/v1/projects";
- $response = file_get_contents($url);
- $data = json_decode($response);
- $projects=$data->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."<table class=\"table table-striped\"><tr>";
- $column_str=$column_str."<th>#</th><th>Test Case Name</th>";
- $column_str=$column_str."<th>Creation Date</th>";
- $column_str=$column_str."<th>Description</th></tr>";
- foreach ( $testcases as $testcase ){
- $i=$i+1;
- $column_str=$column_str."<tr>";
- $column_str=$column_str."<td>".$i."</td>";
- $column_str=$column_str."<td>".$testcase->name."</td>";
- $column_str=$column_str."<td>".$testcase->creation_date."</td>";
- $column_str=$column_str."<td>".$testcase->description."</td>";
- $column_str=$column_str."</tr>";
-
- }
- $column_str=$column_str."</table>";
- echo $column_str;
-
-?>
-