Allure TestOps - Test results attributes to use with AQL

Test Results

Inside Allure TestOps the test results 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 "my test result name"
name = "my test result name"
name ~= "result"
name in ["my test result name", "second test"]

fullName

Full name

fullName is "test result full_name"
fullName = "test result full_name"
fullName ~= "full_name"
fullName in ["test result full_name", "second test full name"]

testCase

The test case

testCase is "TC1"
testCase in ["TC1", "TC2"]

status

The status

status is "failed"
status = "broken"
status != "passed"
status in ["skipped", "unknown"]

category

The category

category is "IO Exception"
category in ["timeouts", "network"]

tag

Tags

tag is "smoke"
tag in ["fast", "smoke"]

issue

Related issues

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"

testedBy

Tested by user

testedBy is "John Vinchester"
testedBy in ["Sam Vinchester", "Dean Vinchester"]

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"]

ev

Environment variables

ev["OS"] = "Linux"
ev["Browser"] in ["Safari", "Opera"]
ev["Device"] is null // Device hasn't been specified

evv

Environment variable values (by all environment variables)

evv = "Linux"
evv in ["Safari", "Opera"]

layer

The layer

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

layer = 7 layer != null

muted

If the test is muted

muted is false
muted = true

execution

The execution

execution is "Manual results upload"
execution in ["On Browser", "On device"]

launch

The launch

launch is "release-1.0"
launch in ["release-2.0", "release-2.0"]

createdDate

Time of creation

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

createdBy

The user who’s created the test case

createdBy is "admin"
createdBy = "admin"
createdBy ~= "adm"
createdBy in ["admin", "owner"]

lastModifiedDate

Last modified date

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

lastModifiedBy

The user who’s last modified the TestCase

lastModifiedBy is "admin"
lastModifiedBy = "admin"
lastModifiedBy ~= "adm"
lastModifiedBy in ["admin", "owner"]

hidden

Whether the test result is hidden

hidden is false
hidden = true

Real world examples

    // or with Epic Security
    hidden is false and muted is false
    and (
     cf["Epic"] = "Auth" and cf["Feature"] is null or cf["Epic"] = "Security"
    )
    // Tested by current user on Safari or Opera browsers
    testedBy = currentUser() and ev["Browser"] in ["Safari", "Opera"]
    // release_1.0 launch test results with tag smoke
    launch = "release_1.0" and tag = "smoke"

Back to AQL format description