Meego Wiki
Views

Quality/QA-tools/Scripts and utils

From MeeGo wiki
< Quality | QA-tools
Revision as of 04:46, 17 December 2010 by Vesse (Talk | contribs)
Jump to: navigation, search

Contents

Scripts and utils

mtdv

Introduction

MIN Test Definition Validator

Simple tool for validating test definition test case names with regular expression and also for checking that test definition includes all test cases which are defined in the MIN scripter files.

Usage

Validate tests.xml file(s)

mtdv -s /usr/share/test-definition/testdefinition-syntax.xsd -x tests.xml -x tests2.xml
 

Validate only tests.xml test case name(s)

mtdv -r "[S]" -x tests.xml -x tests2.xml
 

Validate MIN script test case name(s)

mtdv -r "[S]" -m /usr/lib/min/
 

Compare test tests.xml case list to MIN test case list and validate all test cases

mtdv -s /usr/share/test-definition/testdefinition-syntax.xsd -x tests.xml -m /usr/lib/min/ -r "[S]"

tests2html

Introduction

Tool for generating HTML documentation from test plans validating against test-definition. The tool pulls projects from gitorious, locates test XML files and creates the HTML documentation. Currently used at http://testplans.meego.com

Usage

Tool configuration is in /etc/tests2html/tests2html.ini where you define the git projects and a couple of other settings. The projects are cloned under /var/tmp/tests2html. The main idea is to run with cron, and the cron script is /etc/cron.hourly/tests2html. You need to enable that after you've configured the tool. Logger prints messages to stdout.

When running from command line you have the following command line options available:

-h, --help        Display the help
-v, --verbose     Set log level to DEBUG
-o, --offline     Don't do anything with git. You need to run once 
                  without this flag to get the projects, but after 
                  that using offline mode makes debugging easier
Personal tools