Tallisado / pyro

1 stars 0 forks source link

Need to investigate and add global timings for wait actions on Sauce #5

Open BACONATOR26 opened 10 years ago

BACONATOR26 commented 10 years ago

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.

Tallisado commented 10 years ago

Timing have been added to the command line:

IMPLICIT_WAIT

can be set in import

        # Sets Selenium 2's default implicit wait in seconds and sets the implicit wait for all open browsers

COMMAND_DELAY

Sets the delay in seconds that is waited after each Selenium command

        # 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

Sets the timeout in seconds used by various keywords

        # 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
Tallisado commented 10 years ago

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