public final class CommonRobotEnvironment extends java.lang.Object implements Environment
CommonRobotEnvironment is an Environment that applies the following special conditions
to the execution of a robot: true if the robot should be stopped when the maximum number of
returned objects is reached.-1 if there is no limit.-1 if there is no limit.-1
if there is no limit.-1 if there is no limit.-1 if there is no limit.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_BYPASS_OBJECT_REFINDER
Default setting for the
bypassObjectRefinder property is false. |
static int |
DEFAULT_MAX_EMAILS
Default setting for maxEmails property is
-1 (no limit). |
static int |
DEFAULT_MAX_EXECUTED_STEPS
Default setting for maxExecutedSteps property is
-1 (no limit). |
static int |
DEFAULT_MAX_HTTP_REQUESTS
Default setting for maxHttpRequests property is
-1 (no limit). |
static int |
DEFAULT_MAX_JAVA_SCRIPT_INSTRUCTIONS
Default setting for maxJavaScriptInstructions property is
-1 (no limit). |
static int |
DEFAULT_MAX_LOADED_BYTES
Default setting for maxLoadedBytes property is
-1 (no limit). |
static int |
DEFAULT_MAX_OBJECTS_LIMIT
Default setting for the
maxObjectsLimit property is 1000000. |
static int |
DEFAULT_MIN_OBJECTS_LIMIT
Default setting for the
minObjectsLimit property is 1. |
static int |
DEFAULT_OBJECT_TIME_LIMIT
Default setting for the
objectTimeLimit property is 10 minutes. |
static boolean |
DEFAULT_STOP_ROBOT_WHEN_MAX_OBJECT
Default setting for stopRobotWhenMaxEntity property is
false. |
static int |
DEFAULT_TOTAL_TIME_LIMIT
Default setting for the
totalTimeLimit property is 24 hours. |
| Constructor and Description |
|---|
CommonRobotEnvironment()
Creates a
CommonRobotEnvironment where the totalTimeLimit is set to 86400
(24 hours), objectTimeLimit is set to 600 (10 minutes), minObjectsLimit is
set to 1, and maxObjectsLimit is set to 1000000 (one million). |
CommonRobotEnvironment(boolean bypassObjectRefinder,
int totalTimeLimit,
int objectTimeLimit,
int minObjectsLimit,
int maxObjectsLimit)
Creates a
CommonRobotEnvironment with the specified property values. |
CommonRobotEnvironment(boolean bypassObjectRefinder,
int totalTimeLimit,
int objectTimeLimit,
int minObjectsLimit,
int maxObjectsLimit,
boolean stopRobotWhenMaxObject,
int maxEmails,
int maxJavaScriptInstructions,
int maxHttpRequests,
int maxLoadedBytes,
int maxExecutedSteps,
boolean stopOnAPIException,
boolean stopIfConnectionLost)
Creates a
CommonRobotEnvironment with the specified property values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this object and the specified object have the same property values, and
false otherwise. |
boolean |
getBypassObjectRefinder()
Returns whether the robot shall bypass the Object Refinder tag.
|
int |
getMaxEmails()
Returns the maximum number of emails the robot is allowed to send.
|
int |
getMaxExecutedSteps()
Returns the maximum number of steps the robot is allowed to execute.
|
int |
getMaxHttpRequests()
Returns the maximum number of HTTP requests the robot is allowed to perform.
-1 is returned if there is no limit. |
int |
getMaxJavaScriptInstructions()
Returns the maximum number of JavaScripts instruction the robot is allowed to execute.
-1 is returned if there is no limit. |
int |
getMaxLoadedBytes()
Returns the maximum number of bytes the robot is allowed to load.
-1 is returned if there is no limit. |
int |
getMaxObjectsLimit()
Returns the maximum objects limit.
|
int |
getMinObjectsLimit()
Returns the minimum objects limit.
|
int |
getObjectTimeLimit()
Returns the object time limit.
|
boolean |
getStopIfConnectionLost()
get the value of the stopIfClientDies property
|
boolean |
getStopOnAPIException()
get the value of the stopRobotOnAPIException property
|
boolean |
getStopRobotWhenMaxObject()
Returns true if the robot should be stopped when the maximum number of returned objects is reached.
|
int |
getTotalTimeLimit()
Returns the total time limit.
|
int |
hashCode()
Returns the hash code of this object based on property values.
|
java.lang.String |
toString()
Returns a human readable string representation of this object.
|
public static final boolean DEFAULT_BYPASS_OBJECT_REFINDER
bypassObjectRefinder property is false.public static final int DEFAULT_TOTAL_TIME_LIMIT
totalTimeLimit property is 24 hours.public static final int DEFAULT_OBJECT_TIME_LIMIT
objectTimeLimit property is 10 minutes.public static final int DEFAULT_MIN_OBJECTS_LIMIT
minObjectsLimit property is 1.public static final int DEFAULT_MAX_OBJECTS_LIMIT
maxObjectsLimit property is 1000000.public static final boolean DEFAULT_STOP_ROBOT_WHEN_MAX_OBJECT
false.public static final int DEFAULT_MAX_EMAILS
-1 (no limit).public static final int DEFAULT_MAX_JAVA_SCRIPT_INSTRUCTIONS
-1 (no limit).public static final int DEFAULT_MAX_HTTP_REQUESTS
-1 (no limit).public static final int DEFAULT_MAX_LOADED_BYTES
-1 (no limit).public static final int DEFAULT_MAX_EXECUTED_STEPS
-1 (no limit).public CommonRobotEnvironment()
CommonRobotEnvironment where the totalTimeLimit is set to 86400
(24 hours), objectTimeLimit is set to 600 (10 minutes), minObjectsLimit is
set to 1, and maxObjectsLimit is set to 1000000 (one million).public CommonRobotEnvironment(boolean bypassObjectRefinder,
int totalTimeLimit,
int objectTimeLimit,
int minObjectsLimit,
int maxObjectsLimit)
CommonRobotEnvironment with the specified property values.bypassObjectRefinder - whether the Object Refinder tag should be ignored.totalTimeLimit - the total time limit.objectTimeLimit - the object time limit.minObjectsLimit - the minimum number of extracted objects limit.maxObjectsLimit - the maximum number of extracted objects limit.public CommonRobotEnvironment(boolean bypassObjectRefinder,
int totalTimeLimit,
int objectTimeLimit,
int minObjectsLimit,
int maxObjectsLimit,
boolean stopRobotWhenMaxObject,
int maxEmails,
int maxJavaScriptInstructions,
int maxHttpRequests,
int maxLoadedBytes,
int maxExecutedSteps,
boolean stopOnAPIException,
boolean stopIfConnectionLost)
CommonRobotEnvironment with the specified property values.bypassObjectRefinder - whether the Object Refinder step should be ignored.totalTimeLimit - the total time limit. -1 to ignoreobjectTimeLimit - the object time limit. -1 to ignoreminObjectsLimit - the minimum number of extracted objects limit.maxObjectsLimit - the maximum number of extracted objects limit, -1 to ignorestopRobotWhenMaxObject - true if the robot should be stopped when the maximum number of
returned objects is reached.maxEmails - the maximum number of emails the robot is allowed to send, or -1 if
there is no limit.maxJavaScriptInstructions - the maximum number of JavaScripts instruction the robot is allowed to execute,
or -1 if there is no limit.maxHttpRequests - the maximum number of HTTP requests the robot is allowed to perform, or
-1 if there is no limit.maxLoadedBytes - the maximum number of bytes the robot is allowed to load, or -1 if
there is no limit.maxExecutedSteps - the maximum number of steps the robot is allowed to execute, or -1
if there is no limit.stopOnAPIException - if true the robot will be stopped if RoboServer looses connection to the clientstopIfConnectionLost - if true the robot will be stopped after the first API exception is returned by the robotpublic boolean getBypassObjectRefinder()
false.public int getTotalTimeLimit()
public int getObjectTimeLimit()
public int getMinObjectsLimit()
public int getMaxObjectsLimit()
public boolean getStopRobotWhenMaxObject()
getMaxObjectsLimit()public int getMaxEmails()
public int getMaxJavaScriptInstructions()
public int getMaxHttpRequests()
public int getMaxLoadedBytes()
public int getMaxExecutedSteps()
public boolean getStopOnAPIException()
public boolean getStopIfConnectionLost()
public boolean equals(java.lang.Object obj)
true if this object and the specified object have the same property values, and
false otherwise.equals in class java.lang.Objectobj - the object to test for equality.true if this object and the specified object have the same property values, and
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectRoboSuite Java API, v11.4.7880