Open BACONATOR26 opened 10 years ago
Timing have been added to the command line:
IMPLICIT_WAIT
# Sets Selenium 2's default implicit wait in seconds and sets the implicit wait for all open browsers
COMMAND_DELAY
# This is useful mainly in slowing down the test execution to be able to view the execution. seconds may be given in Robot Framework time format. Returns the previous speed value.
KEYWORD_TIMEOUT
# There are several Wait ... keywords that take timeout as an argument. All of these timeout arguments are optional. The timeout used by all of them can be set globally using this keyword. See introduction for more information about timeouts.
# can be set in import
Example command with all (never are all needed though):
IMPLICIT_WAIT=10 COMMAND_DELAY=2 KEYWORD_TIMEOUT=5 DISPLAY=:60 BROWSER='chrome' BASE_URL=http://10.10.9.63 PAYLOAD=/mnt/wt/pyrobot_v1.1/pyrobot/dev/spec /01__pyrobot_library.txt python /mnt/wt/pyro/pyrobot/pyrobot.py
Because of the latency with connectivity to Sauce, we need to set a global value to increase time out of wait actions e.g. Wait For Element Present has a default timeout of 5 seconds which needs to be set for 15 seconds to ensure test case reliability.