How to run Python tests using Behave framework on LambdaTest?

How to run Python tests using Behave framework on LambdaTest?

Hi Tim!

In order to run Python tests using Behave framework, please refer to the below code snippet.

username = os.environ["LT_USERNAME"]
authkey = os.environ["LT_ACCESS_KEY"]


def before_feature(context, feature):
    desired_cap = setup_desired_cap(CONFIG[INDEX])
    context.browser = webdriver.Remote(
        desired_capabilities=desired_cap,
        command_executor="https://%s:%s@hub.lambdatest.com:443/wd/hub" % (username, authkey))

For more information on running Python Behave tests, check out our official documentation