Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.24 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.24 KB

How to set timezone to an automation test in UnitTest on LambdaTest

If you want to run your automation test for a particular timezone in UnitTest on Lambdatest, you can use the following steps. You can refer to sample test repo here.

Steps:

To run your automation test for a particular timezone, you can change the timezone using the 'timezone' capability. For example, setting timezone to "UTC-5:00":

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",
                "timezone": "UTC-05:00"
            },
            "browserName": "Chrome",
            "browserVersion": "98.0",
        }

For the full list of available capabilities, you can refer here.

Run your test

python lambdatest_test.py

Links:

LambdaTest Community