Can I add custom metadata to automation tests in Pytest on LambdaTest?

Can I add custom metadata to automation tests in Pytest on LambdaTest? Is there a sample repo to help add custom metadata to automation tests in Pytest on LambdaTest?

Hi Richard,

If you want to add custom metadata to automation tests in Pytest on LambdaTest, you can follow the steps below. You can refer to sample test repo:

With LambdaTest, you can add custom meta data to automation tests. These are added for tests by setting the data in customData capability. The code below illustrates the usage:

capabilities = {
        "build": "Sample PY Build",
        "platformName": "Windows 11",
        "browserName": "Chrome",
        "browserVersion": "latest",
		"customData": [ 	
						{ "_id": "5f46aaa69adf77cfe2bb4fd6", 
						"index": "0", 
						"guid": "9451b204-12f0-4177-8fe9-fb019b3e4bf3", 
						"isActive": "False", 
						"picture": "http//placehold.it/32x32" } ]
}

Here’s the GitHub repo for the same: GitHub - Riadayal/Pytest-custom-metadata: Add custom metadata to automation tests in Pytest on LambdaTest. A sample repo to help you add custom metadata to automation tests in Pytest on LambdaTest.