Qa-tools: Difference between revisions
Line 38: | Line 38: | ||
2- Install Virtual Environment tool | 2- Install Virtual Environment tool | ||
$ sudo apt-get install python-virtualenv | |||
3- Create virtual environment | 3- Create virtual environment | ||
$ virtualenv venv | |||
4- Activate virtual environment | 4- Activate virtual environment | ||
$ source venv/bin/activate | |||
5- Create configuration file, there is already a configuration file example that can be used | |||
'''testopia_update.config.example [snapshot]''' | |||
[Testopia] | |||
url = TESTOPIA URL - https://bugzilla.yoctoproject.org/xmlrpc.cgi | |||
username = someuser - Bugzilla user | |||
password = verysecurepass - Bugzilla pswd | |||
store_location = /tmp/testopia_update | |||
6- Install requirements | |||
$ pip install -r requeriments.txt | |||
7- Start using the Testopia_update script | |||
=== Examples === | === Examples === |
Revision as of 18:04, 9 March 2017
Summary
The qa-tools git repository is the recipient for the QA automation scripts and tools. Is inteended to store any tool that helps on the QA activities related to the Yocto Porject
You can take a look at it via the gitweb interface.
For cloning the qa-tools repository:
$ git clone git://git.yoctoproject.org/qa-tools
List of Tools
Below is a list with detailed information about the tools/scripts already implemented
testopia_update
Objective
This tool was designed to give an automated way to interact with Testopia activities.
Structure
This tool consist in a python script that can be used for different actions and with different parameters, with a configuration file to get connected to the Testopia DB and then using the Testopia API to perform different actions on the DB.
-> qa-tools/ |-testopia_update.py: Main script |-testopia_update.config : Configuration file with the URL and the login info to the Testopia DB |-> testopia_update/ |- __init__.py |-> product/ : This directory contains all the available products used by QA on Testopia |-> External/ |- testopia.py: This file contains the API that provides methods to work on Testopia DB.
How to use it
1- Clone repo
2- Install Virtual Environment tool
$ sudo apt-get install python-virtualenv
3- Create virtual environment
$ virtualenv venv
4- Activate virtual environment
$ source venv/bin/activate
5- Create configuration file, there is already a configuration file example that can be used
testopia_update.config.example [snapshot]
[Testopia] url = TESTOPIA URL - https://bugzilla.yoctoproject.org/xmlrpc.cgi username = someuser - Bugzilla user password = verysecurepass - Bugzilla pswd store_location = /tmp/testopia_update
6- Install requirements
$ pip install -r requeriments.txt
7- Start using the Testopia_update script
Examples
Improvments
Proposed tools
This section is intended to add new tools to be implemented
How To Contribute
Contributing to any of the yoctoproject.org repositories, including qa-tools, can be achieved with the Poky Contributions guidelines.
Mantainer Anibal Limon