fholec / python-nitrate.bak Goto Github PK
View Code? Open in Web Editor NEWTemporary python nitrate fork
License: GNU Lesser General Public License v2.1
Temporary python nitrate fork
License: GNU Lesser General Public License v2.1
====================== python-nitrate ====================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python API for the Nitrate test case management system ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Manual section: 1 :Manual group: User Commands :Date: February 2012 DESCRIPTION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ python-nitrate is a Python interface to the Nitrate test case management system. The package consists of a high-level Python module (provides natural object interface), a low-level driver (allows to directly access Nitrate's xmlrpc API) and a command line interpreter (useful for fast debugging and experimenting). FEATURES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Among the most essential python-nitrate features are: * Natural and concise Python interface * Custom level of caching & logging * Automated status coloring * Integrated test suite * Utility functions The main motivation was to hide unnecessary implementation details wherever possible so that using the API is as concise as possible. Scripts importing python-nitrate can make use of several useful helper functions including info() for logging to stderr, listed() which converts list into nice human readable form, color() for coloring and of course log.{debug,info,warn,error} for logging. EXAMPLES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Initialize or create an object:: testcase = TestCase(1234) testrun = TestRun(testplan=<plan>, summary=<summary>) Default iterators provided for all container objects:: for case in TestRun(1234): if case.automated: case.status = Status("RUNNING") Linking case to a plan is as simple as adding an item to a set:: testplan.testcases.add(testcase) However, it's still possible to use the low-level driver when a specific features is not implemented yet or not efficient enough:: testcasehash = Nitrate()._server.TestCase.get(46490) For a quick start you can get some inspiration in the examples directory. The 'matrix.py' script demonstrates how to easily display a matrix view of the test run results for a specific test plan. The 'create.py' script gives a broader overview covering object creation, attribute setting, adjusting logs and caching. CONFIGURATION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To be able to contact the Nitrate server a minimal user config file ~/.nitrate has to be provided in the user home directory:: [nitrate] url = https://nitrate.server/xmlrpc/ TEST SUITE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The high-level interface has an integrated test suite, which can be easily run against a stage server instance. For this a couple of objects needs to be prepared and already existing on the server so that we can check valid results. For detailed information about what data has to be prepared see the module documentation. LINKS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Project page: http://psss.fedorapeople.org/python-nitrate/ Interpreter: http://psss.fedorapeople.org/python-nitrate/nitrate.html Examples: http://psss.fedorapeople.org/python-nitrate/examples/ Download: http://psss.fedorapeople.org/python-nitrate/download/ Git repo: https://github.com/psss/python-nitrate File bugs: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora Nitrate: https://fedorahosted.org/nitrate/ SEE ALSO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For more detailed and most up-to-date description of all available nitrate module features see the Python online documentation:: pydoc nitrate pydoc nitrate.xmlrpc AUTHORS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ High-level Python module: Petr Šplíchal, Zbyšek Mráz, Martin Kyral and Lukáš Zachar. Low-level XMLRPC driver: Airald Hapairai, David Malcolm, Will Woods, Bill Peck, Chenxiong Qi, Tang Chaobin, Yuguang Wang and Xuqing Kuang. Hope, the library will save you time and bring some joy when writing scripts interacting with the Nitrate server. Looking forward to your feedback, comments, suggestions and patches ;-) Petr Šplíchal <[email protected]> COPYRIGHT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (c) 2012 Red Hat, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.