Slides and Examples from my SauceLabs talk at LookoutHQ on 12/11/2014
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
pages
0generator_test.py
0newway.py
0oldway.py
1decorator_test.py
2login.py
3big_example.py
README.md
SauceLabs2014.key
requirements.txt

README.md

LookoutTalk

Slides and Examples from my SauceLabs talk at LookoutHQ on 12/11/2014

#Pip / VirtualEnv / DDT Fresh Install:

##Install sudo easy_install pip

sudo pip install virtualenv

##Create Environment

virtualenv env

ls env

env/bin/python

which python (returns global python binary)

##Alias The Environment

source env/bin/activate

which python (returns virtualenv python binary)

which pip

sudo pip install -r requirements.txt

##List of Example Files

  • 0generatortest.py -- An example of how a generator iterates through yield producing results but does not store anything in memory.
  • 0oldway.py -- An example of the old way of asserting a test one-by-one.
  • 0newway.py -- An example of the same test but asserting it with multiple variables.
  • 1decoratortest.py -- An example to show that you can run the test with a * or without in order to create a generator that will multiply our test cases.
  • 2logintest.py -- data/users.py -- An example showing how we can keep our data in a seperate file and create a function that we can re-use with every test.
  • 3big_example.py -- data/sample_data.py -- pages/page_class.py(Note this should be a CSS map, I'll be changing this soon --- A close to real-world example of how we can use a test to call to a class that stores information to manipulate our data. We split our tests into multiple suites and provide any information we need to input in the data file as well.

##Thanks To