Elmasekar / UnitTest-build-tags

A sample repo to help you add build tags to automation tests in UnitTest on LambdaTest. Run your python automation test scripts on Lambdatest.

Home Page:https://www.lambdatest.com/unittest-testing/?utm_source=github&utm_medium=about&utm_campaign=unittest_build_tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add build tags to automation tests in UnitTest on LambdaTest

If you want to add build tags to group builds in UnitTest 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_test.py

Links:

LambdaTest Community