Riadayal / Python-selenium-build-tags

How to add build tags to automation tests in Python-selenium on LambdaTest

Home Page:https://www.lambdatest.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add build tags to automation tests in Python-selenium on LambdaTest

If you want to add build tags to group builds in Python-selenium on LambdaTest, you can follow the steps below. You can refer to sample test repo here.

Steps

With LambdaTest, you can group your test builds with Build tags. These are added for tests by setting the tags in buildTags capability. The code below illustrates the usage:

desired_caps = {
            'LT:Options': {
                "build": "Python Demo",  # Change your build name here
                "name": "Python Demo Test",  # Change your test name here
                "platformName": "Windows 11",
                "selenium_version": "4.0.0",
                "buildTags": ["test-build1","test-build2"]   #change build tags here      
            },
            "browserName": "Chrome",
            "browserVersion": "98.0",
        }

Run your test

python lambdatest.py

Links:

LambdaTest Community

About

How to add build tags to automation tests in Python-selenium on LambdaTest

https://www.lambdatest.com