Test Cases
Inside Allure TestOps the test cases have following attributes which can be used with AQL for filtering.
Attribute | Description | Examples |
---|---|---|
id |
Identifier | id = 17 id != 20 id is 17 id in [1, 2, 10] not id in [1, 2, 10] |
name |
Name | name is "first test" name = "first test" name ~= "rst" name in ["first test", "second test"] |
tag |
Tags | tag is "smoke" tag in ["fast", "smoke"] |
issue |
Related issues | issue = "AS-2" issue is "AS-2" issue in ["AS-1", "AS-3"] |
role |
Roles | role["Owner"] = "user1" role["Manager"] in ["user1", "user2"] role["Owner"] is null // no users with the role Owner |
member |
Search across all roles | member in ["user1", "user2"] member = "user1" or member = "user2" |
cf |
Custom fields. A composite attribute with a specific syntax, see examples | cf["Epic"] = "Auth" cf["Story"] in ["Story 1", "Story 2"] cf["Epic"] is null // Epic hasn't been specified |
cfv |
Custom field values. Search across all custom fields values of a TC | cfv = "Auth" cfv in ["Story 1", "Story 2"] |
layer |
The layer of a test | layer is "API" layer != "Web driver" layer = 7 layer != null |
status |
The workflow's status | status is "Draft" status = "Active" status != "Review" status in ["Draft", "Review"] status is -1 status = 3 status in [-1, -2] |
workflow |
The workflow | workflow is "Default Manual" workflow = -1 |
muted |
Check whether the test is muted or not | muted is true muted = false |
testPlan |
Check it test case is relates to a test plan | testPlan = 1477 testPlan = "smoke tests" |
mutedDate |
When the test case was muted | mutedDate < 1569430502709 |
createdDate |
Time of creation | createdDate < 1569430502709 |
createdBy |
The user who has created the test case | createdBy in ["user1", "user2"] createdBy = "user1" or createdBy = "user2" |
lastModifiedDate |
Last modified date. | lastModifiedDate < 1569430502709 |
lastModifiedBy |
The user who has last modified a TestCase | lastModifiedBy in ["user1", "user2"] lastModifiedBy = "user1" or lastModifiedBy = "user2" |
automation |
Checks if the test is automated or not | automation = true/false |
lastModifiedDate |
Last modified date | lastModifiedDate < 1569430502709 |
Real world examples
//not deleted, not muted tests with an Epic Auth and no feature or with Epic Security
deleted is false and muted is false
and (
cf["Epic"] = "Auth" and cf["Feature"] is null or cf["Epic"] = "Security"
)
// Current user tests
role["Owner"] = currentUser()
// Current user API tests
role["Owner"] = currentUser() and layer = "API"
Back to AQL format description
© Qameta Software Inc. All rights reserved.