You can use Zephyr Enterprise REST API to search for test cases, requirements, and executions programmatically.
...
Value | Type | Description |
---|---|---|
word (required) | string | A string to search for. You can specify some text or a ZQL query (in the latter case, you will have to specify
|
entitytype (required) | string | The type of the entity to search for. Possible values:
|
releaseid (required) | long | The ID of the release the entity belongs to. To see the release ID in Zephyr, click Manage Release in the top-right corner and take a look at the value of the ID column in the subsequent window: |
zql (required) | boolean | Specifies whether ZQL is used. |
isascorder (optional) | boolean | Switches the ascending order. Specify |
order (optional) | string | The field to sort data by. For example: |
firstresult (required) | integer | The first element of the retrieved results. The parameter is zero-based, which means you need to specify |
maxresults (required) | integer | The number of records to be fetched. The maximum number is 50000. |
is_cfield (optional) | boolean | Set to Ответ Divyashree: is_cfield -> to check whether sorting is done by custom field |
isOld (optional) | boolean | Set to Это то, как я это понимаю. Разработчики сами не знают толком что это. Вот что мне ответила Divyashree: for isOld parameter, got input from dev saying that "we are fetching newTestcase id , by passing the given old testcase id". |
Authentication
You can authenticate your requests by using one of the methods described in the Zephyr REST API topic.
...
GET /flex/services/rest/latest/advancesearch?word=test&entitytype=testcase&releaseid=1&zql=false&firstresult=0&maxresults=10
Sample requests
ZQL is not used:
GET /flex/services/rest/latest/advancesearch?word=paneltest&entitytype=testcase&releaseid=1&zql=false&firstresult=0&maxresults=10&order=orderId&isascorder=true
ZQL is used:
GET /flex/services/rest/latest/advancesearch?word=creator="test.manager" and priority="P1"&entitytype=testcase&releaseid=1&zql=true&firstresult=0&maxresults=50
...