You need to invoke it using an XML-RPC Client!
python-nitrate is a Python interface to the Nitrate test case management system.
>>> TestCase.filter({'category__product__name': 'Red Hat Enterprise Linux 5'})
>>> TestCase.filter({'summary__startswith': 'test'})Access this URL for more information.
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{% for line in method.help %}{{ line|escape }}{% endif %} {% endfor %}
{% endfor %}