Skip to content

Elmasekar/UnitTest-build-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 

Repository files navigation

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