How do I integrate LambdaTest with Pytest framework?

How do I integrate LambdaTest with Pytest framework?

Hello Toby,

To integrate with LT, You need to pass the Username, Access key , and a HUB URL in your test script along with the capabilities as shown below

 desired_caps = {}

    browser = {
        "platform": "Windows 10",
        "browserName": "chrome",
        "version": "73"
    }

username = environ.get('LT_USERNAME', None)
    access_key = environ.get('LT_ACCESS_KEY', None)

    selenium_endpoint = "http://{}:{}@hub.lambdatest.com/wd/hub".format(username, access_key)

You can also refer to the below documentation: