Package com.applitools.eyes
Class BatchInfo
- java.lang.Object
-
- com.applitools.eyes.BatchInfo
-
public class BatchInfo extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchInfoaddProperty(String name, String value)booleanequals(Object obj)StringgetId()StringgetName()List<Map<String,String>>getProperties()StringgetSequenceName()CalendargetStartedAt()booleanisCompleted()booleanisNotifyOnCompletion()voidsetCompleted(boolean completed)voidsetId(String id)Sets a unique identifier for the batch.voidsetNotifyOnCompletion(boolean notifyOnCompletion)voidsetSequenceName(String sequenceName)voidsetStartedAt(String startedAt)StringtoString()BatchInfowithBatchId(String id)Sets a unique identifier for the batch and allows chaining of the id with the instance then returns that instance.
-
-
-
Constructor Detail
-
BatchInfo
public BatchInfo(String name, Calendar startedAt)
Creates a new BatchInfo instance.- Parameters:
name- Name of batch ornullif anonymous.startedAt- Batch start time
-
BatchInfo
public BatchInfo()
-
BatchInfo
public BatchInfo(String name)
SeeBatchInfo(String, Calendar).startedAtdefaults to the current time.- Parameters:
name- The name of the batch.
-
-
Method Detail
-
getName
public String getName()
- Returns:
- The name of the batch or
nullif anonymous.
-
getId
public String getId()
- Returns:
- The id of the current batch.
-
setId
public void setId(String id)
Sets a unique identifier for the batch. Sessions with batch info which includes the same ID will be grouped together.- Parameters:
id- The batch's ID
-
withBatchId
public BatchInfo withBatchId(String id)
Sets a unique identifier for the batch and allows chaining of the id with the instance then returns that instance. Sessions with batch info which includes the same ID will be grouped together.- Parameters:
id- The batch's ID- Returns:
- The updated
BatchInfoinstance.
-
getStartedAt
public Calendar getStartedAt()
- Returns:
- The batch start date and time in ISO 8601 format.
-
setStartedAt
public void setStartedAt(String startedAt)
-
getSequenceName
public String getSequenceName()
-
setSequenceName
public void setSequenceName(String sequenceName)
-
isNotifyOnCompletion
public boolean isNotifyOnCompletion()
-
setNotifyOnCompletion
public void setNotifyOnCompletion(boolean notifyOnCompletion)
-
isCompleted
public boolean isCompleted()
-
setCompleted
public void setCompleted(boolean completed)
-
-