1234567891011121314151617181920212223242526272829 |
- <?php
- use Codeception\Util\Locator;
- include ('variables.php');
- class ScreenLogCest
- {
- public function frontpageWorks(AcceptanceTester $I)
- {
- #log in
- $cliente= $_GET['CLIENTE'];
- $head = shell_exec('git rev-parse HEAD');
- $head = substr($head,0,-1);
- $directorio = '01_login/';
- $I->amOnPage('/');
- $I->see('Nombre de usuario');
- $I->fillField('_username', 'admin');
- $I->fillField('_password', 'adminpass');
- shell_exec('mkdir -p ./tests/_output/debug/' . $cliente . "/". $head ."/" . $directorio);
- $I->makeScreenshot($cliente . "/" . $head . "/" . $directorio . '1log');
- $I->click('_submit');
- $I->wait('3');
- }
- }
|