[Python] Robot Framework accessing a keyword from test suite Metadata

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    I want to set for each test inside the test suite a simple report of the computer name, So I've created the following simple robot __init__.robot file:

    *** Settings ***
    Metadata Executed At Get Environment Variable COMPUTERNAME
    Library OperatingSystem


    The problem is that the Get Environment Variable is translated as a string instead of calling the keyword Get Environment Variable with the argument COMPUTERNAME

    The log put is: Executed At: Get Environment Variable COMPUTERNAME

    Question: How can i call some keyword from the settings Metadata?

    Continue reading...

Compartilhe esta Página