You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone I am using a function to access value from the behave.ini but I am not able to access the value from behave.
def get_value_from_ini(context, key):
"""This function returns the configuration value from behave.ini.
Args:
context (Context): The default object is available throughout the behave framework.
key (Any): Key in the key-value pair from the behave.ini.
Returns:
Value (Enum): Value in the key-value pair from the behave.ini
"""
return context.config.userdata.get(key)
The text was updated successfully, but these errors were encountered:
Your description lacks the information how you provide the data in the behave.userdata section in the config-file (and that your config-file is used at all).
Hello everyone I am using a function to access value from the behave.ini but I am not able to access the value from behave.
The text was updated successfully, but these errors were encountered: