User Tools

Site Tools


collection_of_test_results

This is an old revision of the document!


Table of Contents

Description

The mission of this project is to provide a common way for gathering all the results of OPNFV tests projects into a single place. It should expose a REST API for the collect of results and push them into a MongoDB database.

REST API

Here are the key functions :

Test projects

  • List all test projects
  • Details on a specific test project
  • Create a test project
  • Update a test project

Test cases Specifiying a test project :

  • List all test cases
  • Details on a test case
  • Create a test case
  • Update a test case

Test results Specfiying both test project and test case :

  • List all test results
  • Details on a test result
  • Push a test result
  • Remove a test result

This API will rely on JSON to represent states of REST resources. See the full API specification here.

Database

The goal is to have three main collections : tests projects, test cases and test results related to each other by a numbering system. The test result would be stored either as plain text or json structure in the test results collection on details field

Test projects

[
  {
    "id": 1,
    "name": "functest",    
    "description":""
  },
  {...}      
]

Test cases

[
  {
    "id":1.1,
    "name":"",
    "testproject": "1",
    "test": "",
    "description": ""
  },
  {...}
]

Test results

[
  {
    "id": "1.1.1",
    "testcase": "1.1",
    "date": "",
    "platform":"",
    "global_status":"",
    "hardware_details":"",
    "installer_type":"",
    "details":{}
  },
  {...}
]
collection_of_test_results.1436450954.txt.gz · Last modified: 2015/07/09 14:09 by Guy Rodrigue Koffi