CMTaylor / Python-Robot-Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-Robot-Selenium

This code is provided on an "AS-IS” basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify this framework. Issues regarding this framework should be submitted through GitHub. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.

Note: Robot framework does not currently support Microsoft Edge. However, if you set the robot browser to firefox and then specify "MicrosoftEdge" in the desired capabilities for Sauce Labs, the tests will run as expected.

Environment Setup

  1. Global Dependencies

    $ brew install python
    
    • Install pip to install packages
  2. Sauce Credentials

    • In the terminal export your Sauce Labs Credentials as environmental variables:
    $ export SAUCE_USERNAME=<your Sauce Labs username>
    $ export SAUCE_ACCESS_KEY=<your Sauce Labs access key>
    
  3. Project Dependencies

    • Install packages (Use sudo if necessary)
    $ pip install sauceclient robotframework robotframework-selenium2library
    

Running Tests

Tests in Parallel: $ make run_all_in_parallel

Sauce Labs Dashboard

Advice/Troubleshooting

  1. There may be additional latency when using a remote webdriver to run tests on Sauce Labs. Timeouts or Waits may need to be increased.

Resources

  • A great resource to search for issues not explicitly covered by documentation.

About


Languages

Language:RobotFramework 53.4%Language:Python 24.3%Language:Makefile 22.3%