Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (77 sloc) 2.879 kB
<?php /*
Feb 29, 2012
This test script uses the Advanced Search
Search in Trash
1. open sd99
2. log in
3. open advanced search
4. click Search in Trash
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
require_once 'SampleGenerator.php';
require_once 'Config.php';
class WebTest extends PHPUnit_Extensions_SeleniumTestCase
protected $captureScreenshotOnFailure = FALSE;
protected $screenshotPath = '';
protected $screenshotUrl = 'http://localhost/screenshots';
protected function setUp()
$this->settings = new BluebirdSeleniumSettings();
if (strpos($this->settings->browser,"firefox")) {
$this->captureScreenshotOnFailure = TRUE;
$this->screenshotPath = getScreenshotPath();
public function testTitle()
$myurl = getMainURL();
if (strpos($this->settings->browser,"explore")) {
$myurl_ie=$myurl.'/logout'; //IE has problems closing the session
$this->assertTitle(getMainURLTitle()); // make sure Bluebird is open
This function logs in to Bluebird using standard Username and Password
public function webtestLogin() {
$password = $this->settings->adminPassword;
$username = $this->settings->adminUsername;
// Make sure login form is available
$this->type('edit-name', $username);
$this->type('edit-pass', $password);
This function contains call for all other functions
public function performTasks() {
$this->assertTitle('Advanced Search');
$this->assertTrue($this->isTextPresent("Select Records"),"Advanced Search: Deleted contacts not found in the database ");
private function openAdvancedSearch() {
// ADVANCED SEARCH actually is not a link
// AND its content loads dynamically
private function stop() {
Jump to Line
Something went wrong with that request. Please try again.