Tag Info

Hot answers tagged

2

Create function AdminLogin Create into each test class method SetUp (doc) Call admin_login by SetUp Looks like: protected function setUp() { AdminLogin(); } This method calls before each test into test class Good luck!


1

public function testItemClick() { $this->url($this->pageUrl); sleep(2); $element = $this->byCssSelector('blabla'); $this->moveto($element); $this->click(PHPUnit_Extensions_Selenium2TestCase_SessionCommand_Click::RIGHT); $this->assertStringStartsWith(... }



Only top voted, non community-wiki answers of a minimum length are eligible