Py.Saunter

This is the class documentation for Py.Saunter. For the larger documentation set in context, see the Py.Saunter page at Element 34.

Remote Control:

saunter.testcase.remotecontrol

You likely do not want your scripts to inherit from this class directly. Instead, subclass it in your project and use that instead.

Pages

Elements

WebDriver:

saunter.testcase.webdriver

You likely do not want your scripts to inherit from this class directly. Instead, subclass it in your project and use that instead.

Pages

Elements

Common:

saunter.testcase.base

You likely do not want your scripts to inherit from this class directly. Instead, subclass it in your project and use that instead.

saunter.generators

Generators are useful for creating data on the fly.

string_data

saunter.generators.string_data.random_string(random_length=None)

A generator for creating random string data of letters plus ‘ ‘ (whitespace)

Params random_length:
 how many characters of random string data. if not provided, will be between 1 - 30
Returns:String

saunter.providers

Providers can insert data into scripts from canned resources, or act as conduits into the backend for verification purposes.

csv_provider

class saunter.providers.csv_provider.CSVProvider(c)

Provides data for either data driven scripting or as oracles from a csv file

Params c:name of csv file located in support/csv directory
randomRow()

Gets a random row from the provider

Returns:List

django_provider

class saunter.providers.django_provider.DjangoProvider

Uses Django’s Models to access the database

get_random_user()

Gets a random user from the provider

Returns:Dictionary

sqlite3_provider

class saunter.providers.sqlite3_provider.DBProvider(db)

SQLite3 powered provider

Params db:name of db file located in support/db directory
get_random_user()

Gets a random user from the provider

Returns:Dictionary

Indices and tables