Skip to content

Tags are not found when set on keywords

Test Cases making use of permutations have such a structure:

*** Test Cases ***    FILENAME    CONTENT_TYPE
001_01_01_MinimalEntity
    building-minimal-without-context-sample.jsonld    application/ld+json
001_01_02_EntityWithSimpleProperties
    building-simple-attributes-sample.jsonld    application/ld+json
001_01_03_EntityWithRelationshipsProperties
    building-relationship-of-property-sample.jsonld    application/ld+json
001_01_04_EntityWithLocationAttribute
    building-location-attribute-sample.jsonld    application/ld+json


*** Keywords ***
Create Entity Scenarios
    [Documentation]    Check that you can create an entity
    [Tags]    e-create    5_6_1
    [Arguments]    ${filename}    ${content_type}
    ...

If the Test Suite is launched using the "include tags" option (for instance, --include 5_6_1), this Test Case will not be executed.

The solution is to move the declaration of the tags on each Test Case in the Test Cases section.