Retrieve result(s) for a test project on a specific pod. Available filters <br/>for this request are :<br/><br/> - project : project name<br/> - case : case name<br/> - pod : pod name<br/> - version : platform version (Arno-R1, ...)<br/> - installer : fuel/apex/compass/joid/daisy<br/> - build_tag : Jenkins build tag name<br/> - period : x last days, incompatible with from/to<br/> - from : starting time in 2016-01-01 or 2016-01-01 00:01:23<br/> - to : ending time in 2016-01-01 or 2016-01-01 00:01:23<br/> - scenario : the test scenario (previously version)<br/> - criteria : the global criteria status passed or failed<br/> - trust_indicator : evaluate the stability of the test case to avoid <br/> running systematically long and stable test case<br/> - signed : get logined user result<br/><br/>GET /results/project=functest&case=vPing&version=Arno-R1 <br/>&pod=pod_name&period=15&signed
curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results/upload?case=&buildTag=&from=&last=&scenario=&trustIndicator=&period=&signed=&project=&to=&version=&descend=&criteria=&installer=&pod=&page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String case = case_example; // String | case name
String buildTag = buildTag_example; // String | i.e. v3.0
String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
String last = last_example; // String | last records stored until now
String scenario = scenario_example; // String | i.e. odl
Object trustIndicator = ; // Object | must be float
String period = period_example; // String | last days
String signed = signed_example; // String | user results or all results
String project = project_example; // String | project name
String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
String version = version_example; // String | i.e. Colorado
String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
String criteria = criteria_example; // String | i.e. passed
String installer = installer_example; // String | fuel/apex/joid/compass
String pod = pod_example; // String | pod name
Object page = ; // Object | which page to list, default to 1
try {
apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#queryTestResults_0");
e.printStackTrace();
}
}
}
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String case = case_example; // String | case name
String buildTag = buildTag_example; // String | i.e. v3.0
String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
String last = last_example; // String | last records stored until now
String scenario = scenario_example; // String | i.e. odl
Object trustIndicator = ; // Object | must be float
String period = period_example; // String | last days
String signed = signed_example; // String | user results or all results
String project = project_example; // String | project name
String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
String version = version_example; // String | i.e. Colorado
String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
String criteria = criteria_example; // String | i.e. passed
String installer = installer_example; // String | fuel/apex/joid/compass
String pod = pod_example; // String | pod name
Object page = ; // Object | which page to list, default to 1
try {
apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#queryTestResults_0");
e.printStackTrace();
}
}
}
String *case = case_example; // case name (optional)
String *buildTag = buildTag_example; // i.e. v3.0 (optional)
String *from = from_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *last = last_example; // last records stored until now (optional)
String *scenario = scenario_example; // i.e. odl (optional)
Object *trustIndicator = ; // must be float (optional)
String *period = period_example; // last days (optional)
String *signed = signed_example; // user results or all results (optional)
String *project = project_example; // project name (optional)
String *to = to_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *version = version_example; // i.e. Colorado (optional)
String *descend = descend_example; // true, newest2oldest; false, oldest2newest (optional)
String *criteria = criteria_example; // i.e. passed (optional)
String *installer = installer_example; // fuel/apex/joid/compass (optional)
String *pod = pod_example; // pod name (optional)
Object *page = ; // which page to list, default to 1 (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Retrieve result(s) for a test project on a specific pod.
[apiInstance queryTestResults_1With:case
buildTag:buildTag
from:from
last:last
scenario:scenario
trustIndicator:trustIndicator
period:period
signed:signed
project:project
to:to
version:version
descend:descend
criteria:criteria
installer:installer
pod:pod
page:page
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var = require('');
var api = new .DefaultApi()
var opts = {
'case': case_example, // {String} case name
'buildTag': buildTag_example, // {String} i.e. v3.0
'from': from_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
'last': last_example, // {String} last records stored until now
'scenario': scenario_example, // {String} i.e. odl
'trustIndicator': , // {Object} must be float
'period': period_example, // {String} last days
'signed': signed_example, // {String} user results or all results
'project': project_example, // {String} project name
'to': to_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
'version': version_example, // {String} i.e. Colorado
'descend': descend_example, // {String} true, newest2oldest; false, oldest2newest
'criteria': criteria_example, // {String} i.e. passed
'installer': installer_example, // {String} fuel/apex/joid/compass
'pod': pod_example, // {String} pod name
'page': // {Object} which page to list, default to 1
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.queryTestResults_0(opts, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class queryTestResults_0Example
{
public void main()
{
var apiInstance = new DefaultApi();
var case = case_example; // String | case name (optional)
var buildTag = buildTag_example; // String | i.e. v3.0 (optional)
var from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
var last = last_example; // String | last records stored until now (optional)
var scenario = scenario_example; // String | i.e. odl (optional)
var trustIndicator = new Object(); // Object | must be float (optional)
var period = period_example; // String | last days (optional)
var signed = signed_example; // String | user results or all results (optional)
var project = project_example; // String | project name (optional)
var to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
var version = version_example; // String | i.e. Colorado (optional)
var descend = descend_example; // String | true, newest2oldest; false, oldest2newest (optional)
var criteria = criteria_example; // String | i.e. passed (optional)
var installer = installer_example; // String | fuel/apex/joid/compass (optional)
var pod = pod_example; // String | pod name (optional)
var page = new Object(); // Object | which page to list, default to 1 (optional)
try
{
// Retrieve result(s) for a test project on a specific pod.
apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.queryTestResults_0: " + e.Message );
}
}
}
}
queryTestResults_0($case, $buildTag, $from, $last, $scenario, $trustIndicator, $period, $signed, $project, $to, $version, $descend, $criteria, $installer, $pod, $page);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->queryTestResults_0: ', $e->getMessage(), PHP_EOL;
}