Allure TestOps - Test cases attributes to be used with AQL

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 by all roles

member in ["user1", "user2"]
member = "user1" or member = "user2"

cf

Custom fields. A complicated 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. (by all custom fields)

cfv = "Auth"
cfv in ["Story 1", "Story 2"]

layer

The layer

layer is "API"
layer != "Web driver"

layer = 7 layer != null

status

The 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

If the test is muted

muted is true
muted = false

mutedDate

When the test case was muted

mutedDate >= twoWeeksAgo()
mutedDate >= dayStartUtc()
mutedDate < 1569430502709

createdDate

Time of creation

createdDate >= twoWeeksAgo()
createdDate >= dayStartUtc()
createdDate < 1569430502709

createdBy

The user who’s created the test case

createdBy in ["user1", "user2"]
createdBy = "user1" or createdBy = "user2"

lastModifiedDate

Last modified date

lastModifiedDate >= twoWeeksAgo()
lastModifiedDate >= dayStartUtc()
lastModifiedDate < 1569430502709

lastModifiedBy

The user who’s last modified the TestCase

lastModifiedBy in ["user1", "user2"]
lastModifiedBy = "user1" or lastModifiedBy = "user2"

deleted

Whether the test has been deleted

deleted is false
deleted = true

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