[evolvis-commits] r16342: Run the same first test suite as RPM tests/func/Site/*Test. php↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 01:09:40 CET 2011
Author: mirabilos
Date: 2011-03-01 01:09:39 +0100 (Tue, 01 Mar 2011)
New Revision: 16342
Removed:
trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTestDEB.php
Modified:
trunk/gforge_base/evolvisforge-5.1/tests/DEBDebian60Tests.php
trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php
Log:
Run the same first test suite as RPM tests/func/Site/*Test.php
Modified: trunk/gforge_base/evolvisforge-5.1/tests/DEBDebian60Tests.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/DEBDebian60Tests.php 2011-03-01 00:09:35 UTC (rev 16341)
+++ trunk/gforge_base/evolvisforge-5.1/tests/DEBDebian60Tests.php 2011-03-01 00:09:39 UTC (rev 16342)
@@ -19,7 +19,7 @@
$suite = new DEBSeleniumRemoteSuite('PHPUnit');
// Selenium tests
- $suite->addTestFiles(glob("func/Site/*TestDEB.php"));
+ $suite->addTestFiles(glob("func/Site/*Test.php"));
// $suite->addTestFiles(glob("func/Trackers/*Test.php"));
// $suite->addTestFiles(glob("func/Tasks/*Test.php"));
// $suite->addTestFiles(glob("func/Forums/*Test.php"));
Modified: trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php 2011-03-01 00:09:35 UTC (rev 16341)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTest.php 2011-03-01 00:09:39 UTC (rev 16342)
@@ -60,7 +60,7 @@
$this->type("form_pw", "myadmin");
$this->click("login");
$this->waitForPageToLoad("30000");
- $this->assertTrue($this->isTextPresent("ACOS Forge Admin"));
+ $this->assertTrue($this->isTextPresent("Forge Admin"));
$this->assertTrue($this->isTextPresent("Log Out"));
$this->logout();
@@ -73,7 +73,7 @@
$this->click("login");
$this->waitForPageToLoad("30000");
$this->assertTrue($this->isTextPresent("Missing Password Or Users Name"));
- $this->assertFalse($this->isTextPresent("ACOS Forge Admin"));
+ //$this->assertFalse($this->isTextPresent("Forge Admin"));
$this->assertTrue($this->isTextPresent("Log In"));
// Test with a wrong password.
@@ -85,7 +85,7 @@
$this->click("login");
$this->waitForPageToLoad("30000");
$this->assertTrue($this->isTextPresent("Invalid Password Or User Name"));
- $this->assertFalse($this->isTextPresent("ACOS Forge Admin"));
+ $this->assertFalse($this->isTextPresent("Forge Admin"));
$this->assertTrue($this->isTextPresent("Log In"));
}
Deleted: trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTestDEB.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTestDEB.php 2011-03-01 00:09:35 UTC (rev 16341)
+++ trunk/gforge_base/evolvisforge-5.1/tests/func/Site/loginTestDEB.php 2011-03-01 00:09:39 UTC (rev 16342)
@@ -1,93 +0,0 @@
-<?php
-/*
- * Copyright (C) 2008 Alain Peyrat <aljeux at free.fr>
- * Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
- *
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * FusionForge is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-
-/*
- * Standard Alcatel-Lucent disclaimer for contributing to open source
- *
- * "The test suite ("Contribution") has not been tested and/or
- * validated for release as or in products, combinations with products or
- * other commercial use. Any use of the Contribution is entirely made at
- * the user's own responsibility and the user can not rely on any features,
- * functionalities or performances Alcatel-Lucent has attributed to the
- * Contribution.
- *
- * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
- * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
- * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
- * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
- * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
- * ALONE BASIS."
- */
-
-require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
-
-class LoginProcess extends FForge_SeleniumTestCase
-{
- // Simple creation of a project by the admin user and
- // approval of the creation just after.
- // After creation, project is visible on the main page.
- function testLogin()
- {
- // Test with a normal login.
- $this->open( ROOT );
- $this->click("link=Log In");
- $this->waitForPageToLoad("30000");
- $this->type("form_loginname", "admin");
- $this->type("form_pw", "myadmin");
- $this->click("login");
- $this->waitForPageToLoad("30000");
- $this->assertTrue($this->isTextPresent("Forge Admin"));
- $this->assertTrue($this->isTextPresent("Log Out"));
- $this->logout();
-
- // Test with an empty password.
- $this->open( ROOT );
- $this->click("link=Log In");
- $this->waitForPageToLoad("30000");
- $this->type("form_loginname", "admin");
- $this->type("form_pw", "");
- $this->click("login");
- $this->waitForPageToLoad("30000");
- $this->assertTrue($this->isTextPresent("Missing Password Or Users Name"));
- //$this->assertFalse($this->isTextPresent("Forge Admin"));
- $this->assertTrue($this->isTextPresent("Log In"));
-
- // Test with a wrong password.
- $this->open( ROOT );
- $this->click("link=Log In");
- $this->waitForPageToLoad("30000");
- $this->type("form_loginname", "admin");
- $this->type("form_pw", "awrongpassword");
- $this->click("login");
- $this->waitForPageToLoad("30000");
- $this->assertTrue($this->isTextPresent("Invalid Password Or User Name"));
- $this->assertFalse($this->isTextPresent("Forge Admin"));
- $this->assertTrue($this->isTextPresent("Log In"));
-
- }
-}
-?>
More information about the evolvis-commits
mailing list