Jump to content
Larry Ullman's Book Forums

krcqa

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by krcqa

  1. I have installed selenium server standalone 2.30.0, wamp server 2.0i, php 5.3.0, phpunit 3.6.12

    While i try to execute a Example php file from the PHP Unit, i get the error as "Fatal Error: Call to undefined function curl_init() in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Extensions\SeleniumTestCase\Driver.php on line 987"

    I had checked the php.ini and ensure that removing ';' semicolon in extension=php_curl.dll
    restart the wamp server, ensured the libeay32.dll and ssleay32.dll files are in System32

    Please suggest me regarding this issue....

    The code below is Example.php

    <?php
    include_once("PEAR/PHPUnit/Extensions/SeleniumTestCase/Driver.php");
    include_once("PEAR/PHPUnit/Extensions/SeleniumTestCase.php");
    class Example extends PHPUnit_Extensions_SeleniumTestCase
    {
        protected $captureScreenshotOnFailure = True;
        protected $screenshotPath = '/var/www/localhost/htdocs/screenshots';
        protected $screenshotUrl = 'http://localhost/screenshots';

    protected function setUp()
    {
    $this->setBrowser("*firefox");
    $this->setBrowserUrl("http://www.google.co.in");
    }

    public function testTitle()
        {
            $this->open('http://www.google.co.in');
            $this->assertTitle('Google WWW Page');
        }

    }
    ?>

×
×
  • Create New...