Skip to content

Set timezone to an automation test in Pytest on LambdaTest. A sample repo to help you set timezone to an automation test in Pytest on LambdaTest.

Notifications You must be signed in to change notification settings

Riadayal/Pytest-timezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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

If you want to run your automation test for a particular timezone in Pytest 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 in the conftest.py file. For example, setting timezone to "UTC-5:00":

capabilities = {
       "build": "Sample PY Build",
       "platformName": "Windows 11",
       "browserName": "Chrome",
       "browserVersion": "latest",
   	"timezone": "UTC-05:00"
}

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

Run your test

cd tests //navigate to tests directory
python sample_todo.py

Links:

LambdaTest Community