1ScreenLogCest.php 496 B

123456789101112131415161718192021222324
  1. <?php
  2. use Codeception\Util\Locator;
  3. class ScreenLogCest
  4. {
  5. public function frontpageWorks(AcceptanceTester $I)
  6. {
  7. #log in
  8. $directorio = '01_login/';
  9. $I->amOnPage('/');
  10. $I->see('Nombre de usuario');
  11. $I->fillField('_username', 'admin');
  12. $I->fillField('_password', 'adminpass');
  13. shell_exec('mkdir -p /home/iksop/Escritorio/te/installer/behat/testScreenshot/tests/_output/debug/' . $directorio);
  14. $I->makeScreenshot($directorio.'1log');
  15. $I->click('_submit');
  16. $I->wait('3');
  17. }
  18. }