Yii Framework Forum: web automation using Selenium Rc with Php format - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

web automation using Selenium Rc with Php format Reason for Failure in executing tests Rate Topic: -----

#1 User is offline   Vimala 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 26-April 10

Posted 27 April 2010 - 04:53 AM

Hello Sir/Madam,
Iam new to this Selenium Tool .Iam using this tool for web automation using Selenium RC-Php format.while running at the Command prompt Iam getting following:
--------------------------------------------------------------------
C:\XAMPP\htdocs\selenium>phpunit home.php
PHPUnit 3.4.12 by Sebastian Bergmann.

F

Time: 8 seconds, Memory: 4.75Mb

There was 1 failure:

1) home::testMyTestCase
Current URL: http://192.168.100.4...LoginError.aspx

Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-Home Page
+Client Master Page

C:\XAMPP\htdocs\selenium\home.php:16

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

I have also included following Code:
------------------------------------
<?php

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class home extends PHPUnit_Extensions_SeleniumTestCase
{
protected function setUp()
{
$this->setBrowser('*firefox');
$this->setBrowserUrl('http://192.168.100.4/clientinterface/ClientHomePage.aspx');
}

public function testMyTestCase()
{
$this->open('http://192.168.100.4/clientinterface/ClientHomePage.aspx');
$this->assertEquals("Home Page", $this->getTitle());
$this->click("ctl00_C1WebMenu1_int_i5_txt");
$this->waitForPageToLoad("30000");
$this->assertEquals("Contact CFCFS", $this->getTitle());
}
}
?>

Why there is Failure in executing this test at the command prompt?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users