How to override the default CURL timeout for Codeception - using Browserstack

I am testing a browser table for acceptance tests. They have a peculiar habit of reacting for a very long time to certain requests. I am running Codeception and I always get a CURL 30 second timeout error. I want to be able to override this timeout, but I cannot figure out how to do it. Is this possible in Codeception?

This is the yml for my acceptance tests:

class_name: RemoteAcceptanceTester
modules:
  enabled:
    - WebDriver
  config:
    WebDriver:
      url: '{my url}'
      curl:
        CURLOPT_TIMEOUT: 120
      host: 'hub.browserstack.com'
      port: 80
      browser: firefox
      capabilities:
        'browserstack.user': '{user}'
        'browserstack.key' : '{key}'
        'browserVersion': '21.0'
        'browserstack.debug': 'false'
        'browserstack.local': 'true' # force use of local BrowserStackLocal binary

      

Are there any tweaks or any hacks I can try to set the timeout to whatever I want, which is 120 seconds? I know for a ridiculous amount of time, but Browserstack is a little "peculiar" when you use your local binary.

+3


source to share


1 answer


New release for Codeception online

[WebDriver] Added initial WebDriver settings connection_timeout and request_timeout by @ n8whnp # 2065

see => http://codeception.com/changelog



Also see the documentation page

connection_timeout - timeout to open a connection to the remote selenium server (default 30 seconds). request_timeout - timeout for a request to return something from the selenium remote server (default 30 seconds).

here => http://codeception.com/docs/modules/WebDriver

-1


source







All Articles