The information in this topic may be out of date. The current SDK reference guide has moved here.
BatchInfo method
The constructor for the BatchInfo class.
Create the object, set it up and assign it to the batch before the test starts using the Configuration.setBatch method or Eyes.setBatch method. See How to group tests into batches using the SDK for more details and an example.
Syntax
BatchInfo batchInfo = new BatchInfo(name, startedAt);
BatchInfo batchInfo = new BatchInfo();
BatchInfo batchInfo = new BatchInfo(name);
Parameters
- name
- Type:String
The name of the batch. If a
is passed then the name will be taken from the environment variable APPLITOOLS_BATCH_NAME. If the environment variable is not defined then the name of the first test is used as the batch name.
- startedAt
- Type:Calendar
- The date and time that will be displayed in the Test Manager as the batch start time.
Return value
- Type: BatchInfo