susannemoog / sauceExtension

Codeception Extension to support automated testing via sauce labs
MIT License
8 stars 7 forks source link

Multiple browsers and platforms #9

Closed joshhornby closed 9 years ago

joshhornby commented 10 years ago

Hey,

Is it possible to define multiple browsers or platforms in the yml file?

Would be very useful if you could.

urosgruber commented 9 years ago

You can add multiple env options in selenium.suite.yml

env:
    sauce_safari:
         modules:
            config:
                WebDriver:
                    browser: 'safari'
                    capabilities:
                        platform: 'OS X 10.9'
                        version: '7'

    sauce_firefox:
         modules:
            config:
                WebDriver:
                    browser: 'firefox'
                    capabilities:
                        platform: 'OS X 10.9'
                        version: '32'

and then run codeception with --env sauce_firefox --env sauce_safari etc.