Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 763 Bytes

File metadata and controls

37 lines (26 loc) · 763 Bytes

Steps and substeps

All keywords of a Robot Framework test case are automatically converted to allure steps.

To add nested steps apply the @allure.step decorator to a step function or use the allure.step function in your test library:

my_lib.py:

import allure

@allure.step("Substep {parameter}")
def substep_with_decorator(parameter):
    pass

def substep():
    with allure.step("Library substep"):
        substep_with_decorator("A")
        pass

The test data:

*** Settings ***
Library     ./my_lib.py

*** Test Cases ***
Allure substeps
    Substep