I used cakephp inbuilt automation test framework.
In my model i have a user.php file and in app/test/cases/model i
create user.test.php for writing automated test cases below is my code
and in app/test/cases/fixture i create user_fixture.php file.
I have worked on below code but when i click testcases /model/user in
localhost/example/test.php i got failed in test case even though all
input are correct.
class UserTestCase extends CakeTestCase{
var $fixtures=array('app.user_test');
}
class UserWebTestcase extends CakeWebTestCase{
function testLogin001()
{
$this->get('http://localhost/example/users/login');
$this->setField('email', '[email protected]');
$this->setField('password', 'admin123');
$this->click('SUBMIT');
$this->assertText('login');
}
}
how to fix this issue?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php