public function testLoginWithWrongPassword()
 {
     $log = new PmaSeleniumTestCase($this);
     $log->login("Admin", "Admin");
     $this->assertTrue($log->isUnsuccessLogin());
     Helper::logOutIfLoggedIn($this);
 }
Example #2
0
	public function testChangePassword() {
		$log = new PmaSeleniumTestCase($this);
		$log->login(TESTSUITE_USER, TESTSUITE_PASSWORD);
		$this->selectFrame("frame_content");
		$this->click("link=Change password");
		$this->waitForPageToLoad("20000");
		try {
			$this->assertEquals("", $this->getValue("text_pma_pw"));
		} catch (PHPUnit_Framework_AssertionFailedError $e) {
			array_push($this->verificationErrors, $e->toString());
		}
		try {
			$this->assertEquals("", $this->getValue("text_pma_pw2"));
		} catch (PHPUnit_Framework_AssertionFailedError $e) {
			array_push($this->verificationErrors, $e->toString());
		}
		try {
			$this->assertEquals("", $this->getValue("generated_pw"));
		} catch (PHPUnit_Framework_AssertionFailedError $e) {
			array_push($this->verificationErrors, $e->toString());
		}
		$this->click("button_generate_password");
		$this->assertNotEquals("", $this->getValue("text_pma_pw"));
		$this->assertNotEquals("", $this->getValue("text_pma_pw2"));
		$this->assertNotEquals("", $this->getValue("generated_pw"));
		$this->type("text_pma_pw", TESTSUITE_PASSWORD);
		$this->type("text_pma_pw2", TESTSUITE_PASSWORD);
		$this->click("//button[@type='button']");
		$this->waitForPageToLoad("20000");
		$this->assertTrue($this->isTextPresent(""));
		$this->assertTrue($this->isTextPresent(""));

	}
Example #3
0
	public function testQueryTabWithNullValue() {
		$log = new PmaSeleniumTestCase($this);
		$log->login(TESTSUITE_USER, TESTSUITE_PASSWORD);
		$this->selectFrame("frame_content");
		$this->click("link=SQL");
		$this->waitForPageToLoad("30000");		
		$this->click("button_submit_query");
		$this->assertAlert("Missing value in the form!");
	}
    public function testCreateDropDatabase()
    {
        $log = new PmaSeleniumTestCase($this);
        $log->login(TESTSUITE_USER, TESTSUITE_PASSWORD);
        $this->selectFrame("frame_content");
        $this->click("link=Databases");
        $this->waitForPageToLoad("30000");
        $this->type("id=text_create_db", "pma");
        $this->click("id=buttonGo");
        $this->assertTrue($this->isTextPresent("pma"));

        $this->click("link=pma");
        $this->waitForPageToLoad("30000");
        $this->click("link=Operations");
        $this->waitForPageToLoad("30000");
        $this->click("id=drop_db_anchor");
        $this->click("//button[@type='button']");

    }