Difference between revisions of "Firebug Test Bot Database"

From FirebugWiki
Jump to: navigation, search
(Setup New DB)
Line 26: Line 26:
  
 
== Setup New DB ==
 
== Setup New DB ==
 +
As soon as CouchDB is installed you can create databases. Firebug test-results database uses specific schema that the defined in design-documents. These documents are JSON based, just like any other doc in the database.
 +
 +
 
Database schema (design documents) are described [https://github.com/firebug/test-result-viewer/blob/master/design-documents.txt here].
 
Database schema (design documents) are described [https://github.com/firebug/test-result-viewer/blob/master/design-documents.txt here].
 +
 +
 +
=== Instructions ===
 +
 +
Following instructions are using http://firebug.couchone.com/ as an existing CouchDB installation.
 +
 +
# '''Create New Database''' Open http://firebug.couchone.com/_utils/index.html and click ''Create Database'' and provide a name. This scenario is using ''Template'', but you should provide your own name of course.
 +
# '''Open The Database''' The new database should be available here: http://firebug.couchone.com/_utils/database.html?template
 +
#

Revision as of 05:35, 28 November 2012

Firebug Test Bot is using CouchDB for storing all test results.

Resources

Test Results DB

Test results produced by running Firebug test suite are stored into a CouchDB (document-oriented database). The database is available online and all test results (stored as documents) can be accessed using XHR.

Testbot results are stored as documents and there are currently following types of docs.

  • header this document represents a single test-bot run.
  • result represents a test result (one Firebug test executed). The relation between header and result documents is one-to-many. There are many results for one test-bot run (the number of results corresponds to number of tests in the used test list). The relation is made through a headerid filed that is part of each result doc.


The database contains also test-results reported by users who run automated tests manually using Firebug Test Console (FBTest). These results use following doc types.

  • user-header represents a user test launch.
  • user-results represents a user test result.

Test Results UI

Summary of testbot results is available online. This page displays both (a) testbot and (b) user results as two separate lists. Source code of this application is available.

Custom CouchDB can be passed through URL as follows:

https://getfirebug.com/testresults?dburi=http://firebug.couchone.com/&dbname=firebug2

Setup New DB

As soon as CouchDB is installed you can create databases. Firebug test-results database uses specific schema that the defined in design-documents. These documents are JSON based, just like any other doc in the database.


Database schema (design documents) are described here.


Instructions

Following instructions are using http://firebug.couchone.com/ as an existing CouchDB installation.

  1. Create New Database Open http://firebug.couchone.com/_utils/index.html and click Create Database and provide a name. This scenario is using Template, but you should provide your own name of course.
  2. Open The Database The new database should be available here: http://firebug.couchone.com/_utils/database.html?template