Can I use the scenario name as a variable to input it into a log file?

At the end of my scenario, I want to input some data into a log file, including the name of the scenario. Is there a variable that I can call on that will give me the name of the scenario?

Hi Mason, I’ve never tried it but I think there is a variable %_scenario% in the failure message. Maybe you can use that one.

Thank you for your reply but it didn’t work. The variable doesn’t return anything. Any other workaround?

@MasonCh I don’t believe there is a pre-defined variable for scenario name. You will need to set a variable for the scenario name and enter the scenario name as the value. If you will need to do this for many scenarios on an ongoing basis, maybe you can request this feature.

Thanks @juliac! I will defnitely request this feature.