The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
_python_quick_start
_python_quick_start

Running the

...

Test

  1. Copy the example code and save it into a file called first_test.py.
    Make sure your username and access key are included in the URL passed through to the command_executor.
  2. Open terminal and navigate to the directory where the file is located.
  3. Execute the test:

    Code Block
    python first_test.py

    Check your dashboard and you will see that your test has just run on Sauce!

Running Tests Against Local Applications

If your test application is not publicly available, you will need to use Sauce Connect so that Sauce can reach it. 

Sauce Connect is a tunneling app that allows you to execute tests securely when testing behind firewalls or on localhost. For more detailed information, please visit see the Sauce Connect docs. 

...

Include Page
_
python
sauce_connect_
reporting
description
_
python_reporting
sauce_connect_description

 

Running Tests in Parallel

Include Page
_running_tests_in_parallel
_running_tests_in_parallel

See the topics under Running Tests in Parallel with Python for  for more information and examples of setting up popular Python testing frameworks to run tests in parallel on Sauce 

Reporting on Test Results

Include Page
_python_reporting
_python_reporting