|
| __construct ($testDir="test", $browser="firefox", $testServer="") |
|
| doTesting () |
|
| get_func_argNames ($funcName) |
|
| runTests () |
|
| __call ($method, $args) |
|
| message ($msg) |
|
| checkDB ($tablename, $fieldname, $value) |
|
| fetchRecords ($sql) |
|
| fetchRecord ($sql) |
|
| tryingTo ($msg) |
|
| IWantTo ($msg) |
|
| addAlias ($name, $element) |
|
| clickOn ($id) |
|
| lookFor ($id) |
|
| getAlias ($name) |
|
| byId ($id) |
|
| byPath ($path) |
|
| byClass ($class) |
|
| byCSS ($css) |
|
| waitFor ($id) |
|
| equals ($test1, $test2) |
|
| failed ($message) |
|
| screenShot () |
|
| IsDifferent ($test1, $test2) |
|
| openSite ($URL) |
|
| navigateTo ($URL, $maximize=false) |
|
| newSession () |
|
| getActions () |
|
| deleteAllCookies () |
|
| acceptAlert () |
|
| dismissAlert () |
|
| executeJavaScript ($script, $args) |
|
Tessa::__construct |
( |
|
$testDir = "test" , |
|
|
|
$browser = "firefox" , |
|
|
|
$testServer = "" |
|
) |
| |
- Parameters
-
string | $testDir | |
string | $browser | |
string | $testServer | |
Tessa::__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
Tessa::addAlias |
( |
|
$name, |
|
|
|
$element |
|
) |
| |
- Parameters
-
- Returns
- TestELement
- Parameters
-
- Returns
- TestELement
- Parameters
-
- Returns
- TestELement
- Parameters
-
- Returns
- TestELement
Tessa::checkDB |
( |
|
$tablename, |
|
|
|
$fieldname, |
|
|
|
$value |
|
) |
| |
Retrieves a record from the database based on the table, fieldname and value
- Parameters
-
String | $tablename | The name of the table |
String | $fieldname | The name of the field |
String | $value | The expected value |
- Returns
- Object
Tessa::deleteAllCookies |
( |
| ) |
|
Tessa::equals |
( |
|
$test1, |
|
|
|
$test2 |
|
) |
| |
Tessa::executeJavaScript |
( |
|
$script, |
|
|
|
$args |
|
) |
| |
Tessa::failed |
( |
|
$message | ) |
|
Tessa::fetchRecord |
( |
|
$sql | ) |
|
Function to retrieve a record from the database
- Parameters
-
- Returns
- Object
Tessa::fetchRecords |
( |
|
$sql | ) |
|
Function to retrieve records from the database
- Parameters
-
- Returns
- Object
Tessa::get_func_argNames |
( |
|
$funcName | ) |
|
- Returns
- PHPWebDriver_WebDriverActionChains
Tessa::IsDifferent |
( |
|
$test1, |
|
|
|
$test2 |
|
) |
| |
Reuben — Check if two test cases are different
- Parameters
-
Display a message on the screen prefixed with I want to
- Parameters
-
- Parameters
-
- Returns
- null|TestELement
Display a message on the screen
- Parameters
-
Tessa::navigateTo |
( |
|
$URL, |
|
|
|
$maximize = false |
|
) |
| |
A function to create screenshots when something fails
- Returns
- String The HTML path to the screen shot
Display a message on the screen prefixed with Trying to
- Parameters
-
- Parameters
-
- Returns
- TestELement
The documentation for this class was generated from the following file: