本文整理汇总了PHP中PHPUnit_Extensions_SeleniumTestCase::prepareTestSession方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Extensions_SeleniumTestCase::prepareTestSession方法的具体用法?PHP PHPUnit_Extensions_SeleniumTestCase::prepareTestSession怎么用?PHP PHPUnit_Extensions_SeleniumTestCase::prepareTestSession使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Extensions_SeleniumTestCase
的用法示例。
在下文中一共展示了PHPUnit_Extensions_SeleniumTestCase::prepareTestSession方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareTestSession
protected function prepareTestSession()
{
$this->job_id = parent::prepareTestSession();
if ($this->build) {
SauceTestCommon::ReportBuild($this->job_id, $this->build);
}
$this->postSessionSetUp();
return $this->job_id;
}
示例2: prepareTestSession
/**
* @return string
*/
protected function prepareTestSession()
{
$result = parent::prepareTestSession();
// Set any cookies required by local installation
// Note: considered doing this in setUp(), but the Selenium session wasn't yet initialized.
if (property_exists($this->settings, 'cookies')) {
// We don't really care about this page, but it seems we need
// to open a page before setting a cookie.
$this->open($this->sboxPath);
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->setCookies($this->settings->cookies);
}
return $result;
}