diff options
author | 2017-01-18 16:47:35 +0000 | |
---|---|---|
committer | 2017-01-18 16:47:36 +0000 | |
commit | 685500319fb6043c189374c07b324ac3dd0fc269 (patch) | |
tree | fee90ce174d27d40c8ca7868fe6fc7bdd9703fd4 /utils/test/declaration/testcases.php | |
parent | 6d80e4d8e3c6d5ccfa2c186786c0dc7e44c5ddbc (diff) | |
parent | cd9f84ec06fafeb1c80ad704b447a0ce0536f014 (diff) |
Merge "Clean case declaration prototype"
Diffstat (limited to 'utils/test/declaration/testcases.php')
-rw-r--r-- | utils/test/declaration/testcases.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/utils/test/declaration/testcases.php b/utils/test/declaration/testcases.php deleted file mode 100644 index 20645807e..000000000 --- a/utils/test/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; - -?> - |