The information in this topic may be out of date. The current SDK reference guide has moved here.

with_batch_id method

Class: BatchInfoPlatform: Selenium 3Language: Python SDK:

Use this method to set the unique id of the batch using a Fluent interface.

You need to set the id explicitly if you want to batch tests that are run at different times or in different platforms or processes. For more information see Batching tests in a distributed environment


value = batch_info.with_batch_id(id)


The unique id of the batch. If not passed, or passed as None, and the environment variable APPLITOOLS_BATCH_ID is defined, then the value of the environment variable will be used as the id. If the environment variable is not defined then a unique internal id will be generated and used.

Return value

Type: BatchInfo


This command is intended for use instead of the id property. It can be called as part of the constructor of the Batchinfo object as shown in the syntax section.