Nitrate XML-RPC Service(Beta)

You need to invoke it using an XML-RPC Client!

python-nitrate is a Python interface to the Nitrate test case management system.

Changes from testopia

How to handle ForeignKey arguments

In addition to the basic types such as Integers, Strings, Boolean, there is a relationship type called ForeignKey.

The syntax of using ForeignKey in our XMLRPC API is quite simple:

foreignkey + '__' + fieldname + '__' + query_syntax.

Taking TestCase.filter() for example, if the query is based on a default_tester's username starts with 'John', the syntax will look like this:

TestCase.filter({'user__username__startswith': 'John'})

In which case, the foreignkey is 'user', fieldname is 'username', and query_syntax is 'startswith', they are joined together using double underscores '__'.

For all the XMLRPC API, we have listed the available ForeignKey, however, for the available foreignkey field names that can be used in a query, please check out Nitrate source code on fedora. The definitions are located in files named 'models.py'; for a detailed query syntax documentation, please check out the Django documentation:

https://docs.djangoproject.com/en/1.2/topics/db/queries/#field-lookups

Available methods

Descriptions

{% for method in method_list %} {% if method.name != 'system.multicall' %}

{{ method.name|escape }}

{% ifnotequal method.signature "signatures not supported" %} Signature: {{ method.signature|escape }}
{% endifnotequal %}
{% for line in method.help %}{{ line|escape }}
{% endfor %}
{% endif %} {% endfor %}