WebTestCase('login'); } function testUserlogin() { global $user; // open website $this->get('http://' . BASE_URL); $this->assertText('Login'); $this->clickLink('Password Login'); // Password Login $this->assertText('Pass Phrase:'); // correct password $this->setField('email', $user['1']['username']); $this->setField('pword', $user['1']['password']); $this->clickSubmit('Login'); $this->assertText('Logout', "Login failed - don't see logout button"); $f=fopen("/tmp/liste.txt","r"); while($line=fgets($f)) { printf("%s\n",$line); $this->get($line); } fclose($f); } } ?>